IIS 6 Crash due to DLL/worker process recycle?

IIS 6 Crash due to DLL/worker process recycle?

Forum member · Oct 25, 2007
We are currently building a web app using the version 3.0.1 of the DynamicPDF generator, hosted on a Windows Server 2003 machine with IIS 6. As part of our normal maintenance processes for server stability, we force a recycle of the IIS Worker Processes every night. Ever since installing the DLL on our server, we have been receiving IIS crash messages after the recycle event, which appear to be due to the PDF DLL: Event Type: Error Event Source: Application Error Event Category: (100) Event ID: 1000 Date: 10/24/2007 Time: 2:09:23 AM User: N/A Computer: 93382-WWW1 Description: Faulting application w3wp.exe, version 6.0.3790.1830, faulting module mscorwks.dll, version 1.1.4322.2407, fault address 0x0004fc67. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. ------------------------------------------------------------------- Event Type: Error Event Source: COM+ Event Category: Unknown Event ID: 4786 Date: 10/24/2007 Time: 2:09:23 AM User: N/A Computer: 93382-WWW1 Description: The system has called a custom component and that component has failed and generated an exception. This indicates a problem with the custom component. Notify the developer of this component that a failure has occurred and provide them with the information below. Component Prog ID: Process Name: w3wp.exe Exception: C0000005 Address: 0x791FFC67 Call Stack: mscorwks!GetCompileInfo + 0x2476d mscorwks!GetCompileInfo + 0x2ce41 mscorwks!GetCompileInfo + 0x2ce72 mscorwks!GetCompileInfo + 0x2cd93 mscorwks!GetCompileInfo + 0x2d114 mscorwks!GetCompileInfo + 0x2bcc9 mscorwks!GetCompileInfo + 0x2d369 mscorwks!GetCompileInfo + 0x2d344 ole32!CoQueryAuthenticationServices + 0x2afb ole32!CoQueryAuthenticationServices + 0x36c5 ole32!UpdateDCOMSettings + 0x7ee0 RPCRT4!NdrServerInitialize + 0x462 RPCRT4!NdrStubCall2 + 0x217 RPCRT4!CStdStubBuffer_Invoke + 0x82 ole32!WdtpInterfacePointer_UserMarshal + 0x13fa ole32!WdtpInterfacePointer_UserMarshal + 0x13ad ole32!ProgIDFromCLSID + 0x1fd3 ole32!ProgIDFromCLSID + 0x1dd1 ole32!DcomChannelSetHResult + 0x851 ole32!WdtpInterfacePointer_UserMarshal + 0x12db ole32!WdtpInterfacePointer_UserMarshal + 0x116c ole32!WdtpInterfacePointer_UserMarshal + 0x15ec ole32!DcomChannelSetHResult + 0x7ca ole32!DcomChannelSetHResult + 0x5ee USER32!EnableMenuItem + 0x4ccc USER32!EnableMenuItem + 0x4d99 USER32!GetWindowLongW + 0x183 USER32!DispatchMessageW + 0xf comsvcs!CoCreateActivity + 0x572a comsvcs!CoCreateActivity + 0x5657 comsvcs!CoCreateActivity + 0x5ff0 comsvcs!CoCreateActivity + 0x643c msvcrt!_endthreadex + 0xa3 kernel32!GetModuleFileNameA + 0xeb For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. ------------------------------------------------------------------ Faulting application w3wp.exe, version 6.0.3790.1830, faulting module ole32.dll, version 5.2.3790.2492, fault address 0x000428cf. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. ------------------------------------------------------------------ Has anyone else experienced this, or perhaps has some ideas towards resolution?

Re: IIS 6 Crash due to DLL/worker process recycle?

Forum member · Oct 25, 2007
I should add - disabling the worker process recycle is likely not going to be an option for us.

Re: IIS 6 Crash due to DLL/worker process recycle?

Support · Oct 26, 2007
Hello, We are working to set up the exact same environment and do some testing on our end. We will post further updates on this as soon as possible. Thanks, ceTe Software Support Team

Re: IIS 6 Crash due to DLL/worker process recycle?

Support · Nov 2, 2007
Hello, We did some testing on Windows 2003 Server. The error does occur when .NET Framework 1.1 is installed on Windows 2003 Server with SP1. The problem is not within our product because we did some testing creating a sample example without the use of our product and error did continue to show up in the event viewer. We found the following solutions that did fix the problem: 1. Installing Windows Server 2003 SP2 if using .NET framework 1.1 2. The error does not show when using .NET Framework 1.0 3. The error does not show when using .NET Framework 2.0. The DLL files for framework 2.0 are currently not available in the download. We will be adding this to the standard installer very soon. In the meantime if you plan on using .NET Framework 2.0, please send an email to our [^a|mailto:support@cete.com|Support Team^] and they can send you DLL files that will work fine against framework 2.0. Thanks, ceTe Software Support Team

Re: IIS 6 Crash due to DLL/worker process recycle?

Forum member · Apr 25, 2008
I'm facing similar problems. I have service pack 2 installed - but that hasnt helped. Does the latest build of 3.01 support framework 2 and will installing .net 2 and the lastest build of 3.01 actually help? Thanks Paul

Re: IIS 6 Crash due to DLL/worker process recycle?

Support · Apr 25, 2008
Hello Paul, Yes, the latest build of the v3.0.3 works with the .NET framework v2.0 without any problem. You will have to download the latest build from our CustomerArea using your current serial number. Thanks, ceTe Software Support Team.

Re: IIS 6 Crash due to DLL/worker process recycle?

Forum member · Apr 25, 2008
Thanks for the reply. Do you know if this will solve my issue ( very similar to the one above? For your info here's the debug info: The system has called a custom component and that component has failed and generated an exception. This indicates a problem with the custom component. Notify the developer of this component that a failure has occurred and provide them with the information below. Component Prog ID: Process Name: w3wp.exe Exception: C0000005 Address: 0x791FFC67 Call Stack: mscorwks!GetCompileInfo + 0x2476d mscorwks!GetCompileInfo + 0x2ce41 mscorwks!GetCompileInfo + 0x2ce72 mscorwks!GetCompileInfo + 0x2cd93 mscorwks!GetCompileInfo + 0x2d114 mscorwks!GetCompileInfo + 0x2bcc9 mscorwks!GetCompileInfo + 0x2d369 mscorwks!GetCompileInfo + 0x2d344 ole32!CoQueryAuthenticationServices + 0x21bf ole32!CoQueryAuthenticationServices + 0x2dae ole32!CoGetContextToken + 0x119ee RPCRT4!NdrServerInitialize + 0x1fa RPCRT4!NdrStubCall2 + 0x217 RPCRT4!CStdStubBuffer_Invoke + 0x82 ole32!StgGetIFillLockBytesOnFile + 0x13d32 ole32!StgGetIFillLockBytesOnFile + 0x13cdf ole32!DcomChannelSetHResult + 0xaab ole32!DcomChannelSetHResult + 0x495 ole32!CoFreeUnusedLibrariesEx + 0xb06 ole32!StgGetIFillLockBytesOnFile + 0x13bec ole32!StgGetIFillLockBytesOnFile + 0x13a7d ole32!StgGetIFillLockBytesOnFile + 0x12f64 ole32!CoFreeUnusedLibrariesEx + 0x9f5 ole32!CoFreeUnusedLibrariesEx + 0x9c0 USER32!LoadCursorW + 0x4cf5 USER32!LoadCursorW + 0x4e86 USER32!TranslateMessageEx + 0x10d USER32!DispatchMessageW + 0xf comsvcs!DllUnregisterServer + 0x270 comsvcs!DllUnregisterServer + 0x180 comsvcs!DllUnregisterServer + 0xc6c comsvcs!DllUnregisterServer + 0xf4d msvcrt!_endthreadex + 0xa3 kernel32!GetModuleHandleA + 0xdf For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Re: IIS 6 Crash due to DLL/worker process recycle?

Forum member · Apr 25, 2008
Thought I'd just mention that the issue is very easy to replicate: 1) I access my site and access one of the pages generating a pdf document via DynamicPDF 2) Manually recycle the application pool - and the error occurs. If I access my site but don't gone on one of the pages with DynamicPDF and recycle there are no problems.

Re: IIS 6 Crash due to DLL/worker process recycle?

Support · Apr 25, 2008
Hello Paul, Yes, you can use our latest build with the .NET framework v2.0 without any problem. You can download it from our CustomerArea . You will have to register the dlls using the batch file Installv2.0.50727.bat located in the bin folder of the installation files. Thanks, ceTe Software Support Team.

Re: IIS 6 Crash due to DLL/worker process recycle?

Forum member · Apr 28, 2008
This was very bad advice by Cete Customer support. I followed their steps - it totally breaks Dynamic PDF - all I get now is "Cannot create object" errors! After a dozen re-installs and re-starts it was no better. I am now trying to uninstall .Net Framework v2 and hope this will at least get things working.

Re: IIS 6 Crash due to DLL/worker process recycle?

Support · Apr 28, 2008
Hello, Have you installed the latest build from our CustomerArea? The latest build of our COM v3.0.1 product is 61004. Please double check that you have this latest build. The latest build will work with .NET framework v2.0 without any problem. Please double check that the dlls are registered in the system. You can check this by running the VbScript examples downloaded with the product download. Thanks, ceTe Software Support Team.

Re: IIS 6 Crash due to DLL/worker process recycle?

Forum member · Apr 28, 2008
I downloaded the very latest version ( 61004 ). I also ran the script you suggested. In desperation I even re-started the server. I re-installed - just in case it hadnt worked. I ran the script again. I re-started. In fact I tried everything and simply won't work. However I notice in another thread in this forum that in fact there are issues with .Net framework 2 that can cause problems with software like DynamicPDFs. Microsoft are supposed to be working on a patch but as it's not released that doesnt help much. In the end I uninstalled .net 2 and everything went back to working as it did before ( i.e. occassional crashes but least it mostly works ) Maybe once the patch is released by MS that would solve the issues. In the meantime .net 2 and Dynamic PDF are best not installed together.

Re: IIS 6 Crash due to DLL/worker process recycle?

Support · Apr 29, 2008
Hello, The problem is not related to our product at all. Our product works fine on machines with .NET Framework 2.0. We have done successful testing and have several customers using it without any problem. Are you using IE7 on the machine where the crash occurs? If yes, we would like you to install the patch provided by Microsoft. The patch has not been released publicly as yet. The error occurs on line where you try to create the objects. Please send an email to our [^a|mailto:support@cete.com|support@cete.com^] and refer to this forum thread and they will send you the patch. Thanks, ceTe Software Support Team

Re: IIS 6 Crash due to DLL/worker process recycle?

Forum member · Nov 2, 2011
Is this problem solved? Does the microsoft patch solve the problem? Lg, Tim

Re: IIS 6 Crash due to DLL/worker process recycle?

Support · Nov 2, 2011
Hello Tim, As mentioned in our last forum post dated Apr 29 2008 9:19 AM, the issue where the IIS crashes when the worker process is recycled is not related to our product. The hot fix that was mentioned in our previous post addresses a different issue. If the error you are experiencing is similar to what was described here in this forum post then you might be able to resolve it by installing the Microsoft patch, in which case please email [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^] for the patch. Thanks, ceTe Software Support Team.