IIS7 403 - Access Denied

前端 未结 7 1555
孤城傲影
孤城傲影 2021-01-05 00:16

I am trying to deploy a website that I have built in mvc3 on an server that runs iis7. I was able to get it running through the iis7 locally on my laptop, but when I try to

7条回答
  •  南方客
    南方客 (楼主)
    2021-01-05 00:48

    I faced this error last week and it can be caused by many things:

    1. The right version of the .NET framework is not installed or registered with asp_regiis.exe
    2. The "runAllManagedModulesForAllRequests" is set to false in your web.config
    3. The right version of MVC is not installed in the server
    4. You have an ignore route which ignores your request
    5. You have an early exception in your Application_Start and your site doesn't start properly

    For my part I forget to changed my logging directory path value in the web.config to an existing directoy.

    What you can do to know if it's an configuration error or an error in your application is to create a new default MVC project in VS and to deploy it in the same apppool.

提交回复
热议问题