Sunday, November 7, 2010

Calling LoadLibraryEx on ISAPI filter "C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_filter.dll" failed

After installing Visual Studio 2010 on my 64 bit windows 7 machine IIS failed open any webpages with the following error:

"Calling LoadLibraryEx on ISAPI filter "C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_filter.dll" failed"

The following resolved it:

cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
aspnet_regiis -r

Yes ... I forced asp.net to run 32bit. I also tried:

cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319
aspnet_regiis -r

and it too worked. But I have a reason to run in 32Bit because I use SQLite :)

7 comments:

  1. excellent, this just poped up one day, thanks for the help

    ReplyDelete
  2. awesome - you're a life saver - thanks a bundle!

    ReplyDelete
  3. Nice one, thanks for this, saved me some hair pulling!

    ReplyDelete
  4. Thanks for this information but if you forced asp.net to run 32bit what happens with 64 bits application?
    Someone need run both applications!

    ReplyDelete
  5. Wow (windows on windows) does not apply to iis. Since iis is a process in itself for windows. But you can ask on stackoverflow to be sure.

    ReplyDelete
  6. Hi All,

    I got this error, before you do any above stuff, just try below

    1. Click on your computer icon in IIS

    2. On right side, you see ISAPI filters – Click

    3. Pick up the Filter name ASP.Net_4.0_64bit and its path MIGHT HAVE AN EXTRA \ IN THE PATH,

    SO UNABLE TO LOAD THIS DLL,

    %windir%\Microsoft.NET\Framework64\\v4.0.30319\aspnet_filter.dll

    4. restart IIS – should resolve the error.

    thanks

    HydPhani

    ReplyDelete
  7. @Indian - was hitting this error and came upon your blog comment - I had the double \\ path error happen on the 32 bit ISAPI Filter for 4.0~
    ...edited path and now all is good again - much thanks

    ReplyDelete