托管asp.net mvc网站

时间:2013-06-19 13:00:18

标签: iis asp.net-mvc-4 hosting

我有一个asp,net MVC 4项目。我选择了一家托管公司www.somee.com进行快速测试。我做的是上传一个zip文件并解压缩。 当我打开网址时,我收到了错误。

   IIS 8.0 Detailed error

   HTTP Error 403.14 - Forbidden
   The Web server is configured to not list the contents of this directory.
   Most likely causes:

   A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

   Things you can try:

   If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
   Enable directory browsing using IIS Manager.
    Open IIS Manager.
    In the Features view, double-click Directory Browsing.
    On the Directory Browsing page, in the Actions pane, click Enable.
    Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.

    Detailed Error Information:
    Module     DirectoryListingModule
    Notification       ExecuteRequestHandler
    Handler    StaticFile
    Error Code     0x00000000
    Requested URL      http://xxxx.somee.com:80/
    Physical Path      d:\DZHosts\LocalUser\username\www.xxxx.somee.com
    Logon Method       Anonymous
    Logon User     Anonymous

这是否意味着我应该尝试使用本地IIS或服务器IIS?但我无法控制服务器端。

2 个答案:

答案 0 :(得分:2)

这是我开始的地方

  1. 验证MVC是您的主机甚至提供的功能。你的网站 否则将无法正常工作,您可能会收到类似路由的错误 将失败
  2. 与您的主机联系支持。我过去使用的任何主持人都有 对这样的问题非常有帮助,他们有更多的访问权限 弄清楚出了什么问题
  3. 以下是您需要进行bin部署的一些信息:

    Can I bin deploy and MVC4 for .NET 4 where I have an MVC3 app running?

    http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx

    祝你好运

答案 1 :(得分:0)

您是否在IIS中创建了网站?

请尝试按照此处的步骤操作:

http://somee.com/DOKA/DoHelpTopics.aspx?docode=false&thnid=50