エラー:Webサービスでメソッドを呼び出すときに一時クラス(結果= 1)を生成できません。私はVS 2008 C#ASP.NET 3.5を使用しています。私は自分のアプリケーションにリモートWebサービスを呼び出す。エラー:一時クラス(結果= 1)を生成できません... 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
コードを教えてください。どのようにWebサービスを呼び出していますか? Webservicesインターフェイスとは何ですか?呼び出しているwebservice関数のコードもありますか? –
[System.InvalidOperationException:一時クラス(結果1)を生成することができません]の重複可能性(http://stackoverflow.com/questions/657993/system-invalidoperationexception-unable-to-generate-a-temporary-class- result-1) – V4Vendetta
@Wouter私のWebサービスの呼び出しコードは以下の通りです:return objWEB.CheckLogin(username、password); WebReferenceを使用して名前空間を追加しました。 Webサービスオブジェクト(objWEB)を作成しました。WebReference.Service objWEB = new WebReference.Service(); –