473,408 Members | 1,788 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Retrieving the COM class factory for component with CLSID

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.

Apr 23 '07 #1
9 46725
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]
- mv*@spam.guard.caspershouse.com

"Badis" <Ba***@discussions.microsoft.comwrote in message
news:E6**********************************@microsof t.com...
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.

Apr 23 '07 #2
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]
- mv*@spam.guard.caspershouse.com

"Badis" <Ba***@discussions.microsoft.comwrote in message
news:E6**********************************@microsof t.com...
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.


Apr 24 '07 #3
"Badis" <Ba***@discussions.microsoft.comwrote in message
news:37**********************************@microsof t.com...
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]
- mv*@spam.guard.caspershouse.com

"Badis" <Ba***@discussions.microsoft.comwrote in message
news:E6**********************************@microso ft.com...
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.

Apr 24 '07 #4
to host your site in another machine that must be installed ms
office.otherwise u can not automate. i thin this is your problem.

Apr 25 '07 #5
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/suppo...oteaccess.html

"Willy Denoyette [MVP]" wrote:
"Badis" <Ba***@discussions.microsoft.comwrote in message
news:37**********************************@microsof t.com...
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]
- mv*@spam.guard.caspershouse.com

"Badis" <Ba***@discussions.microsoft.comwrote in message
news:E6**********************************@microsof t.com...
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.
Apr 26 '07 #6
"Badis" <Ba***@discussions.microsoft.comwrote in message
news:A4**********************************@microsof t.com...
>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.

Apr 26 '07 #7
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!?

"Willy Denoyette [MVP]" wrote:
"Badis" <Ba***@discussions.microsoft.comwrote in message
news:A4**********************************@microsof t.com...
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.
Apr 26 '07 #8
"Badis" <Ba***@discussions.microsoft.comwrote in message
news:5C**********************************@microsof t.com...
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.

Apr 27 '07 #9
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
Aug 11 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sakke | last post by:
Hello! We have written a GCryptoSvr.dll COM server in C++. Inside that resides WebClient COM component. WebClient CLSID is {8DC27D48-F94C-434B-A509-C3E1A3E75B9E}. When we are using that...
0
by: mihironline | last post by:
We have a scheduled job, which runs at every 5 min. As first step of this job, we are executing a stored proc. Inside stored proc, we have following line of code insert #exeResult EXEC...
3
by: Harish | last post by:
I am buiding an application in ASP.Net 2.0 with C#. After installing corel wordperfect i am adding the reference into the application. Afetr adding reference interop.wordperfect.dll is added to the...
1
by: jimmyfo | last post by:
Hi, I recently wrote an ASP.Net web application in VS2005 and published (using VS2005 Publish feature) it to a relatively clean machine with ASP.Net 2.0 and MDAC 2.8 installed on it. However, when...
4
by: omrivm | last post by:
Hi, I have a problem with Outlook Redemption, every time I'm trying to create a new RDOAddressBook: Redemption.RDOAddressBook AB = new RDOAddressBook(); I get: "Retrieving the COM class factory...
0
by: orieni | last post by:
Hi, I have writen a code to take snapshot of Internet Explorer. The code works fine when run in the debug mode. But once I publish the site I get the following error for: Retrieving the COM...
0
by: Olman Quesada | last post by:
Hi everybody, I'm trying to access a TLB in a VB.Net 2005 project. The TLB file is located under c:\windows\system32 directory. However, when a try to instanciate a variable whose type is...
11
Frinavale
by: Frinavale | last post by:
Hi guys, I've created a VB.Net project and have compiled it, run it, tested it on a machine that has a 32bit processor. I am now trying to move this project onto a 64bit processor server that is...
3
by: =?Utf-8?B?Tmljaw==?= | last post by:
Hi all, i have a web application and one of the function is to generate a word document by button click. it works fine in debug mode when i run this web application. But after i deploy to my...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.