调用webservice报错。

来源:互联网 发布:手机摄像头透视软件 编辑:程序博客网 时间:2024/05/16 03:09

自己部署了webservice,

以前调用一直没问题,

前两日服务器中毒,重装系统,。

网站什么的都正常,但是发现webservice不能调用,报错!;

错误:

System.InvalidOperationException: Unable to generate a temporary class(result=1). error CS2001: Source file 'C:\Windows\TEMP\qdn330ew.0.cs; could not be found error CS2008: No inputs specifiedat System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type) at System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos)at System.Web.Services.Protocols.HttpServerType..ctor(Type type) at System.Web.Services.Protocols.HttpServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) 

后来发现原来是C:\WINDOWS\TEMP 文件夹不能创建文件。

将network/USER两个用户权限给足,就正常了。