Asp.net mvc 3 在IIS8上部署MVC3-盒式磁带应用程序时出错

Asp.net mvc 3 在IIS8上部署MVC3-盒式磁带应用程序时出错,asp.net-mvc-3,deployment,web-config,cassette,Asp.net Mvc 3,Deployment,Web Config,Cassette,在本地计算机上工作正常,但部署时会弹出此错误消息: 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 BeginReq

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

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.
HTTP错误500.19-内部服务器错误
无法访问请求的页面,因为该页面的相关配置数据无效。
详细错误信息:
模块iiswebcore
通知开始请求
处理程序尚未确定
错误代码0x80070021
配置错误此配置节不能用于此路径。当节在父级锁定时会发生这种情况。锁定在默认情况下(overrideModeDefault=“Deny”),或者由带有overrideMode=“Deny”或旧版allowOverride=“false”的位置标记显式设置。
配置文件\\?\C:\inetpub\foo\web.Config
请求的URLhttp://foo.net:80/
物理路径C:\inetpub\foo
登录方法尚未确定
尚未确定登录用户
配置源:
71:     

72:我解决此错误的方法是进入IIS管理窗口,选择
功能委派
并设置读/写处理程序映射和模块


现在一切正常。

我解决此错误的方法是进入IIS管理窗口,选择功能委派,然后设置读/写处理程序映射和模块

现在一切正常