Re: Retrieving the COM class factory for component with CLSID
- From: Badis <Badis@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 26 Apr 2007 04:04:03 -0700
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 [MVP]" wrote:
"Badis" <Badis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message.
news:376AD434-AD0B-40E3-A495-F3BBB7FCE939@xxxxxxxxxxxxxxxx
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 [.NET/C# MVP]" wrote:
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]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Badis" <Badis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E630C2E0-3237-48FD-9678-40697745CBD3@xxxxxxxxxxxxxxxx
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.
- Follow-Ups:
- Re: Retrieving the COM class factory for component with CLSID
- From: Willy Denoyette [MVP]
- Re: Retrieving the COM class factory for component with CLSID
- References:
- Re: Retrieving the COM class factory for component with CLSID
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Retrieving the COM class factory for component with CLSID
- From: Willy Denoyette [MVP]
- Re: Retrieving the COM class factory for component with CLSID
- Prev by Date: Re: Collection property & Design Time support
- Next by Date: 10 steps to an easy web site mock-up
- Previous by thread: Re: Retrieving the COM class factory for component with CLSID
- Next by thread: Re: Retrieving the COM class factory for component with CLSID
- Index(es):
Relevant Pages
|