今天调用WebService是出现以下异常:
System.InvalidOperationException: Unable to generate a temporary class表明看起来是无法找到源文件,实际上是asp.net的运行帐户对Windows/temp/目录没有写入的权限,加入权限后问题解决
(result=1). error CS2001: Source file 'C:/WINNT/TEMP/gggcyckb.0.cs' could not
be found error CS2008: No inputs specified 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.SoapClientType..ctor(Type type) at
System.Web.Services.Protocols.SoapHttpClientProtocol..ctor() at
SDAccounts.swd_dotnetdev.Organizations..ctor() at
SDAccounts.Contacts.GetContactInfo(Object Status, Object& ErrorString)