Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm moving an asp.net MVC3 appliaction from its test box to the live server. I've noticed that although its been working on the test box

Windows Server 2003 Web Edition SP2

there is no wildcard scriptmap in place (at the website or the 'websites' level) : I thought that was needed for IIS6, and I thought IIS in the above server was IIS6...

So, why does the above site work. I think I installed ASP.NET MVC3 with the Web Platform Installer. That mentions something about IIS7 Preferred Configurations. Is it something to do with that, and is that something I can replicate to the live boxes? The live servers currently need the wildcard scriptmap.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Is there perhaps a set of scriptmaps (including a wildcard) at the Application level?

AFAIK:

Edit: All becomes clear... http://haacked.com/archive/2010/12/22/asp-net-mvc-3-extensionless-urls-on-iis-6.aspx - the ASPNET_ISAPI filter can take care of this as of .Net 4.0. (It's also used for handling the cookieless session state URLs in earlier versions - it just got a bit more versatile).

share|improve this answer
    
not that I can find. The app is deployed as a website, there is no scriptmap there, and none at the webserver level (right clicking on websites and exploring properties). If there is a command line way of exploring these settings I'd be happy to run it! –  Andiih Mar 21 '11 at 13:09
    
This article asp.net/mvc/tutorials/… looks like it steps through the possibilities for setting up MVC2, at any rate - an ASP.net handler can be invoked if your site is architected to use that (i.e. uses a particular extension as part of the path). for command lines: cscript adsutil.vbs get /lm/w3svc/1/root/ScriptMaps (or target /w3svc, or /1/root/yourapp/scriptmaps, and so on) –  TristanK Mar 21 '11 at 13:15
    
The issue is exactly that I didn't have to follow the steps from that article on my test server, but I do have to on the live server...and I have no idea why the test box is "special" - presumably something I or others have done to it in the past! The command line shows I have a wildcard scriptmap in another application in another folder running in a different app-apool under a different version of dot net. Other than that, I can't see what makes this tick! –  Andiih Mar 21 '11 at 17:29
    
Dang! - just seen your edit. Thanks! That must be what was going on. I should be able to get that to work on the new server too then! Thanks for your research @TristanK That was driving me mad! –  Andiih Mar 21 '11 at 17:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.