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

Creating a COM object crashes IIS

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.
Nov 21 '05 #1
1 3373
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
Nov 21 '05 #2

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

Similar topics

0
by: Juan Carlos CORUÑA | last post by:
Hello all, I have developed an automation server using Mark's win32 extensions and I must return a IStream COM object from one method of the automation server. Here is an extract of my code:...
0
by: Fiona McBride | last post by:
Hi all, I have a really odd problem with some Visual Basic .NET 2003 code; I have a program that creates a number of windows which contain RichTextBox, Timers (disabled) and menus. The code...
2
by: Roby Eisenbraun Martins | last post by:
Hi, My name is Roby Eisenbraun Martins, I am a C++, VB and NET developer. I am working with a NET 2002 project right now and I am receiving this uncommon "OutOfMemory" error message when I try...
2
by: CroDude | last post by:
Heya all! I have a weird problem when creating a texture brush in a Paint event. When program gets to the line where I'm creating a new TextureBrush object, it crashes with OutOfMemory...
4
by: hellrazor | last post by:
Hi there, I'm trying to consume a web-service that is supposed to return a collection of a custom object. The web-service was not created with C# or VS.net. It was created with IBM VisualAge...
2
by: sameer | last post by:
Hi, My very simple application VB.NET Visual Studio 2003 console application uses a log file to write some text to it. I am using StreamWriter object to create and open and then append text to...
4
by: JJ | last post by:
When I run my form prog, if I maximise, then minimise (i..i. force the GUI to redraw) I get the following error: "The object is currently in use elsewhere" At this line: ...
1
by: ropo | last post by:
I am using .NET 2.0 I have a C#.Net App, which uses a .NET Class Library, which accesses a COM object through interop. The C#.Net App also uses a mixed mode C++.Net Class library which uses an...
2
by: djpaul | last post by:
Hello, I have this program and when i want to load pictures it crashes at the form.showdialog()....??? Here it goes: Private Sub CmbPath_SelectedIndexChanged(ByVal sender As Object, ByVal e As...
1
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.