Last post Aug 16, 2010 07:50 PM by anas
Aug 16, 2010 07:17 PM|CareBear|LINK
I'm working on a blog framework using ASP.NET Web Pages with Razor Syntax and I'm having some trouble with URL rewrites. My server is a Windows Server 2008, which runs IIS 7.0. WebMatrix is already installed on the server and .cshtml pages runs without problems,
as long as they are named "index.cshtml" I don't have to supply the extension.
What does not work, is when I have URLs that does not correspond to physical files, e.g. website/post/why where the only physical file I have is post.cshtml. With IIS Express, the post.cshtml file is execute but on IIS 7.0 I get a 404 error.
Should I install the URL Rewrite for IIS 7.0? What configuration changes is required?
Aug 16, 2010 07:50 PM|anas|LINK
There are two solutions, checkout "Issue: Extensionless URLs do not find .cshtml/.vbhtml files on IIS 7 or IIS 7.5" section in