473,396 Members | 1,917 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,396 software developers and data experts.

ISAPI DLL crashes on load

I have an ISAPI DLL originaly written in VC 6. The project compiles, links
and runs without errors when built with VC6. However, when compiled with .Net
2003 the ISAPI extension fails to load - when I navigate to my DLL web page I
get a 500 - Internal Server Error.

Attaching to inetinfo with WinDbg hits the following break point:

ModLoad: 04ca0000 04fec000 \\?\C:\Program Files\HRM Software\HRCharter
Enterprise 9.6\ChartIIS.dll
ModLoad: 10480000 1053c000 C:\WINDOWS\system32\MSVCP71D.dll
(dd0.89c): Break instruction exception - code 80000003 (first chance)
eax=00000000 ebx=04efe150 ecx=00fceba8 edx=7c90eb94 esi=001a68d0 edi=00000000
eip=7c901230 esp=00fcebd4 ebp=00fcecc8 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
ntdll!DbgBreakPoint:
7c901230 cc int

kd reveals:

0:021> kd
0110ebd0 00000004
0110ebd4 7c93ad0f ntdll!LdrpRunInitializeRoutines+0x247
0110ebd8 0110f268
0110ebdc 0110f248
0110ebe0 00000000
0110ebe4 00000000
0110ebe8 04f4a000*** WARNING: Unable to verify checksum for
\\?\C:\ChartIIS.dll
ChartIIS!_imp__DeregisterEventSource
0110ebec 00000000
0110ebf0 7c91c94d ntdll!LdrFindResourceDirectory_U+0x18
0110ebf4 7ffa4000
0110ebf8 001a92b8
0110ebfc 7c91d6d8 ntdll!`string'+0x7c
0110ec00 ffffffff
0110ec04 7c91d6d2 ntdll!LdrpSnapIAT+0x2b1
0110ec08 7c91d9cb ntdll!LdrpHandleOneOldFormatImportDescriptor+0xcc
0110ec0c 001a2a58
0110ec10 001a92b8
0110ec14 04f91918 ChartIIS!_IMPORT_DESCRIPTOR_NETAPI32
0110ec18 00000000
0110ec1c 00000001

The only clue is the DeregisterEventSource imported symbol: There is only
one place where this gets called. I've stuck a break point on and around that
line of code, and either the debugger is confused or that bit of code is not
getting called.

What is interesting is that ChartIIS.DLL *is* successfully loaded before
that point, and if I place a break point in my CHttpServer derived class
constructor, the class gets constructed correctly and everything looks OK.
After constructing the class, however, none of the class members get called
by IIS.

LdrpRunInitializeRoutines is the last bit of kernel code ran before DLL code
is executed, correct? I've stuck a break point on there and as far as I can
tell (it's by no means easy to work out what's going on!), its ChartIIS.DLL
that's being loaded. This makes me think that its a problem with the DLL
rather than a ISS/ISAPI specific problem.

Any suggestions on how to track down the probem(s) would be greatly
appreciated!

TIA,

--
Martin
Nov 17 '05 #1
0 880

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

Similar topics

4
by: Don: Bucknell Web Application Developer | last post by:
I've been scouring the Google Usenet archives, and I can find neither any article that addresses this question, nor any group that seems dead-on appropriate for asking it; I posted this in alt.php,...
0
by: Vince Hurst | last post by:
I have one server running Win2K SP4, PHP 4.3.3 in CGI, IIS 5, MySQL 3.23.49, and hosting PHP-Nuke sites. See: http://nuke.mineralore.com/info.php I've run into a problem with using phpMyAdmin...
4
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...
2
by: Sergey V. Alimov | last post by:
This is a simple ISAPI filter, which is used with SF_NOTIFY_AUTH_COMPLETE option. When I restart IIS and try to open a site's page - browser shows "Page can't be displayed". In Event log I see a...
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...
2
by: Prabhat | last post by:
Hello ALL, I have ASP pages that calls some ISAPI dll that created using Delphi for generating reports. The report page opens fine for 1st time when invoked but next time i get error like "Name...
2
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...
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...
5
by: DustinP | last post by:
I have installed PHP5 as ISAPI several times per every single guide I could find in the first 50 pages of results on google.. Server is Windows 2008 runing IIS7, phpinfo works and tells me the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.