IIS运行ASP。净MVC应用程序

时间:2022-07-14 03:34:41

I have deployed an asp.net MVC application to my IIS7 server. When I attempt to browse the dafault route I get the message

我已经在IIS7服务器上部署了一个asp.net MVC应用程序。当我试图浏览dafault路径时,我得到了这个消息

HTTP Error 403.14 - Forbidden

HTTP错误403.14 -禁止

The Web server is configured to not list the contents of this directory.

Web服务器配置为不列出此目录的内容。

It's clear to me that it is not loading/processing the global.asax, but I have no idea why. I've deployed another MVC application to this same location/app pool and it works fine.

很明显,它没有加载/处理全局变量。asax,但我不知道为什么。我已经将另一个MVC应用程序部署到相同的位置/应用程序池中,并且运行良好。

Does anyone have any idea how to debug a problem like this?

有人知道如何调试这样的问题吗?

2 个解决方案

#1


20  

Maybe:

可能:

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/> 
</system.webServer>

OR

#2


9  

I've tried a lot, and finally one checkbox did the trick

我尝试了很多,最后一个复选框成功了

IIS运行ASP。净MVC应用程序

#1


20  

Maybe:

可能:

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/> 
</system.webServer>

OR

#2


9  

I've tried a lot, and finally one checkbox did the trick

我尝试了很多,最后一个复选框成功了

IIS运行ASP。净MVC应用程序