zoukankan      html  css  js  c++  java
  • IIS不能用,报错:Failed to execute request because the AppDomain could not be created. Error: 0×80070005 Access is denied

    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

  • 相关阅读:
    1029. Two City Scheduling
    JS判断Android、iOS或浏览器的多种方法(四种方法)【转】
    layui select onchange事件【转】
    PHP 判断数据类型【转】
    php 对数组进行排序【转】
    php中怎么删除数组的第一个元素和最后一个元素【转】
    php数组操作之获取数组元素索引(键)值【转】
    HTML表单中 textarea标签的value属性赋值【转】
    为什么js的"关联数组"不能转成json字符串而对象可以?【转】
    CSS white-space属性是用来设置如何处理元素中的空白【转】
  • 原文地址:https://www.cnblogs.com/Fooo/p/946051.html
Copyright © 2011-2022 走看看