Retrieving the COM class factory for component with CLSID

G

Guest

Hi,

I'm using automation and it's working fine when I run it from my local
machine. but if I try to access it from another machine it's giving me this
Error:

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


Cheers.
 
N

Nicholas Paldino [.NET/C# MVP]

Badis,

How are you getting the type to create the COM object on a remote
machine? Are you calling the static GetTypeFromProgID or GetTypeFromCLSID
methods on the Type class, passing the machine name as the second parameter
and then instantiating an instance of that type?
 
G

Guest

It looks like I'm really a junior beginner when it comes to those issue of
COMs.., because I really don't have a clue what are you talking about.
All what I've done in my application is to include a reference of "Microsoft
Word 10.0 Object Library" and "Microsoft Office 10.0 Object Library" into my
bin which include dlls such as Interop.Word.dll which allows me to
instantiate and create word objects, but when I hosted my application in
other machine and try to access it it gave this error when it comes to the
second line of this code:
Word.Application wrdApp;
wrdApp = new Word.Application();



Nicholas Paldino said:
Badis,

How are you getting the type to create the COM object on a remote
machine? Are you calling the static GetTypeFromProgID or GetTypeFromCLSID
methods on the Type class, passing the machine name as the second parameter
and then instantiating an instance of that type?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Badis said:
Hi,

I'm using automation and it's working fine when I run it from my local
machine. but if I try to access it from another machine it's giving me
this
Error:

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


Cheers.
 
W

Willy Denoyette [MVP]

Badis said:
It looks like I'm really a junior beginner when it comes to those issue of
COMs.., because I really don't have a clue what are you talking about.
All what I've done in my application is to include a reference of
"Microsoft
Word 10.0 Object Library" and "Microsoft Office 10.0 Object Library" into
my
bin which include dlls such as Interop.Word.dll which allows me to
instantiate and create word objects, but when I hosted my application in
other machine and try to access it it gave this error when it comes to the
second line of this code:
Word.Application wrdApp;
wrdApp = new Word.Application();



Nicholas Paldino said:
Badis,

How are you getting the type to create the COM object on a remote
machine? Are you calling the static GetTypeFromProgID or
GetTypeFromCLSID
methods on the Type class, passing the machine name as the second
parameter
and then instantiating an instance of that type?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Badis said:
Hi,

I'm using automation and it's working fine when I run it from my local
machine. but if I try to access it from another machine it's giving me
this
Error:

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


Cheers.


Your problem is security related, the error code : 80070005. means "No
Access". You'll have to make sure the caller has access and launch
permissions to the COM server (winword.exe). You can check and adjust these
using dcomcnfg.msc.

Willy.
 
S

sajithkahawatta

to host your site in another machine that must be installed ms
office.otherwise u can not automate. i thin this is your problem.
 
G

Guest

I have set the permissions to the server using dcomcnfg as described in those
link but still didn't work!?

http://blog.crowe.co.nz/archive/2006/03/02/589.aspx
http://j-integra.intrinsyc.com/support/com/doc/remoteaccess.html



Willy Denoyette said:
Badis said:
It looks like I'm really a junior beginner when it comes to those issue of
COMs.., because I really don't have a clue what are you talking about.
All what I've done in my application is to include a reference of
"Microsoft
Word 10.0 Object Library" and "Microsoft Office 10.0 Object Library" into
my
bin which include dlls such as Interop.Word.dll which allows me to
instantiate and create word objects, but when I hosted my application in
other machine and try to access it it gave this error when it comes to the
second line of this code:
Word.Application wrdApp;
wrdApp = new Word.Application();



Nicholas Paldino said:
Badis,

How are you getting the type to create the COM object on a remote
machine? Are you calling the static GetTypeFromProgID or
GetTypeFromCLSID
methods on the Type class, passing the machine name as the second
parameter
and then instantiating an instance of that type?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi,

I'm using automation and it's working fine when I run it from my local
machine. but if I try to access it from another machine it's giving me
this
Error:

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


Cheers.


Your problem is security related, the error code : 80070005. means "No
Access". You'll have to make sure the caller has access and launch
permissions to the COM server (winword.exe). You can check and adjust these
using dcomcnfg.msc.

Willy.
 
W

Willy Denoyette [MVP]

Badis said:
I have set the permissions to the server using dcomcnfg as described in
those
link but still didn't work!?

Can't you be more specific, still doesn't work is of little help, is the
error code (if any) still the same?

Willy.
 
G

Guest

Yes, the error code is still the same:
"Retrieving the COM class factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error:
80070005."
and I event changed the AppID in the registry for WINWORD to "
{000209FF-0000-0000-C000-000000000046}" and "
{00020906-0000-0000-C000-000000000046}", but still the same error code!?
 
W

Willy Denoyette [MVP]

Badis said:
Yes, the error code is still the same:
"Retrieving the COM class factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error:
80070005."
and I event changed the AppID in the registry for WINWORD to "
{000209FF-0000-0000-C000-000000000046}" and "
{00020906-0000-0000-C000-000000000046}", but still the same error code!?

You must have done something wrong, the CLSID
000209FF-0000-0000-C000-000000000046 refers to the Winword.exe server
object, and 80070005 means "Access Denied". That means that the caller has
no launch or access permissions for Winword.exe to be used as automation
server.
Who's the caller and what kind of application is it?

Willy.
 
V

Vikrant Waghmare

Hi Willy Denoyette,

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

and

"Exception from HRESULT: 0x800A801C"

problem i have face.

Actullay i have design intranet asp.net application. I gives all rights to ASPNET user.
This application smootly run application server (application installed PC). But when i access my application through another PC then its gives above error.

I make impersanation identity true in my web.config file.

Is any setting is remaining in web.config file ?

Please help me.

Vikrant
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top