473,513 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error when laoding word from vb.net 2005

Hi All

I have a VB.net 2005 App which uses MS Word 2003 to do printing and Mail
Merging, by automation

All works fine on my Laptop (XP Pro SP2, Word 2003) but on my desktop (XP
Pro SP2, Word 2003) I get the following message when I try to launch Word
using the code..
Imports Word = Microsoft.Office.Interop.Word

Dim wordapp As Word.Application = New Word.Application --- error

'Retreiving the COM Class Factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error
8007045a'

I have uninstalled and reinstalled the .Net programmability option in Word
2003 setup.
The required assemblies are in the GAC on both computers
My app references Microsoft Word 11.0 Object Library

Can anybody help

Regards
Steve
Nov 7 '06 #1
5 1441
Do you have the latest .net framework/visual studio service packs? Make
sure that you have the same versions.

steve wrote:
Hi All

I have a VB.net 2005 App which uses MS Word 2003 to do printing and Mail
Merging, by automation

All works fine on my Laptop (XP Pro SP2, Word 2003) but on my desktop (XP
Pro SP2, Word 2003) I get the following message when I try to launch Word
using the code..
Imports Word = Microsoft.Office.Interop.Word

Dim wordapp As Word.Application = New Word.Application --- error

'Retreiving the COM Class Factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error
8007045a'

I have uninstalled and reinstalled the .Net programmability option in Word
2003 setup.
The required assemblies are in the GAC on both computers
My app references Microsoft Word 11.0 Object Library

Can anybody help

Regards
Steve
Nov 7 '06 #2
Hello Steve,

As I understand, the VB .NET 2005 application will create a
Word.Application object, and this works on your laptop, but not on your
desktop. Did you have .NET framework 2.0 and Office 2003 completely
installed on the desktop? More specific, if you check the system registry,
can you find following entry?

HKEY_CLASSES_ROOT\CLSID\{000209FF-0000-0000-C000-000000000046}

And, on the desktop, is the application running with a local administrator
account so that it will have enough permission to access this entry in
registry?

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 7 '06 #3
Hi Rich

Thanks for your reply

I uninstalled Word 2003 then reinstalled and now all works fine

Regards
Steve
"Rich" <RM***********@gmail.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
Do you have the latest .net framework/visual studio service packs? Make
sure that you have the same versions.

steve wrote:
>Hi All

I have a VB.net 2005 App which uses MS Word 2003 to do printing and Mail
Merging, by automation

All works fine on my Laptop (XP Pro SP2, Word 2003) but on my desktop (XP
Pro SP2, Word 2003) I get the following message when I try to launch Word
using the code..
Imports Word = Microsoft.Office.Interop.Word

Dim wordapp As Word.Application = New Word.Application --- error

'Retreiving the COM Class Factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error
8007045a'

I have uninstalled and reinstalled the .Net programmability option in
Word
2003 setup.
The required assemblies are in the GAC on both computers
My app references Microsoft Word 11.0 Object Library

Can anybody help

Regards
Steve

Nov 7 '06 #4
Hi Luke

I eventually uninstalled word 2003 then reinstalled and all works now

Thank you for your reply

Regards
Steve
"Luke Zhang [MSFT]" <lu******@online.microsoft.comwrote in message
news:Fe**************@TK2MSFTNGXA01.phx.gbl...
Hello Steve,

As I understand, the VB .NET 2005 application will create a
Word.Application object, and this works on your laptop, but not on your
desktop. Did you have .NET framework 2.0 and Office 2003 completely
installed on the desktop? More specific, if you check the system registry,
can you find following entry?

HKEY_CLASSES_ROOT\CLSID\{000209FF-0000-0000-C000-000000000046}

And, on the desktop, is the application running with a local administrator
account so that it will have enough permission to access this entry in
registry?

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 7 '06 #5
Hello Steve,

Thank you for the update!

Sincerely,

Luke Zhang

Microsoft Online Community Support
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 7 '06 #6

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

Similar topics

12
801
by: Baloff | last post by:
Hello I have this linker error which makes me think that the definition file is not being seen by the linker, this code is taken from "Thinking in C++, 2nd Edition, Volume 1, Annotated Solutions...
15
3352
by: Caversham | last post by:
Is there any macro / other tool - free or commercial - that can split long Word docs into multiple XHTML pages? Any comments on the quality/effectiveness of suitable products also welcomed.
6
4715
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
16
7192
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
2
2720
by: Le | last post by:
I'm developing an Add-In for MS Word 2003 with C# VS 2005, every I attempt to build kicking off the wizard that will add-in registers the .NET class with the COM interop I'm getting an error: ...
15
2063
by: Charles Law | last post by:
In the build output appears ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ========== However, the compiler does not generate any errors, and the Errors list is empty. This is an...
0
3524
by: fischermx | last post by:
Environment: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack...
2
2105
by: subramanian100in | last post by:
Consider the following program: #include <iostream> #include <map> #include <string> #include <utility> #include <algorithm> using namespace std;
11
4986
by: fniles | last post by:
One of our application uses VB6 and Access97 database. Another application uses VB.NET 2005. This morning for about 15 seconds when the application tries to read either a query or a table from the...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7098
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
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.