【问题标题】:Error deploying MVC3 - Cassette application on IIS8在 IIS8 上部署 MVC3 - Cassette 应用程序时出错
【发布时间】:2012-10-04 05:05:18
【问题描述】:

在本地机器上工作正常,但部署时会弹出此错误消息:

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:
Module     IIS Web Core
Notification       BeginRequest
Handler    Not yet determined
Error Code     0x80070021
Config Error       This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File    \\?\C:\inetpub\foo\web.config
Requested URL      http://foo.net:80/
Physical Path      C:\inetpub\foo
Logon Method       Not yet determined
Logon User     Not yet determined

Config Source:
   71:     </modules>
   72:     <handlers> <--- This part is highlighted on the error page.
   73:       <add name="CassetteHttpHandler" path="cassette.axd" preCondition="integratedMode" verb="*" allowPathInfo="true" type="Cassette.Aspnet.CassetteHttpHandler, Cassette.Aspnet" />

More Information:
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

有什么想法可以解决这个问题吗?

【问题讨论】:

    标签: asp.net-mvc-3 deployment web-config cassette


    【解决方案1】:

    我解决此错误的方法是进入 IIS 管理窗口并选择 Feature Delegation 并将读/写设置为处理程序映射和模块。

    现在一切正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-29
      • 2020-04-12
      • 2018-07-09
      • 2018-02-11
      • 2018-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多