HTTP Error 403.14 - Forbidden IIS Error for ASP.Net MVC 4 Application

前端 未结 13 1930
情书的邮戳
情书的邮戳 2020-12-05 02:52

we developed an asp.net mvc 4 application. in vs 2012 this work fine. we publish this web application and putting it on iis 7.5, but when we want to browse web application t

相关标签:
13条回答
  • 2020-12-05 03:13

    I had the same problem on a brand new machine, after installing IIS 7.5, Visual Studio etc. I ended up refreshing ASP.NET registration and it worked.

    C:\windows\Microsoft.NET\Framework64\v4.0.30319> .\aspnet_regiis.exe -ir C:\windows\Microsoft.NET\Framework64\v4.0.30319> iisreset

    HTH

    0 讨论(0)
  • 2020-12-05 03:17

    It sounds like the application is not correctly configured. Ensure that your web.config has been deployed, along with all of your application files and that the application pool is configured correctly.

    If you access the machine running IIS directly you will likely get a more detail error message.

    0 讨论(0)
  • 2020-12-05 03:19

    Had the same error (403.14) after copying a working ConnectionString from my web.config on a newer project to replace the ConnectionString on an old project then started doing testing on localdb and received the error. Note: I copied, from new web.config to old web.config, the connectionString portion of the connectionstring only and did not make any changes to the name or providername on the old project. After researching for several hours finally went into one of the attached sqldatasources on the old project (on the design tab in VS 2012) and re-configured the sqldatasource (clicked "configure data source") and in the first dropdown box selected the name associated with one of the recently copied ConnectionStrings. That was all it took to get going and after reconfiguring the ConnectionString it started working. Suspect that when I copied over the ConnectionString from the new project to the old project that the default table specified in the sqldatasource assignment process might have been lost?

    0 讨论(0)
  • 2020-12-05 03:19

    You need to change application pool for the site:

    • Go to "Actions" panel
    • Then select "Basic Settings"
    • On "Application pool" choose "Select ..."
    • Finally ASP.NET v4.0
    0 讨论(0)
  • 2020-12-05 03:20

    First You should register the framework for IIS by executing following command in command prompt as

    C:\windows\Microsoft.NET\Framework\v4.0.30319> aspnet_regiis.exe -i C:\windows\Microsoft.NET\Framework64\v4.0.30319> aspnet_regiis.exe -i

    If you still get an error as


    HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory


    Then probably you need an update for IIS which is used when URLs do not end with a period

    Please visit the following link for update http://support.microsoft.com/kb/980368

    An update is available that enables certain IIS 7.0 or IIS 7.5 handlers to handle requests whose URLs do not end with a period

    0 讨论(0)
  • 2020-12-05 03:24

    an update for IIS is solved my problem, that can be downloaded from below link: http://support.microsoft.com/kb/980368

    0 讨论(0)
提交回复
热议问题