win2003 iis6.0 NET2.0的Server Application Unavailable的问题!

所属分类: 实用技巧 / 应用技巧 阅读数: 1803
收藏 0 赞 0 分享
所属分类:.NET技术 .NET Framework
----------------------------------------------------------------------

打开网页是这样的: 
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.  
在应用程序日志里有2个,一个红错误的是: 
Failed to execute request because the App-Domain could not be created. Error: 0x80070005 拒绝访问。   

有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。 
一个黄警告的是: 
Failed to initialize the AppDomain:/LM/W3SVC/547852252/Root 

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. 拒绝访问。 
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) 

有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持 
怎么办,怎么才可以运行这个网页(这个网页在我有VS2005的机器上运行调试是都可以的!) 

----------------------------------------------------------------------

看看IIS是不是关了,如果开着就重新配置一下虚拟目录 

--------------------------------------------------------

怎么看有没有关,怎么配置虚拟目录,我以前没弄过! 

--------------------------------------------------------

服务器是2003,IIS是V6.0 

--------------------------------------------------------

我也遇到这样的问题,那位高人指点一下啊! 

--------------------------------------------------------

up 

--------------------------------------------------------

搞定 虚拟目录指向的文件夹要加User组 

--------------------------------------------------------

我是菜鸟,不知道我的回答是否多余!? 
如果装过IIS,默认应该是打开的,除非改过服务。 
去控制面板-〉性能和维护-〉管理工具-〉Internet信息服务 
就可以看到了,还可以设置虚拟目录 
解决办法:在该web sites的virtual directory下,将Permissions设置一下,里面应包含
ASP.NET
IWAM_MachineName
Local_Service
Network_Service
System
而且权限要设置为write & read.
更多精彩内容其他人还在看

如何设置一个严格30分钟过期的Session示例介绍

SESSION和COOKIE是每个面试官必问的知识点,下面为大家介绍下如何设置一个严格30分钟过期的Session,具体示例如下,感兴趣的朋友可以参考下哈,希望对大家有所帮助
收藏 0 赞 0 分享

禁用Cookie三种方法(保护你的隐私)

cookie的作用很多人都知道——cookie里面保存着我们所浏览过的网页的记录,为了安全起见下面为大家介绍禁用Cookie的三种方法,感兴趣的朋友可以参考下哈
收藏 0 赞 0 分享

URL中井号的作用介绍

URL中的井号(#)是比较常见的,下面就为大家介绍一些有关井号的故事,感兴趣的朋友可以了解下
收藏 0 赞 0 分享

访问Excel的几种方式介绍

本文将为大家介绍下访问Excel的几种方式:通过OLEDB方式、通过Microsoft.Office.Interop.Excel访问及其他相关等等,感兴趣的朋友可以参考下,希望对大家有所帮助
收藏 0 赞 0 分享

HttpClient抓取网页的两种方式

可以利用NodeFilter对网页进行分析及利用Visitor对网页进行分析实现抓取网页,具体如下感兴趣的朋友可以参考下,希望对大家有所帮助
收藏 0 赞 0 分享

EditPlus 3设置字体大小(附图)

EditPlus3是我们经常使用的编辑工具,至于如何设置字体大小的问题,有很多朋友在问,下面有个不错教程,大家可以感受下
收藏 0 赞 0 分享

GHOST删除分区和修复硬盘坏扇区不仅仅是备份还原

如果你只是用GHOST来备份和还原数据的话,那你可委屈了这款“功能强大”的软件了。其实GHOST还有一些比较另类的功能,接下来为大家介绍下GHOST删除分区和修复硬盘坏扇区
收藏 0 赞 0 分享

Cookie的使用之保存与获取代码示例

比较实用的设置Cookie和获取Cookie方法,下面的示例大家可以参考下,希望对大家有所帮助
收藏 0 赞 0 分享

sharepoint 2010版本图文安装教程

这篇文章主要为大家详细介绍了Microsoft Share Point2010中文版图文安装的相关资料,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
收藏 0 赞 0 分享

Chrome开发者工具9个调试技巧详解

对于我们前端开发者来说,Chrome自带的开发者工具绝对是不可或缺的调试工具,我们常用的调试方法包含一些console等,而Chrome自带的开发者工具其实很强大,下面我们来聊聊一些你可能不知道的使用方法。
收藏 0 赞 0 分享
查看更多