ASP.NET MVC Wildcard Mapping IIS 6 Not Working

落花浮王杯 提交于 2019-12-22 10:49:34

问题


I have a client who is trying to deploy a site that I designed in ASP.NET MVC, they are running IIS 6 and I've talked them through on how to setup wildcard mapping to make the clean URLs work.

However; when they attempt to go to the site they are still getting the normal page not found. Because for some reason the wildcard mapping isn't working.

What could be the issue?


回答1:


I had a similar problem, turns out it was because the aspnet_isapi.dll was not allowed.

Click Web Service Extensions in IIS Manager and check that ASP.NET v2.0.50727 is in the list and is allowed.




回答2:


In IIS 6 fo performance reasons there is no IIS level wildcard mapping to ASP.NET - this needs to be added in the IIS control panel.

The reason is that in IIS 6, asp.net runs external to the IIS core process (contrary to 7 where IIS is written in .NET), so they only forward what ASP.NET "should know about".

Customer should SERIOUSLY consider upgrading to IIS 7 ;)




回答3:


Issue sounds the same as described in steve sandersons blog. I'd go for option 1. Why? Because you can then further mimic iis7 by doing things like hooking into the request-processing pipeline :-)



来源:https://stackoverflow.com/questions/2819844/asp-net-mvc-wildcard-mapping-iis-6-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!