ISAPI that use managed extension does not work under IIS6 ?

  • Thread starter Lionel Schiepers
  • Start date
L

Lionel Schiepers

I rencently tested an web application with ISAPI extensions that internally
use managed extensions but the call to the ISAPI failed. I receive the
following message: "A dynamic link library (DLL) initialization routine
failed." in my browser. These ISAPI extension work when they execute under
W2K or WXP.

To reproduce the problem, I've create a simple isapi extension with visual
studio 2002 and visual studio 2003 and changed the code with:



At the top of the file

#if defined(_MANAGED)

#using "System.dll"

using namespace System;

#endif





Changed the implementation of Default(CHttpServerContext* pCtxt) to:

void Cisapi2002Extension::Default(CHttpServerContext* pCtxt)

{

StartContent(pCtxt);

WriteTitle(pCtxt);

*pCtxt << _T("ISAPI 2002<BR>");

#if defined(_MANAGED)

*pCtxt << _T("MANAGED<BR>");

String *s=String::Concat(S"", S"");

#else

*pCtxt << _T("NOT MANAGED<BR>");

#endif

EndContent(pCtxt);

}



The ISAPI works if the project is not compiled with Assembly support.

Is there any workaround to use ISAPI extensions that use internally .NET
under IIS6 ?

_________________________________________

Lionel Schiepers (Lionel.Schiepers at advalvas dot be)

Bureau van Dijk Electronic Publishing

Tel: 32-2-639 06 06

http://www.bvdep.com/

Av. Louise, 250 B14

B1050 Brussels
 
W

William DePalo [MVP VC++ ]

Lionel Schiepers said:
I rencently tested an web application with ISAPI extensions that internally
use managed extensions but the call to the ISAPI failed. I receive the
following message: "A dynamic link library (DLL) initialization routine
failed." in my browser. These ISAPI extension work when they execute under
W2K or WXP.

You might want to experiment on the web server to see if managed code runs
on that box outside of IIS.

In any event, it might be a good idea to post your question again here:

microsoft.public.platformsdk.internet.server.isapi-dev

Regards,
Will
 
L

Lionel Schiepers

Thanks.


William DePalo said:
In case you haven't seen his post, David Wang replied that he is researching
the issue after your second post in the ISPAI group.

Regards,
Will
 
Top