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 have two Windows 2008 R2 Servers running an asp.net 4.0 app. The server that is having problems actually loads asp.net pages just fine, but if there are any ajax calls they don't work. I noticed there are no .net 4.0 specific Handler Mappings in IIS for this server like the other server has.

It's literally missing all .net 4.0 mappings (.axd, .soap, .cshtm, .ashx and even .aspx). I've tried running "aspnet_regiis -ir" but that didn't help. Should I reinstall the .net 4.0 framework? Manually add all these missing mappings? Is there something else going on?

What I don't want to do is add a ton of handlers to a web.config, they aren't needed on the server that works so it shouldn't be needed on the broken one.

share|improve this question
    
thanks you for asking this! –  andy Jan 18 '13 at 0:52

3 Answers 3

Thanks for your answer but I have already checked the root handlers which are the same as the application handlers and missing all the .net 4 ones.

Problem solved. All I had to do was to execute aspnet_regiis in %WinDir%\Microsoft.NET\Framework64\v4.0.30319

In IIS 8, we have to go to "Turn Windows feature ON and OFF" and got to "Internet Information Services > World Wide Web Services > Application Development Features" and select "ASP.Net 3.5, ASP.Net 4.5 and ISAPI Extensions and Filters"

share|improve this answer
up vote 3 down vote accepted

It turns out that the root node in IIS had all the appropriate handlers, but for some reason the web site in question did not have the handlers. I simply clicked "Revert to Inherited" in the right nav of IIS in the Handler Mappings section and all is working well now.

share|improve this answer

Don't forget to add the "-i" parameter!

C:\windows\system32>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.
exe -i
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Start installing ASP.NET (4.0.30319.17929).
.............
Finished installing ASP.NET (4.0.30319.17929).

C:\windows\system32>
share|improve this answer

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.