开发者

IIS7 MVC deploy - 404 not found on some actions

Once deployed parts of my web-application stop working. Index-es on each controller do work, and one form posting via Ajax, Login works too. Other then that yields 404. I understand that nothing particular should be done in integrated mode.

I don't know how to proceed with troubleshooting.

Some info:

  • A开发者_如何学Pythonpp is using default app pool set to integrated mode.
  • WebApp is done in net framework 3.5.
  • I use default routing model.
  • OS is Windows Server 2008.
  • IIS 7

Any help is appreciated. Thx.

EDIT: I determined that only actions that accept ID parameter don't work. On the contrary, when I add dummy id method in Home controller of default MVC app it works.

EDIT 2: I found the problem. Links on few pages of the site didn't use ActionLink helper. It was harder to see because of the Ajax invoking. So, never hardcode links to the actions on the site, even temporary.


Please go through this link for details on deploying MVC application with IIS 7 integrated mode.

http://www.asp.net/mvc/tutorials/older-versions/deployment/using-asp-net-mvc-with-different-versions-of-iis-cs

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜