Error: No se puede generar una clase temporal (resultado = 1) ... Al invocar métodos en un servicio web. Estoy usando VS 2008 C# ASP.NET 3.5. Invoco un servicio web remoto para mi aplicación.Error: no se puede generar una clase temporal (resultado = 1) ... Al invocar métodos en un servicio web
Server Error in '/' Application.
Server was unable to process request. ---> Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\6sbkwt2d.0.cs' could not be found
error CS2008: No inputs specified
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\6sbkwt2d.0.cs' could not be found
error CS2008: No inputs specified
Source Error:
Line 775: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CheckLogin", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 776: public System.Data.DataSet CheckLogin(string uname, string pswd) {
Line 777: object[] results = this.Invoke("CheckLogin", new object[] {
Line 778: uname,
Line 779: pswd});
Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\14127ae4\96323535\App_WebReferences.u9ldrmk1.0.cs Line: 777
¿Podría mostrarnos algún código? ¿Cómo llamas al servicio web? ¿Cuál es la interfaz de los servicios web? ¿También tiene el código para la función de servicio web que está llamando? –
posible duplicado de [System.InvalidOperationException: no se puede generar una clase temporal (resultado = 1)] (http://stackoverflow.com/questions/657993/system-invalidoperationexception-unable-to-generate-a-temporary-class- resultado-1) – V4Vendetta
@Wouter El código de llamada de mi servicio web es el siguiente: return objWEB.CheckLogin (nombre de usuario, contraseña); He incluido el espacio de nombres usando WebReference; y creó el objeto webservice (objWEB) WebReference.Service objWEB = new WebReference.Service(); –