473,808 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Launching out-of-process COM server from Web Form

Hi,

I'm having trouble creating a COM object in my ASP.NET Web Form. The COM
object (IFoo) is in a DLL, but it creates another COM object (IBar) that is
defined in an out-of-process COM server EXE.

I added a reference to the object's DLL to my Web Form solution. I create
the object with the line:

FooClass foo = new FooClass();

When I compile and open the page, I get to this line and I hear the Windows
Exclamation sound and the app hangs. No exception is thrown, the app just
hangs. I get the following error in the Event Viewer:

Event Type: Error
Event Source: DCOM
Event Category: None
Event ID: 10016
Date: 10/17/2006
Time: 10:34:29 AM
User: [machinename]\ASPNET
Computer: [machinename]
Description:
The machine-default permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{46DCBD35-4594-496F-91B7-CAA5F3B9C87B}
to the user [machinename]\ASPNET SID
(S-1-5-21-1417001333-1078145449-839522115-1008). This security permission
can be modified using the Component Services administrative tool.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

<end of error>

The COM server is never started. I wrote a C# application that creates the
same object in the same way, and it works correctly. If I recompile IFoo so
that it doesn't create IBar, then the Web Form can create it successfully.

I'm new to ASP.NET, but the information I've been able to find online seems
to indicate that this is possible. Problems people have had have stemmed
from the COM server trying to display message boxes or dialogs, or
permissions issues with the ASPNET account. My server isn't trying to
display any UI, except for an icon in the system tray. I've given the
ASPNET user Launch and Access permissions on the COM server in DCOMCNFG.

Am I doing something wrong? Is it possible to do this from a Web Form (as
opposed to a Web Service, which seems to be how most people attempt to do
it)? Any help would be greatly appreciated.

David St. Hilaire

Oct 17 '06 #1
0 1130

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

Similar topics

2
10176
by: Bob | last post by:
Hi, I'm trying to build a PHP page which launches another php script to be run in the background. The web page should return immediately, while the background script may run for 10 minutes or something. Unfortunately I'm getting all kinds of weird behaviour.. In my main script I'm using exec() (also tried the other options) to start a ..bat file. This actually works, the batch file is launched and is able to write something to disk.....
0
1709
by: Hegemony Cricket | last post by:
I've found several good examples out there on how to launch a web browser from a Java application, using the Runtime exec() command. However, what I'd like to do is configure the browser that's launched, as one would in an html link with the javascript onclick="window.open( 'http://www.mysite.com', 'mywindow', 'width=500,height=500,scrollbars=no,resizable=no')"
3
1368
by: Bragadiru | last post by:
I installed visual studio .net on my W2k workstation. Now, whenever I'm doing a search (F3) or run a particular application, the visual studio .NET installer is launching and I have to cancel it several times before I can continue. What should I do to avoid this ? Thnx for any advice
1
5526
by: Gamaliel | last post by:
When I try and install Visual C++ 6.0 Enterprise Edition on a laptop with windows XP I get the error message Error launching acmboot.exe. I tried deleting HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio but that didn't solve the problem. Any suggestions.
2
1829
by: Speed Racer | last post by:
I would like to embed sound (mp3 prefferred) in HTML code where the user would click on a button and hear the sound without launching a media player. Anyone know how this is possible? Thanks
4
4415
by: Greg Miller | last post by:
Currently I am launching adobe reader using the following call: os.system("path.file.pdf") this works fine for opening the pdf doc at the beginning. We would like to enhance this and open the document to either a page or a nameddest in the doc. The syntax for that in the DOS command prompt world is: acroRd32.exe /A "nameddest=Before You Begin" "path.file.pdf" However the os.system call won't allow me to call reader using that syntax. ...
5
8912
by: MLH | last post by:
With Access 2.0, it was simple. 97 doesn't seem so obvious. Where do I start. I launched c:\windows\system32\Wrkgadm.exe and joined system.mdw in that same dir. Upon launching Access 97, I wasn't prompted for a name 'n pass. What should I do?
3
6269
by: Robert Misiak | last post by:
In a program that I wrote, it is very important for the user to have the correct time zone configured. As such, in its properties window I display the current configured time zone, and if it is incorrect there is a button that the user can click on which launches TimeDate.cpl. This is how I run it: System.Diagnostics.Process.Start ("rundll32.exe", "shell32.dll,Control_RunDLL TimeDate.cpl"); This works just fine in debug mode from...
0
1223
by: Sharon | last post by:
I'm trying to download a file from the MSDN subscribers downloads, but I get the error: "There was an error launching File Transfer Manager. Please try again later or contact help provider" I have WinXP + SP2 How can I fix it? How can start the "File Transfer Manager" manually?
2
1906
by: rlntemp-gng | last post by:
Re: Access 2003 / Outlook 2003 In my Access application there are three files that are created, 2 .xls and 1.txt While I have not integrated Outlook into an Access app, is there a way via VBA code behind a command button to: 1. Launch Outlook 2. Click "New Message" and populate the 'To', 'From', 'Subject', 'Body', and append the three attachments' and send the message, then
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10633
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9198
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.