Error when laoding word from vb.net 2005

S

steve

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
 
R

Rich

Do you have the latest .net framework/visual studio service packs? Make
sure that you have the same versions.
 
L

Luke Zhang [MSFT]

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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

steve

Hi Luke

I eventually uninstalled word 2003 then reinstalled and all works now

Thank you for your reply

Regards
Steve
 
S

steve

Hi Rich

Thanks for your reply

I uninstalled Word 2003 then reinstalled and now all works fine

Regards
Steve
 
L

Luke Zhang [MSFT]

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.
 

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