ASP.NET Web Service 部署有关问题

ASP.NET Web Service 部署问题
我做了一个 .NET 2.0 的Web Service , 本地测试没有问题。

发布在服务器上:服务器系统是 Window Server 2000,我只在服务器上安装了.NET Framework 2.0 ,在服务器上的IIS6 浏览页面没有问题,但是查询数据库数据发生以下错误(数据库链接应该没有问题的):

System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINNT\TEMP\u4if5f7u.0.cs' could not be found
error CS2008: No inputs specified

   at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence)
   at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters 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, Evidence evidence)
   at System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos)
   at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, 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
......

请教各位这是什么问题,是环境部署,还是????






------最佳解决方案--------------------
给C:\WINNT\TEMP\文件夹设置账户NTAUTHORITY\NETWORK SERVICE 的修改权限
------其他解决方案--------------------
本帖最后由 net_lover 于 2012-03-27 15:56:20 编辑 如果没有那个账户,添加ASPNET账户,如果没有ASPNET,添加ISUR_机器名 帐户

另外打补丁
Microsoft .NET Framework 2.0 Service Pack 2 
http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=5b2c0358-915b-4eb5-9b1d-10e506da9d0f
------其他解决方案--------------------
能说说原来 原因吗? 权限问题?
------其他解决方案--------------------
如何更改web service指定的临时文件夹呢 ???
------其他解决方案--------------------
没有NETWORK SERVICE 用户,但是我添加了ASPNET和ISUR_机器名两个用户写入权限后,不出现个错误,但是却没有返回数据????