我正在尝试将我的应用程序部署到localhost,但无法完成。到目前为止,我做了以下工作:
Properties -> Web使用本地-> /创建虚拟目录
当我运行我的应用程序时,它显示
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 )
我该怎么办?
编辑:我也给了我的用户完全的权限。怎么啦?
发布于 2015-03-15 00:49:15
您可以检查应用程序池中的框架版本是否设置为4.0.30319 (4.5),并确保文件夹结构正确
添加一个全局错误处理程序并记录收到的异常,以查看发生了什么。
此链接包含有关错误处理的示例。https://www.simple-talk.com/dotnet/asp.net/handling-errors-effectively-in-asp.net-mvc/
https://stackoverflow.com/questions/29050576
复制相似问题