Link to home
Start Free TrialLog in
Avatar of jspies
jspies

asked on

IIS ISAPI Extension dll not working

I have been trying to get this ISAPI Extension settings correct in IIS, with no success.
In IIS under the Machine name -> ISAPI and CGI Restrictions I have included my dll with the correct path c:\inetpub\scripts\CreditNow.dll with Allow extension path to execute box ticked.
I also have the Allow unspecified CGI module and Allow unspecified ISAPI modules boxes ticked.
In the Handler Mappings for the option ISAPI-dll my executable is set as C:\inetpub\scripts\CreditNow.dll and Request Path: *.dll. In the Request Restrictions->Mapping->Invoke handler only if.. (This is ticked)
In the Access tab->Execute is chosen.

In the Default Web Site section-> Virtual Directories, my correct path is set here:
Physical Path: C:\inetpath\scripts

Also in Control Panel->Programs and Features->Turn Windows features on or off->IIS -> Application Development Features, all options are ticked (CGI,ISAPI Extensions,ISAPI Filters...).

The error message that I get when running the dll on Internet Explorer is:
HTTP Error 500.0 - Internal Server Error
There is a problem with the resource you are looking for, so it cannot be displayed.
Module IsapiModule
Notification ExecuteRequestHandler
Handler ISAPI-dll
Physical Path C:\inetpub\scripts\CreditNow.dll

I have been playing around with the IIS settings for a while now and unable to get this working.
The code is correct because it used to work on a different machine running on Windows Vista.
My current OS is Windows 7.
I am missing some setting or registration and I can't figure it out. Any help will be highly appreciated.

Avatar of meverest
meverest
Flag of Australia image

Hi,

where does that dll come from?  Did you write it yourself, or is it some third party component?

Cheers.
Avatar of jspies
jspies

ASKER

I have written it myself using Visual C++ 9.
This dll works on some boxes which uses IIS 6.
It doesn't want to work on my Windows 7 box with IIS 7.5.
I have checked and double checked all the IIS settings and can't seem to find what is causing the web page from not picking up the ISAPI Extension dll.
ASKER CERTIFIED SOLUTION
Avatar of meverest
meverest
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jspies

ASKER

Okay I managed to find the problem.
In my web.config file I had to set:
    <system.web>
        <identity impersonate="false" />
    </system.web>

All my ISAPI dlls are working fine now.
Thanks for the response.