问题如标题所示,下面是错误信息,谢谢各位了。
另外我还更改了一下 Temporary ASP.NET Files 目录的权限,也没用“/WebApplication11”应用程序中的服务器错误。
--------------------------------------------------------------------------------
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS0016: 未能写入输出文件“c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication11\8602a815\3a918367\5ujtnmit.dll”--“拒绝访问。 ”源错误:
[没有相关的源行]
源文件: 行: 0 显示详细的编译器输出:
c:\windows\system32\inetsrv> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll" /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\webapplication11\8602a815\3a918367\assembly\dl2\aad08854\ec8c6cd7_a1d8c601\webapplication11.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication11\8602a815\3a918367\5ujtnmit.dll" /D:DEBUG /debug+ /optimize- /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication11\8602a815\3a918367\5ujtnmit.0.cs"
Microsoft (R) Visual C# .NET 编译器版本 7.10.3052.4
用于 Microsoft (R) .NET Framework 版本 1.1.4322
版权所有 (C) Microsoft Corporation 2001-2002。保留所有权利。error CS0016: 未能写入输出文件“c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication11\8602a815\3a918367\5ujtnmit.dll”--“拒绝访问。 ”显示完整的编译源:行 1: //------------------------------------------------------------------------------
行 2: // <autogenerated>
行 3: // This code was generated by a tool.
行 4: // Runtime Version: 1.1.4322.573
行 5: //
行 6: // Changes to this file may cause incorrect behavior and will be lost if
行 7: // the code is regenerated.
行 8: // </autogenerated>
行 9: //------------------------------------------------------------------------------
行 10:
行 11: namespace ASP {
行 12: using System;
行 13: using System.Collections;
行 14: using System.Collections.Specialized;
行 15: using System.Configuration;
行 16: using System.Text;
行 17: using System.Text.RegularExpressions;
行 18: using System.Web;
行 19: using System.Web.Caching;
行 20: using System.Web.SessionState;
行 21: using System.Web.Security;
行 22: using System.Web.UI;
行 23: using System.Web.UI.WebControls;
行 24: using System.Web.UI.HtmlControls;
行 25:
行 26:
行 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
行 28: public class Global_asax : WebApplication11.Global {
行 29:
行 30: private static bool __initialized = false;
行 31:
行 32: public Global_asax() {
行 33: if ((ASP.Global_asax.__initialized == false)) {
行 34: ASP.Global_asax.__initialized = true;
行 35: }
行 36: }
行 37: }
行 38: }
行 39: --------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
另外我还更改了一下 Temporary ASP.NET Files 目录的权限,也没用“/WebApplication11”应用程序中的服务器错误。
--------------------------------------------------------------------------------
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS0016: 未能写入输出文件“c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication11\8602a815\3a918367\5ujtnmit.dll”--“拒绝访问。 ”源错误:
[没有相关的源行]
源文件: 行: 0 显示详细的编译器输出:
c:\windows\system32\inetsrv> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll" /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\webapplication11\8602a815\3a918367\assembly\dl2\aad08854\ec8c6cd7_a1d8c601\webapplication11.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication11\8602a815\3a918367\5ujtnmit.dll" /D:DEBUG /debug+ /optimize- /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication11\8602a815\3a918367\5ujtnmit.0.cs"
Microsoft (R) Visual C# .NET 编译器版本 7.10.3052.4
用于 Microsoft (R) .NET Framework 版本 1.1.4322
版权所有 (C) Microsoft Corporation 2001-2002。保留所有权利。error CS0016: 未能写入输出文件“c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\webapplication11\8602a815\3a918367\5ujtnmit.dll”--“拒绝访问。 ”显示完整的编译源:行 1: //------------------------------------------------------------------------------
行 2: // <autogenerated>
行 3: // This code was generated by a tool.
行 4: // Runtime Version: 1.1.4322.573
行 5: //
行 6: // Changes to this file may cause incorrect behavior and will be lost if
行 7: // the code is regenerated.
行 8: // </autogenerated>
行 9: //------------------------------------------------------------------------------
行 10:
行 11: namespace ASP {
行 12: using System;
行 13: using System.Collections;
行 14: using System.Collections.Specialized;
行 15: using System.Configuration;
行 16: using System.Text;
行 17: using System.Text.RegularExpressions;
行 18: using System.Web;
行 19: using System.Web.Caching;
行 20: using System.Web.SessionState;
行 21: using System.Web.Security;
行 22: using System.Web.UI;
行 23: using System.Web.UI.WebControls;
行 24: using System.Web.UI.HtmlControls;
行 25:
行 26:
行 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
行 28: public class Global_asax : WebApplication11.Global {
行 29:
行 30: private static bool __initialized = false;
行 31:
行 32: public Global_asax() {
行 33: if ((ASP.Global_asax.__initialized == false)) {
行 34: ASP.Global_asax.__initialized = true;
行 35: }
行 36: }
行 37: }
行 38: }
行 39: --------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
生成ASSEMBLY缓存的时候也能出错。你看一下你是用什么权限登陆的啊?
源错误:版本信息: Microsoft .NET Framework 版本:1.1.4322.2032; ASP.NET 版本:1.1.4322.2032 我于是用“WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files”在msdn以及网上搜了一把,搜到两种解决方案:修改该目录的权限,加上“NETWORK SERVICE”,让它对该目录有控制权限。
修改IIS服务的缺省账户为“本地系统”
经验证,方法二可行,方法一失败。但是方法二会导致IIS运行不安全,所以这种方法不太合适。后来我查看了别人的配置,发现人家IIS服务的缺省账户都是“网络服务”,这就说明我的机器的权限设置在某个地方存在差异。但是问题出在哪里呢?我遍查MSDN和Google/baidu也没有找到答案。后来不知道抽了哪根筋,灵光一闪,看看 Windows\Temp 的权限设置,把 “NETWORK SERVICE”的权限设置为“控制”级别,再试试Debug,成了!真是见鬼!难道说这是Windows的一个BUG?还是我的哪个地方的设置出现了问题?==上面是一个GG的BLOG,偶按照他的方法,设置了 Windows\Temp 的权限,结果好了。
莫名其妙。