Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2004

Tip: Looking for answers? Try searching our database.

Creating a COM object crashes IIS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erik G - 27 Aug 2004 07:27 GMT
I developed a service that uses the COM interface on different applications
to do printing. I am now migrating it to a ISAPI ATL Server.

My problem is that IIS craches when I try to create the COM object. For
example the line:

excelApplication.CreateDispatch("Excel.Application");

makes the following entries in the Event log:
* A total restart of IIS
* A timeout notification from DCOM

I have tried to setup dcomcnfg to use a impersonated user with the same
result. Of course I can separate the ISAPI functions from my application by
using named pipes. Since all code works when run as a service I don't think
that there are any simple bugs in my code. (Yes, I have called
"CoInitialize(NULL);" just before).

I had to put my application code in a separate dll called by the ISAPI
application dll to get rid of the usual dllmain linking problems. The
application is developed in C++ with Visual Studio .Net 2003, using the
standard ATL Server Application template, and is running in a W2000 server.

Is it at all possible to create COM Objects this way from an ISAPI
application? Any hints would be appreciated.
Erik G - 29 Aug 2004 16:53 GMT
I have found out that the IIS restart is due to my own shutdown of the
debugger session. If I let the ISAPI routine run to the end, I don't get the
errors.

The errors I get are two:
* A DCOM error stating "The server {1365A45F-0C8F-4806-A26A-6B22AD37EC66}
did not register with DCOM within the required timeout. " with event no 10010.

* A MsiInstaller error 11606 stating  "Product: AutoCAD 2004 -- Error 1606.
Could not access network location Autodesk\AutoCAD 2004\R16.0\enu\"
or
"Product: Microsoft Office XP Professional with FrontPage -- Error 1706.
Setup cannot find the required files. Check your connection to the network,
or CD-ROM drive. For other potential solutions to this problem, see
C:\Program Files\Microsoft Office\Office10\1033\SETUP.HLP. "

My guess are that the problem lays in MsiInstaller. It finds a new user and
tries to do some installation work. I get the application running, but
CreateDispatch does not finish as MsiInstaller hangs it.

So to reformulate the question: are there any way to manage what
MsiInstaller does?

Erik

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.