Louise Boulton

Hi everyone,

When I try to create a new VSTO project selecting either Word document or Word template from the Visual Studio installed templates choices, I am unable either to create a new document or to copy an existing document. In both cases I get this error message:

Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))

I'd be grateful for any advice on how to resolve this.

Thanks,

Louise




Re: Visual Studio Tools for Office Cannot create VSTO Word 2003 document or template - error library not registered

Cindy Meister

Hi Louise

Which version of Visual Studio / VSTO are you using Which version(s) of Office are installed on your machine

Have you tried uninstalling then reinstalling VSTO






Re: Visual Studio Tools for Office Cannot create VSTO Word 2003 document or template - error library not registered

Louise Boulton

My VSTO version is 77617-168-7076001-41680 (installed from MSDN discs) and my Office version is Professional SP2. My order of installation was:

Office

Visual Studio

VSTO

Do you think the order of installation is what's causing the problem

Louise






Re: Visual Studio Tools for Office Cannot create VSTO Word 2003 document or template - error library not registered

Cindy Meister

Hi Louise

Yes, the order of installation could be a problem. Especially if the .NET Framework 2.0 wasn't installed on the machine before Office was installed. Then the PIAs wouldn't have been installed to the GAC (because the GAC didn't yet exist).

Try going over Control Panel/Add or Remove programs. Select the Office Pro entry and click "Change". You want to change the components, using the customize interface - that's a "tree view" of the applications and there components. Click on the "+" to open each application you want to work with and activate ".NET programmability support". Then let Setup do its thing :-)






Re: Visual Studio Tools for Office Cannot create VSTO Word 2003 document or template - error library not registered

Louise Boulton

Hi Cindy,

I've uninstalled and re-installed the PIAs for Word and Office Tools, but I still get the same behaviour. Do you have any other suggestions I guess I could re-install VSTO

Thanks,

Louise






Re: Visual Studio Tools for Office Cannot create VSTO Word 2003 document or template - error library not registered

Christin-MSFT

Louise - Were you able to get this working




Re: Visual Studio Tools for Office Cannot create VSTO Word 2003 document or template - error library not registered

Louise Boulton

Hi there,

Yes, I re-installed VSTO and it's now working, which is great.

Thanks,

Louise