开发者

ASP.NET MVC app not browsing to pages only Index.aspx on root

开发者 https://www.devze.com 2022-12-23 16:28 出处:网络
I have an MVC 1.0 app just setupbut it only s开发者_运维问答hows the Index.aspx page of Home. Seems like the routing engine is not being engaged.

I have an MVC 1.0 app just setup but it only s开发者_运维问答hows the Index.aspx page of Home.

Seems like the routing engine is not being engaged.

I get a 404 error when i try to browse other pages.

Any ideas why this might be?

Malcolm


It's probably that the ASP.NET DLL isn't being called for your request. If you are talking about IIS, Phil Haack has a great article on how to sort it out. Note: Scroll down for .* version :)

Essentially, you are telling IIS that for every extension, it should look use the .NET DLL to run it, but don't check to see if the file exists first (because in MVC, the files don't exist).

0

精彩评论

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