By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,589 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

Error when laoding word from vb.net 2005

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.