ISAPI Filter ‘C:\Windows\Microsoft.NET\Framework\v4.0.30319\\aspnet_filter.dll’ could not be loaded due to a configuration problem

Problem

After monthly server patching, I also made some security enhancements to the web.config files in the C:\Windows\Microsoft.NET\FrameworkXX\vXXX\CONFIG\ directories. It was therefore important that I test both 32bit and 64bit application pool modes. I found that tests running 64bit mode were suddenly failing with the following error message:

ISAPI Filter ‘C:\Windows\Microsoft.NET\Framework\v4.0.30319\\aspnet_filter.dll’ could not be loaded due to a configuration problem. The current configuration only supports loading images built for a AMD64 processor architecture. The data field contains the error number. To learn more about this issue, including how to troubleshooting this kind of processor architecture mismatch error, see http://go.microsoft.com/fwlink/?LinkId=29349.

It was of no surprise what so ever that the link included in the error message was 100% useless (thanks again Microsoft). One article I found suggested I uninstall .NET 4 – that’s like turning a monitor off to fix a dead pixel.

Solution

Upon closer inspection of the error message I noticed the problem:

v4.0.30319\\aspnet_filter.dll

Windows doesn’t handle double slashes very well as opposed to Linux. What is strange is none of these settings are manually changed which suggests it was perhaps a Windows update that caused this, however I have no evidence beyond change control logs.

I fixed with the following process:

Opened IIS Manager and selected the IIS web server node:

In the middle pane, browse to the IIS section and select ISAPI Filters:

Expand the columns as required, looking for an Executable path with \\ in it, then click Edit:

From the above screenshot, change the \\ to \ so the path reads:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_filter.dll

Just keep in mind that the folders Framework and Framework64 or the .NET version may change depending on your implementation.

After clicking OK, all my testing started to work again and the 500 Internal Server errors went away.

Conclusion

A possible Microsoft update (exact cause unknown) made an error updating an existing or installing a new ISAPI handler to IIS. By mishandling the path, it inserted \\ instead of \ into the executable path causing IIS to be unable to load the filter.

This caused 500 Internal Server errors to sites/applications running application pools in 64bit mode.

Hopefully this helps someone out. If it does, leave me some feedback! Thanks all!

Similar Posts:

VN:F [1.9.22_1171]
Rating: 5.0/5 (29 votes cast)
VN:F [1.9.22_1171]
Rating: +42 (from 42 votes)
ISAPI Filter 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\\aspnet_filter.dll' could not be loaded due to a configuration problem, 5.0 out of 5 based on 29 ratings
Tags: , , , .

98 Responses to ISAPI Filter ‘C:\Windows\Microsoft.NET\Framework\v4.0.30319\\aspnet_filter.dll’ could not be loaded due to a configuration problem

  1. abacusdotcom says:

    Thanks buddy.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  2. RAdministrator says:

    What a guy!! Thanks for sharing. I had the same error, for same version of .NET, same cause and I applied the same solution. It worked!!

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  3. M says:

    Thanks! So simple and saved us fast from having mayor problems. I didnt notice it reading the error.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  4. Mani says:

    Perfect solution. It revolved our problem:)

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  5. deepa says:

    Perfect solution. It revolved my problem. Thanks dude

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  6. fred says:

    thanks – just spent nearly two hours trying to test permissions etc

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  7. Arathy says:

    Thanks a lot..!! I have been searching for the solution for past one day. Your post solved my problem . 🙂

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

What are your thoughts?