Re: ISAPI Extension DLL don't work on IIS6

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 09/20/04


Date: Mon, 20 Sep 2004 15:31:57 -0700

For security reasons, IIS6 does not allow any code to execute by default
(only static files with configured MIMEType can be served). A few
applications will detect IIS6 and add/enable themselves in Web Service
Extensions, but vast majority of applications require manual setup steps.
You will have to set up a Web Service Extension for your custom ISAPI and
enable it so that IIS6 will allow it to execute. Please search this
newsgroup, IIS documentation (from IIS Manager UI, F1 help Troubleshooting
section should be enough) about "404" errors and you should find the
solution.

FYI: ISAPI has always been able to retrieve the remote IP WITHOUT using
Winsock. Just use GetServerVariable() on "REMOTE_ADDR" and "REMOTE_PORT" as
documented on MSDN.

-- 
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"joncao@cox.net" <joncao@cox.net@discussions.microsoft.com> wrote in message
news:7D7602A7-C5EB-487D-9704-D8A0F34360F0@microsoft.com...
I have created an ISAPI dll file by using VC++ ISAPI Extension wizard.
I posted it into IIS 5 server, it worked fine. However, when I posted into
IIS6 server, it doesn't work.
When I said it works, it populated what i want: the HTML interface; dons't
work, the page can not be found error appearing.
I have posted this dll file into virtual "scripts" directories acording the
doucmentati, on both of IIS5 and IIS6 with the exact same steps and
procedures.
What this DLL does is that it gets information from remote IP through
WinSock and post thoese info into HTML.
Thnaks very much in advance!


Relevant Pages

  • Re: Batch and Exe Files
    ... BTW. Try playing with your application pool identity in IIS6 and give the ... > ASP.Net and IIS6 to execute batch files and/or exe files. ... > Not that these are the applications I want to run but they ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Isapi extentions not working in IIS6
    ... > in the IIS Manager UI about dynamic content returning 404. ... IIS6 error messages do not disclose such information ... > denied the ISAPI to execute for security reasons. ...
    (microsoft.public.inetserver.iis)
  • Batch and Exe Files
    ... ASP.Net and IIS6 to execute batch files and/or exe files. ... Not that these are the applications I want to run but they ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: JSP on IIS 6
    ... On IIS6, you also need to add that ISAPI DLL to the list of known Web ... Is there something special you have to do to enable JSP in IIS 6? ...
    (microsoft.public.inetserver.iis)
  • Re: ISAPI in C++.net Book Recommendation Needed
    ... write ISAPI in managed C++ and use it on IIS6 -- the ISAPI DLL won't even ... With Whidbey on IIS6, you can use a custom DefaultHttpHandler to do what you ... you can use an ISAPI Filter or ISAPI Extension written in C (no ...
    (microsoft.public.inetserver.iis)