开发者

Is there a certain IIS configuration required to allow a functioning .Net 4.0 ASP.Net MVC 2 Azure application?

开发者 https://www.devze.com 2023-01-02 18:31 出处:网络
I just installed the Azure 1.2 tools update and would like to get to work on an Azure project running locally using ASP.Net MVC and .Net 4, but I cannot get MVC pages to load.

I just installed the Azure 1.2 tools update and would like to get to work on an Azure project running locally using ASP.Net MVC and .Net 4, but I cannot get MVC pages to load.

If I just create a new Azure project in VS 2010, add a ASP.Net MVC web role, and run the application, pages never load. It appears that routing is somehow at fault as controller actions never get called, but if I add other pages to the project (like .htm or .aspx) they will load in the browser.

It all works fine with a new project using .Net 3.5, MVC 2 project in the Azure development environment; it all works fine with .Net 4.0 MVC 2 project that is not开发者_JAVA百科 running in Azure; only the combination does not work.

Environment is Win 7 x64 (IIS 7.5), VS 2010, Azure tools 1.2

Is there some magic IIS setting I need to change or something? Any ideas?


Check if you have "HTTP Redirection" feature enabled.

See here

0

精彩评论

暂无评论...
验证码 换一张
取 消