I want to deploy an MVC application on IIS 5.1. I am using MVC 2. How开发者_JS百科 can I do so? It seems bit difficult?
regards, Kaps
You have to add wildcard mapping as follows.
- Right-click on the virtual directory and choose properties.
- On the
Virtual Directory
tab, selectConfiguration
. - On the first tab, hit add.
- Browse ASP.NET ISAPI.
- Type
.*
for extension. - Uncheck
Check that file exists
. - Click ok.
I can't tell you for 100% certain, but my guess is yes you can. There is nothing special about the .NET framework required to be hosted on IIS 5--it just ISAPI's it. To IIS, .NET is simply another ISAPI filter, so it doesn't care what magic you are doing as long as you give it some text back from it's call. But again, I don't know for sure that MVC (.NET 3.5) plays nice with IIS 5.1
From a security perspective, there are all sorts of reasons not to host on IIS 5.1, but if that's not an issue (and performance isn't critical) then IIS 5 should be able to host .NET 3.5 apps.
Read about the security problems if you plan on deploying to the internet w/ IIS 5.1.
精彩评论