dcom

Remote DLL Registration without access to HKEY_CLASSES_ROOT

We have a legacy VB6 application that updates itself on startup by pulling down the latest files and registering the COM components. This works for both local (regsvr32) ActiveX COM Components and remote (clireg32) ActiveX COM components registered in COM+ on another machine. New requirements are preventing us from writing to HKEY_LOAC...

How can I supress Delphi DataSnap error message dialogs?

We run a DataSnap Delphi 2009 application on Windows 2003 Server. DataSnap Client and Server are on the same computer, using DCOM over Borland Socketserver. The client runs a background batch job. Sometimes, we discover that the client can not connect to the server application and displays a message dialog on the server desktop indicati...

Classic ASP with COM throwing "Data source name not found and no default driver specified" on Windows Server 2008 R2

We have a classic ASP application that connects to a COM component. The COM component reads a connection string from the registry and connects to a datasource. We exported the COM package out of a 2003 box and imported into a 2008 R2 box. We've reviewed every setting to ensure its correct. When we hit the classic ASP site, we get the fol...

simple tutorial for DCOM

Hi, Can someone suggest me beginners learning resources for DCOM technology using vc++ Those with Sample codes would be very helpful. Thanks ...

Access to excel file in the server without installing excel

Hello, I've created a library to pass/get data to/from excel. To execute in my machine i modified the access permisions in COM+ console. The thing is that im interested in upload this component to my online server, but there i havent installed excel. Are there any way to register excel in COM+ without install excel? Thanks in adva...

Passing NT handles through DCOM

Is it possible to pass a raw NT handle (eg, to an event object) via a DCOM call - on the local machine, of course. If so, how would one go about doing so? ...

Retrieving the COM class factory for component with CLSID {00020906-0000-0000-C000-000000000046} failed due to the following error: 80070005

Hi, I am getting the above mentioned error when my web service tries to open MS word document programatically through my .net webb service. When I run web service through visual studio, it works fine but when I deploy web service on IIS 7, I get the error Retrieving the COM class factory for component with CLSID {00020906-000...

Registering a DCOM Server and running a client from remote system

Hi, I built a sample application for dcom by following the steps given in this link. After building the client and test DCom server, i tried to run client in my system and it worked correctly. But if i try to rum client from remote location, an error message is coming saying "Access is denied". How can i run my client in remote locati...

Accessing COM server (EXE) remotely using Java (DCOM)

I have a question about accessing COM objects remotely. Currently I am using JACOB to connect our custom COM server (exe) and it works really well. However we are trying to separate the Java code from the COM server and place them on separate machines. JACOB doesn't support DCOM. So I wanted to know is this possible with com4j? If so can...

Automate Remote Window with with AutoIT

I'd like to use AutoIT's COM interface in a C# application to automate a window on a remote machine. I have code that looks like this: var type = Type.GetTypeFromProgID("AutoItX3.Control", "my-remote-server", true); var automater = (IAutoItX3) Activator.CreateInstance(type); automater.DoStuff(); The problem is that the automater does...

Delphi COM EXE and Threading

Just want to confirm with the COM/DCOM experts out there... I have a Delphi COM EXE that is running on a server (threading is Single Apartment) and another copy of that same EXE starts up on the same server (a server that has say 2 processors with dual core so the task manager shows 4 separate graphs) will they take turns waiting for e...

Server Word automation permissions (some answers and some questions)

Hello, I am attempting to use word automation to count the number of pages in a word document. So far i have faced these errors: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005. Word stuck when opening a document. My resolution at the moment...

COM method call fails in C#, VB.NET, but works in Python

I'm having trouble with a COM library I'm trying to use. I get an ArgumentException when I call a particular method and pass it null. This happens to me in both a C# project and a VB.NET project (I call the method using Nothing) where I added the library reference from the "COM" list in Visual Studio 2008. When I call this same method...

Error while creating COM class object in a remote machine using DCOM

Hi, We are getting an error message [Exception - 80070057] while creating COM class object through web application [ASP .NET, C# .NET]. The COM server is installed in a remote machine, its connected to web server using DCOM (COM+). But its not happening all the time, it will happen only after trying lots login through webpage. The COM...

How to deallocate COM server object forcefully from C# .NET

Can I know how to deallocate COM server object forcefully from C# .NET if particular condion fails or the object is partially constructed? The problem is I am using that COM server using DCOM mechanism; in the worst case, when the object is not created fully and I am coming out of application since failure, the COM object is still in m...