首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >本地主机部署- asp.net mvc 5

本地主机部署- asp.net mvc 5
EN

Stack Overflow用户
提问于 2015-03-14 23:23:30
回答 1查看 421关注 0票数 0

我正在尝试将我的应用程序部署到localhost,但无法完成。到目前为止,我做了以下工作:

Properties -> Web使用本地-> /创建虚拟目录

当我运行我的应用程序时,它显示

代码语言:javascript
复制
The requested page cannot be accessed because the related configuration data for the page is invalid.

配置源:

代码语言:javascript
复制
Config Source:
34:   <system.webServer>
35:     <modules>
36:       <remove name="FormsAuthenticationModule"/>

配置错误:

代码语言:javascript
复制
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".

如果我删除模块并开始调试,我会得到以下结果:

代码语言:javascript
复制
The Web server could not find the requested resource.

如果我手动转到localhost/AppName,我会得到这样的结果:

代码语言:javascript
复制
The Web server is configured to not list the contents of this directory.

和localhost/AppName/Home

代码语言:javascript
复制
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 )

我该怎么办?

编辑:我也给了我的用户完全的权限。怎么啦?

EN

回答 1

Stack Overflow用户

发布于 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/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29050576

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档