2003 IIS webservice不能调用

geweb 2010-10-28 06:29:01
错误类型:
System.InvalidOperationException: 无法生成临时类(result=1)。
error CS2001: 未能找到源文件“C:\WINDOWS\TEMP\nyaj3rxa.0.cs”
error CS2008: 未指定输入

在 System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
在 System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
在 System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
在 System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Evidence evidence)
在 System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos)
在 System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos)
在 System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos)
在 System.Web.Services.Protocols.HttpServerType..ctor(Type type)
在 System.Web.Services.Protocols.HttpServerProtocol.Initialize()
在 System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
在 System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

除了Temp文件和ASPNET权限错误,还有可能是哪些错误
...全文
254 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
geweb 2010-10-29
  • 打赏
  • 举报
回复
问题解决的了,还是TEMP权限的问题
geweb 2010-10-29
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 rabbit5 的回复:]
单独运行webservice的时候会报错吗?看看源码上有没有bug
[/Quote]

webservice可以运行,但是调用方法就是出上面的错误
geweb 2010-10-29
  • 打赏
  • 举报
回复
已经尝试过了,就差没有给user完全控制了
rabbit5 2010-10-29
  • 打赏
  • 举报
回复
单独运行webservice的时候会报错吗?看看源码上有没有bug
porschev 2010-10-29
  • 打赏
  • 举报
回复
IWAN_机器名、IUsr_机器名、ASP.net、NetWork service服务的所有权限。并将权限继承给temp目录下的文件夹。

geweb 2010-10-29
  • 打赏
  • 举报
回复
这个只可能是权限问题吗
geweb 2010-10-28
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 yewuqing007 的回复:]
看看服务启动没
[/Quote]
服务没启动就没办法运行的了,这个是webservice可以打开,但调用方法时就出错
devin_jia 2010-10-28
  • 打赏
  • 举报
回复
看看服务启动没

110,567

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧