新装的.net,服务器应用程序不可用,在线等

kaipeng2000 2007-03-26 12:42:20
在服务器上装了了.net 2.0 framework,结果出现以下错误和警告~

服务器应用程序不可用
您试图在此 Web 服务器上访问的 Web 应用程序当前不可用。请点击 Web 浏览器中的“刷新”按钮重试您的请求。

管理员注意事项: 详述此特定请求失败原因的错误信息可在 Web 服务器的系统事件日志中找到。请检查此日志项以查明导致该错误发生的原因。


日志中的内容
错误
Failed to execute request because the App-Domain could not be created. Error: 0x80070005 拒绝访问。
警告:
未能初始化 AppDomain:/LM/W3SVC/1478821417/Root

Exception: System.IO.FileLoadException
Message: 未能加载文件或程序集“System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。拒绝访问。
StackTrace: 在 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
在 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
在 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
在 System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
在 System.Activator.CreateInstance(String assemblyName, String typeName)
在 System.AppDomain.CreateInstance(String assemblyName, String typeName)
在 System.AppDomain.CreateInstance(String assemblyName, String typeName)
在 System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
在 System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)




急~~
...全文
1273 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
俺也是这个问题,旧装机器,起先都正常,但删除虚拟目录再次新建时就提示楼主的问题了,我机器上有1.1 and 2.0 现在根据你的设置后还是不行郁闷。
swazn_yj 2007-04-23
  • 打赏
  • 举报
回复
mark!
kaipeng2000 2007-03-26
  • 打赏
  • 举报
回复
呵呵,多谢朋友,自己找到了一个完美方案~多谢
接分

.NET知识点滴_002
1.Error:Failed to execute request because the App-Domain could not be created. Error: 0×80070005 Access is denied.

具体情况如下:
Server Application Unavailable

The web application you are attempting to access on this web server is currently unavailable. Please hit the “Refresh” button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

查看Event Viewer,看到的错误为:

Error:Failed to execute request because the App-Domain could not be created. Error: 0×80070005 Access is denied.

Warning:Failed to initialize the AppDomain:/LM/W3SVC/1052609887/Root/skyy_mobile

Exception: System.IO.FileLoadException
Message: Could not load file or assembly ‘System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. Access is denied.
StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

解决办法:在该web sites的virtual directory下,将Permissions设置一下,里面应包含
ASP.NET
IWAM_MachineName
Local_Service
Network_Service
System
而且权限要设置为write & read.

设置后,一切运行正常.

2.重装Framework,进入相关版本的目录后

aspnet_regiis -i
aspnet_regiis -r
kaipeng2000 2007-03-26
  • 打赏
  • 举报
回复
改下一虚拟目录的应用程序池.让ASP.NET 1.0 和ASP.NET 2.0的虚拟目录使用不同的应用程序池.??
这个怎么改 啊?
dengenming 2007-03-26
  • 打赏
  • 举报
回复
http://www.epubcn.org/read.php?tid=61068
dengenming 2007-03-26
  • 打赏
  • 举报
回复
http://www.yaosansi.com/blog/article.asp?id=517

17,741

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET Framework
社区管理员
  • .NET Framework社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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