Navigation

Search

Categories

On this page

Dealing with 80070005 error while instantiating a COM+ object/Services Component

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 80
This Year: 0
This Month: 0
This Week: 0
Comments: 33

Sign In
Pick a theme:

 Friday, October 22, 2010
Friday, October 22, 2010 11:37:13 AM (Eastern Standard Time, UTC-05:00) (  |  |  )

It's basically a note to self in order to avoid having to research this ever again. I got "Retrieving the COM class factory for remote component with CLSID {XXXX} from machine localhost failed due to the following error: 80070005 localhost" error along with UnauthorizedAccessException in RuntimeTypeHandle.CreateInstance while attempting to call Activator.CreateInstance(Type type) to instantiate serviced component/COM+ object.

To work around, "Enforce access checks for this application" checkbox needs to be unchecked on the Security tab of COM+ application properties. To do it programmatically, the code will look like this:

COMAdminCatalogObject app;
// app = ...
app.set_Value("ApplicationAccessChecksEnabled", 0);

 

Comments [0] | | #