Bigrock windows 托管错误 MVC 项目
Bigrock windows hosting error MVC Project
我最近在 big rock 托管环境中托管了一个 mvc 4 应用程序。
我收到以下错误。
HTTP 错误 403.14 - 禁止访问
Web 服务器配置为不列出此目录的内容。
服务器内部日志文件显示它正在尝试搜索一些索引文件,但是asp.net mvc 没有特定的索引文件。
url - www.ekartdeals.com
Server Internal Log
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<config><domain name="ekartdeals.com" logs_directory="---REMOVED ---" webspaceName="ekartdeals.com" default_doc="Index.html
Index.htm
Index.cfm
Index.shtml
Index.shtm
Index.stm
Index.php
Index.php3
Index.asp
Index.aspx
Default.htm
Default.asp
Default.aspx"><webstat type="awstats"/><alias name="ekartdeals.com"/><alias name="www.ekartdeals.com"/></domain></config>
我找到了这个问题的根本原因。
- Big rock ASP .NET 版本指向 v2.0,所以我不得不将其更改为 4.0 版
- MVC 应用程序是在 v4.5 中开发的,因此必须将发布的版本更改为 .net framework v4.0
进行更改后效果很好。
我最近在 big rock 托管环境中托管了一个 mvc 4 应用程序。
我收到以下错误。 HTTP 错误 403.14 - 禁止访问 Web 服务器配置为不列出此目录的内容。
服务器内部日志文件显示它正在尝试搜索一些索引文件,但是asp.net mvc 没有特定的索引文件。
url - www.ekartdeals.com
Server Internal Log
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<config><domain name="ekartdeals.com" logs_directory="---REMOVED ---" webspaceName="ekartdeals.com" default_doc="Index.html
Index.htm
Index.cfm
Index.shtml
Index.shtm
Index.stm
Index.php
Index.php3
Index.asp
Index.aspx
Default.htm
Default.asp
Default.aspx"><webstat type="awstats"/><alias name="ekartdeals.com"/><alias name="www.ekartdeals.com"/></domain></config>
我找到了这个问题的根本原因。
- Big rock ASP .NET 版本指向 v2.0,所以我不得不将其更改为 4.0 版
- MVC 应用程序是在 v4.5 中开发的,因此必须将发布的版本更改为 .net framework v4.0
进行更改后效果很好。