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 running an ASP.NET MVC 3 application on an IIS 7.5 server (my development server). When I set up my production server something goes wrong. Serving the same application binaries, using the same web.config file and connecting to the same database I get different results. Something must be wrong with my IIS configuration, but what?

Here's an example

I visit http://mysite.com/An/AspNetMvc/Routed/Address/1 and everything works

I visit http://mysite.com/An/AspNetMvc/Routed/Address/1.1 works on my development server but not on my production server which gives the following error

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed,
or is temporarily unavailable.

Module         IIS Web Core
Notification   MapRequestHandler
Handler        StaticFile
Error Code     0x80070002

Somehow the URL is served as a static file on my production server which led me to investigate my IIS Handler Mappings, but without luck.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Okay, I finally solved it by doing the following.

  1. Opened the Server Manager in Windows and navigated to Roles -> Web Server (IIS)
  2. Selected Add Role Services and added these services that were missing on my production server (don't know which actually solved the problem)
    • Http Logging
    • Request Monitor
    • Static Content Compression
    • Dynamic Content compression
share|improve this answer
    
By looking at these four it seems that non of these solved it... :) Is your production server by any chance Windows Server 2008 (not R2) so it's running IIS7 and not IIS7.5? –  Robert Koritnik Jul 4 '12 at 17:36
    
No its 2008R2 and IIS7.5 –  m__ Jul 4 '12 at 17:37
1  
@RobertKoritnik Doing the above steps helped him synchronize pipeline events: support.microsoft.com/kb/2023146 which is why it started working. –  Mrchief Oct 2 '12 at 18:01

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.