码迷,mamicode.com
首页 > Web开发 > 详细

MVC Route not working

时间:2014-09-08 02:08:26      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:http   io   ar   for   sp   on   c   ad   res   

When you run your MVC application, you always receive following message:

 

HTTP Error 404.0 - Not Found

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

 

 

But actually, in your code ,the routes are all right .

In this scenario, make sure following config exists in you web.config file‘s system.webserver node:

<modules runAllManagedModulesForAllRequests="true" />

 

It woks good for me ,hope this help someone else .

MVC Route not working

标签:http   io   ar   for   sp   on   c   ad   res   

原文地址:http://www.cnblogs.com/yanyuge/p/3961016.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!