473,545 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ISAPI dll and .NET (clr)

Hi,

Was wondering if anyone knows how to get an ISAPI dll to workwith managed .NET code? I have an exisiting ISAPI dll and I'dlike to get it working with some .NET managed code. I've enabledthe /clr option, integrated my managed code into the unmanagedcode and have my dll compiling and linking. Initialially I gotthe following error: LNK4243 'DLL containing objects compiledwith /clr is not linked with /NOENTRY; image may not runcorrectly'.

I found Microsofts KBA 814472 and followed its instructions. Nowit links without any errors. However, when I go to access thedll through IIS, I get a 500 error with the following win32error - 127 (The specified procedure could not be found.). I'vetried to debug into the dll, however it appears to never getcalled (loaded). My guess is, the correct ISAPI dll entry pointmay not exist anymore since following all the instruction in814472.

Any ideas or help would be greatly appreciated.

--------------------------------
From: David Sacks

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>CWC/zARTP0qF5Iov6W+ G8w==</Id>
Nov 17 '05 #1
1 3072
"David Sacks via .NET 247" <an*******@dotn et247.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Now it links without any errors. However, when
I go to access the dll through IIS, I get a 500
error with the following win32 error - 127
(The specified procedure could not be found.).


That's right. IIS wants to see a DLL with these exports:

GetExtensionVer sion
HttpExtensionPr oc
TerminateExtens ion

The first is used to negotiate a version of ISAPI with IIS. The second is
where you implement the guts of your application. The third is a
notification that IIS is about to unload the extension.

At the command line enter

dumpbin /exports YourISAPIDLLNam eGoesHere.dll

if the names above are decorated (aka mangled) then use a module definition
file to export them plain. If not present, add them.

Regards,
Will
Nov 17 '05 #2

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

Similar topics

4
3213
by: Irene | last post by:
Hi, I have an asp page that allows a user to search for info in a DB and add info to a DB. The search uses "ADODB.Connection" objects in the page, but the add will use a call to an isapi dll via the "Microsoft.XMLHTTP" object. The results of the isapi dll will be displayed to the user without refreshing the asp page. I have a code...
6
1765
by: msnews.microsoft.com | last post by:
I am a C# programmer with a little C++ experience from a few years ago. I need to write some ISAPI filters and extensions to run on the latest version of IIS on .net Server 2003. Can anyone recommend an excellent book that has some decent samples to get an out of shape C++ programmer and ISAPI beginner going? Thank you.
3
2242
by: Lionel Schiepers | last post by:
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...
2
2037
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 it is written in C++, which should have nothing to do with it. But, in general, can you write a handler that will handle just as many...
2
2576
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 .asp page with responsibility for handling the redirect. I'm now planning to use this solution with my next .net project, and was wondering if...
2
3341
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. However I cannot find any documentation on how to receive an HTTP request ( HTTPcontext ) with an HTTPhandler and keep the connection alive. The...
2
2069
by: Drew Burchett | last post by:
I am currently coding an ISAPI filter and I would like to use some .Net functionality within the filter. However, when I include calls to anything in the framework, it locks the dll and will not release it until I restart the machine. Even after restarting the W3SVC and removing it from the list of ISAPI filters, it still has a lock on it. ...
0
1611
by: Chris Curvey | last post by:
Hi all, I'm trying to write an ISAPI filter in Python, using the examples that come in the "isapi" directory of the win32com package. The installation program itself runs fine, but when I examine the properties of my web server, my filter has a big red down arrow next to it. But I can't seem to figure out where I should be looking to find...
0
5967
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 on an old project that happens to run on IIS6/W2000/MSSQL7, but my W2000 machine couldn't handle the size of the database in question anymore. :-(...
0
7409
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7664
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7437
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7771
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4958
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3465
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
720
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.