473,320 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ISAPI that use managed extension does not work under IIS6 ?

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


Nov 16 '05 #1
3 2222
"Lionel Schiepers" <Li************************************@hotmail.co m>
wrote in message news:eP**************@TK2MSFTNGP12.phx.gbl...
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
Nov 16 '05 #2
Is there anybody at Microsoft ?

"Lionel Schiepers" <Li************************************@hotmail.co m>
wrote in message news:eP**************@TK2MSFTNGP12.phx.gbl...
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


Nov 16 '05 #3
Thanks.
"William DePalo [MVP VC++ ]" <wi***********@mvps.org> wrote in message
news:eg**************@tk2msftngp13.phx.gbl...
"Lionel Schiepers" <Li************************************@hotmail.co m>
wrote in message news:OS**************@TK2MSFTNGP12.phx.gbl...
Is there anybody at Microsoft ?
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

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark Hammond | last post by:
Phillip Frantz has contributed a very cool ISAPI (IIS extension) framework that I have been extending, and hope to include in later pywin32 builds. It supports both ISAPI extensions and filters. ...
1
by: Aaron | last post by:
whats the difference between an isapi filter and isapi extension? thanks
3
by: PCC | last post by:
I need to be able to redirect web requests from certain parties to specific content. In the old days I would have used ISAPI to do this. Now days I am wondering if I should be doing this using...
2
by: Norton | last post by:
I had a person tell me the other day that a person would not be able to beat the efficiency of an ISAPI dll, especially by using handlers/modules. Of course, they could only say the reason was that...
2
by: Jon Maz | last post by:
Hi All, I've been looking into options for URL Rewriting in .net, and to be honest, I haven't seen anything that's easier than the old Classic Asp solution with an ISAPI filter redirecting to an...
2
by: yachtIT | last post by:
HI MS, I have read from official microsoft msdn that an HTTPhandler in .NET can do anything a c++ isapi extension can do. Only a .NET HTTPhandler has a much more easy programming model. ...
0
by: Sarah J | last post by:
Hi We have a high traffic PHP built website which, for reasons beyond my control, is hosted on a twin processor (Zeus) Windows 2003/IIS6 server. PHP 4.4.1 came preinstalled as a CGI but because...
13
by: mtuller | last post by:
I am attempting to install PHP 5.2.x on Windows 2003 with IIS 6.0. When I go to install 5.2.1, it gives me an error when it tries to start the server I get an error. So I try installing 5.2.0. This...
0
by: Erwin Moller | last post by:
Hi, I am one of those questionable people that started with Vista (Home Premium). Not because I think it is a ready/steady OS, but partly out of curiousity, and partly because I needed to work...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.