说明:
1。在局域网调用没有问题;
2。把生成的dll和asmx文件发布到服务器上,在本地引用后(vs.net2003内可以正常引用)再执行的时候出现以下异常信息
3。"zgicgsc8.dll"内的dll每次调用都不同;
异常信息:
 System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileNotFoundException: File or assembly name zgicgsc8.dll, or one of its dependencies, was not found. File name: "zgicgsc8.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapServerType..ctor(Type type, ProtocolsEnum versionsSupported) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) === Pre-bind state information === LOG: Where-ref bind. Location = C:\WINNT\TEMP\zgicgsc8.dll LOG: Appbase = file:///D:/is/Inetpub/wwwroot_new/CptNpc LOG: Initial PrivatePath = bin Calling assembly : (Unknown). === LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/WINNT/TEMP/zgicgsc8.dll. --- End of inner exception stack trace --- 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileNotFoundException: File or assembly name zgicgsc8.dll, or one of its dependencies, was not found. File name: "zgicgsc8.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapServerType..ctor(Type type, ProtocolsEnum versionsSupported) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) === Pre-bind state information === LOG: Where-ref bind. Location = C:\WINNT\TEMP\zgicgsc8.dll LOG: Appbase = file:///D:/is/Inetpub/wwwroot_new/CptNpc LOG: Initial PrivatePath = bin Calling assembly : (Unknown). === LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/WINNT/TEMP/zgicgsc8.dll. --- End of inner exception stack trace ---源错误: 
行 35:         [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.XXXXX.com/HelloWorld", RequestNamespace="http://www.XXXXX.com", ResponseNamespace="http://www.XXXXX.com", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
行 36:         public string HelloWorld() {
行 37:             object[] results = this.Invoke("HelloWorld", new object[0]);
行 38:             return ((string)(results[0]));
行 39:         }
 源文件: d:\is\inetput\wwwroot\test\tchinaptws\web references\com.chinapt.www\reference.cs    行: 37  
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.2032; ASP.NET 版本:1.1.4322.2032