dcom

DCOM: CoCreateInstanceEx returns E_ACCESSDENIED

I'm working on a DCOM application with the server and client on two machines, both of which are running WinXP with Service Pack 2. On both machines, I'm logged in with the same username and password. When the client on one machine calls CoCreateInstanceEx, asking the other machine to start up the server application, it returns E_ACCESSD...

Has .NET made raw COM and DCOM programming redundant ?

Has the introduction of the .net framework made raw programming in COM and DCOM redundant ? (Except for using some COM+ services, e.g. for transaction management through the System.EnterpriseServices namespace) ...

Where can I find thorough DCOM documentation?

I work on an application that uses DCOM to communicate between what are essentially several peers; in the course of normal use, instances on separate machines serve a variety of objects to one another. Historically, for this to work we have used some magic incantations, chief among which is that on every machine the user must log into a...

Does Vista do stricter checking of Interface Ids in DCOM calls? (the Stub received bad Data)?

I hope everyone will pardon the length, and narrative fashion, of this question. I decided to describe the situation in some detail in my blog. I later saw Joel's invitation to this site, and I thought I'd paste it here to see if anyone has any insight into the situation. I wrote, and now support, an application that consists of a Vis...

Setting Remote Launch in DCOM

I can use DCOMCNFG to disable remote launch on my DCOM application, but I would like to do this programatically. I looked at CoInitializeSecurity, but that does not seem to do it. Anyone done this? I am using Delphi BTW. ...

Wrong 'Local Path' in DCOM Config entry

I have a component in DCOM Config whose 'Local Path' (on the General tab of the Properties page for that component in dcomcnfg) is pointing to the wrong place. However when I go to that directory and unregister the component using "componentname.exe /unregserver", the Local Path for that component remains unchanged. I've also tried goin...

"Object variable or With block variable not set" when attempting to create COM object

I have a VB6 dll that is trying to create a COM object using the following line of code: Set CreateObj = CreateObject("OPSValuer.OPSValue") However this fails with the error "Object variable or With block variable not set". I can see OPSValuer.OPSValue in dcomcnfg and it appears to be registered fine. Does anyone have any ideas about...

How do I let a non-admin user instantiate objects from a VB6 ActiveX Exe ?

Question says it all really... I have tried changing the "Allow non-admin users to run this program" setting on the property pages, and have also given the non-admin user in question what looks like the correct privileges in Component Services -> DCOM Config. Is there anything else I can do ? This is on Server2003 BTW. Thanks Matt ...

Error registering COM+ application proxy

Howdy folks: I have exported a COM+ application proxy, which generates MSI and CAB files, and I have successfully installed them on a few different Win XP and Vista machines. However, I have a WinXP box that isn't playing nicely. When I try and run the MSI it gives me the following error message: "Error registering COM+ Application." ...

dcomcnfg functionality programmatically

I can find all sorts of stuff on how to program for DCOM, but practically nothing on how to set/check the security programmatically. I'm not trying to recreate dcomcnfg, but if I knew how to reproduce all the functionality of dcomcnfg in C# (preferred, or VB.net) then my goal is in site. I can't seem to be able to find any good resourc...

Configure DCOM Settings with native .NET?

Some time ago I found aout about the System.Directory namespace in .NET 3.5 that enables me to basically manage local as well as domain accounts easily with native .NET methods instead of using API calls and importing unmanaged DLLs. Now I need to configure DCOM settings for some legacy application from within an MSI setup. As far as I ...

Is an SPN required when using Kerberos with DCOM?

I'm using DCOM to provide various application services on a Windows network, using Kerberos to handle authentication. The system normally works fine, but I'm running into issues accessing the service from a separate (trusted) domain. Particularly, the service is unable to make callbacks to the client application, receiving the error "A s...

Keeping a DCOM object alive from Java server on a REST invocation

Hi, I'm implementing a REST API for my Java server. One of the of the resources obtained through the API is actually creating a C++ DCOM object and reflecting its values. The Java to COM bridge I'm using is J-Integra. The problem is that I need to keep that DCOM object alive for subsequent REST calls, but the object is alive just as lo...

Remote WMI with Windows XP SP3

A fresh Windows XP SP3 install does not allow remote WMI access like Windows XP SP2 does. If I follow the steps in the "How to troubleshoot WMI-related issues in Windows XP SP2" document at http://support.microsoft.com/kb/875605 I'm unable to get SP3 to respond to a remote WMI request. Every request, even to the built-in Administrator...

Windows 2008 DCOM problem

Hi, I have an DCOM server and when a process calls a method that changes the password of an user the next petition fails. This problem only occurs when the machine is a Windows 2008 working as Domain Controller. Anyone knows how to fix it? Thanks EDIT: There is an audit security error with the code 4625, I have been searching in goog...

Excel VBA to VB (DCOM)

I inherited an Excel VBA spreadsheet. I have been tasked to convert it to VB. The application acquires data from a PLC using a DCOM object (I think). The following code runs the sub SBR1Select when MX1.0 is updated. Sub Workbook_Open() ActiveWorkbook.SetLinkOnData "dassidirect|strandburner!MX1.0", "SBR1Select" End Sub When I op...

Is there a DCOM-exposed object that permits streaming a write-locked UTF8 file?

The Scripting.FileSystemObject TextStream object supports Windows style Unicode and 'plain text' modified by the system codepage, but does not appear to support UTF8 -- However, it can actually stream files that are locked for updates, such as an IIS logfile. ADODB.Stream supports UTF-8 (or raw binary), but will not "LoadFromFile" a fil...

DCOMCNFG Question...

Hello, I have a COM DLL that I registered via RegSvr32 but it does not show up in DComCnfg. Any help as to why? I think I am missing a few registry keys, but I do not understand why I would, i thought RegSvr32 did that for me. Thanks for any help. ...

COM, COM+, DCOM, where to start?

I am curious about COM+, DCOM. I know that MSFT does not encourage you to use this tools natively (meaning with C/C++, in fact there is not a lot of documentation available) but I want to learn to use these technologies, like embedding Internet Explorer into a C program. I thought that maybe I could find people that worked with this or ...

How do I change a DCOM's guid in vb6?

I have a windows service that is instantiating a dcom object with a certain guid A. I need to replace that dcom object with a new version. When I create and compile my replacement dcom object it is created with a guid B. How do I change the replacement dcom object's guid from guid B to guidA? ...