惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
博客园 - Franky
IT之家
IT之家
V
Visual Studio Blog
博客园 - 【当耐特】
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
博客园 - 叶小钗
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
罗磊的独立博客
小众软件
小众软件
Jina AI
Jina AI

博客园 - Tam

ASP.NET 验证控件 IIS 7.0集成模式中Application_Start不能使用HttpContext.Current log4net - 4步快速配置跟踪日志(ASP.NET) Windows Workflow Foundation - [Workflow Runtime] Windows Workflow Foundation - [介绍及相关资源] TortoiseSVN 安装使用 VS2005里三种有用的调试方法 使用Iframe时要注意的一个问题 - Tam - 博客园 必须要知道的GridView用法(1) 试用Code Snippets Manager 学习使用ASP.NET 2.0的本地化 XSLT 运算符 和 记录一些用过的语句 转载:如何在自己的网站上做天气预报? - Tam - 博客园 Linux Shell Record 在VMWARE上安装Fedora Core 5遇到的错误 DCOM错误 TASTE CSS DESIGN ASP.NET 传递参数到XSLT - Tam - 博客园 ASP.NET中如何知道文件是否被下载过?
IIS里面设置好虚拟目录后访问出现Server Application Unavail...
Tam · 2006-05-11 · via 博客园 - Tam

2006-05-11 11:58  Tam  阅读(4664)  评论()    收藏  举报

具体情况如下:
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: 0x80070005 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.

设置后,一切运行正常.