Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Permission denied when method of remotely created object is called

Hi all!

I spent some 70 hours now on the DCOM he11, and I am getting pretty fed up with it. :mad:

Yesterday I was finally able to create an an object of my activex dll class (acting as a server within com+ dllhost) after dealing with firewall exceptions etc. (opening port 135 incoming tcp for this specific client)

Now the following. Whenever a method on this object is called, the client returns an error "70 Permission denied" and quits. With all Microsoft's sysinternal utils (filemon, regmon, procmon) I was not able to get a single relevant event on both client and server (as suggested for this matter by Microsoft).

Does anybody have experience with this? Please reply. This really could mean the end of my entrepreneurship if I don't get it fixed by the end of this month. :(

Thanx,

Guido Vrijdag
[871 byte] By [vrijdag] at [2007-11-11 10:12:21]
# 1 Re: Permission denied when method of remotely created object is called
Just as you throw your problem into the pitt filled with gurus you find the solution (from Scott S. in a microsoft newsgroup):

XP SP2 appears to demand that the server settings for application and machine security (in dcomcnfg) are as follows:
Default Authentication Level = Connect (instead of None)
Default Impersonation Level = Identify (instead of Anonymous)

Cheers!

Guido :) :) :)
vrijdag at 2007-11-11 17:23:06 >
# 2 Re: Permission denied when method of remotely created object is called
The following article has additional info if required:

http://www.codeproject.com/com/dcomcnfg.asp
pclement at 2007-11-11 17:24:03 >