【发布时间】:2015-05-17 00:25:45
【问题描述】:
我正在尝试将我的应用程序部署到本地主机,但无法完成。到目前为止,我做了以下事情:
属性 -> Web -> 使用本地 IIS / 创建虚拟目录
当我运行我的应用程序时,它会说
The requested page cannot be accessed because the related configuration data for the page is invalid.
配置来源:
Config Source:
34: <system.webServer>
35: <modules>
36: <remove name="FormsAuthenticationModule"/>
配置错误:
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".
如果我删除模块并开始调试,我会得到以下信息:
The Web server could not find the requested resource.
如果我手动转到 localhost/AppName 我会得到这个:
The Web server is configured to not list the contents of this directory.
和 localhost/AppName/Home
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
和路径 D:\Projects\AppName\AppName\home (与物理路径不对应,应该是 D:\Projects\AppName\AppName\Controllers\Home )
我该怎么办?
编辑:我还向我的用户授予了完全权限。怎么了?
【问题讨论】:
标签: c# asp.net asp.net-mvc web-config localhost