HawVer

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1323324&SiteID=1

I'm running into the same problem. I once installed a beta version of 2007. After working with it for a while, I removed it from my system and installed version 2003. Now when I want to make a new VSTO project, the Microsoft Office 11.0 Object Library is pointing to a version 12 dll. I assumed that the problem was in the GAC and I tried to delete the office 12 from it. but not with succes.
"There was an error removing office."

They both have the same public key token.. Is there some way to fix this problem


Re: Visual Studio Tools for Office Outlook 2007 and 2003 problem

Bill Robertson - MSFT

I have seen these kind of issues with the earlier beta of Office2007. The short answer is that it thinks a piece of Office2007 is still installed. Check that all pieces of the beta were removed. You can also use the gacutil tool to try and force it out of the gac.

If that is not working for the roundabout way would be to install the RTM Office 2007 PIA (http://www.microsoft.com/downloads/details.aspx FamilyID=59daebaa-bed4-4282-a28c-b864d8bfa513&DisplayLang=en) which would overwrite the beta PIA piece that are on your machine. Then you can use that same installer to remove all the Office 2007 PIAs. You will probably have to reinstall the Office2003 PIA afterward but you should be in better shape then.

Please let me know if that doesn't fix your issue.

Thanks!

--Bill R





Re: Visual Studio Tools for Office Outlook 2007 and 2003 problem

HawVer

This is the result of the gacutil:

================================================================================

H:\>gacutil /l office

Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4318.0
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

The Global Assembly Cache contains the following assemblies:
office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e942
9c, Custom=null
office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e942
9c, Custom=null

The cache of ngen files contains the following entries:

Number of items = 2

================================================================================

H:\>gacutil /u office

Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4318.0
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.


Assembly: office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9
429c, Custom=null
Unable to uninstall: assembly is required by one or more applications
Pending references:
SCHEME: <WINDOWS_INSTALLER> ID: <MSI> DESCRIPTION : <Windows Ins
taller>

Assembly: office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9
429c, Custom=null
Unable to uninstall: assembly is required by one or more applications
Pending references:
SCHEME: <WINDOWS_INSTALLER> ID: <MSI> DESCRIPTION : <Windows Ins
taller>

Number of items uninstalled = 0
Number of failures = 0


H:\>

I can't run the PIA installer. After gathering some required information the PIA installer closes itself. Check the screen cap I made:

http://www.microsign.nl/tmp/109095d1.avi

From the eventlog:
================================================================================
Type gebeurtenis:    Informatie
Bron van gebeurtenis:    MsiInstaller
Categorie van gebeurtenis:    Geen
Gebeurtenis-ID:    11708
Datum:        14-3-2007
Tijd:        11:22:23
Gebruiker:        MICROSIGNBV\jm
Computer:    WSJM01
Beschrijving:
Product: Microsoft Office 2007 Primary Interop Assemblies -- Installation operation failed.

Zie Help en ondersteuning op http://go.microsoft.com/fwlink/events.asp voor meer informatie.
Gegevens:
0000: 7b 35 30 31 32 30 30 30   {5012000
0008: 30 2d 31 31 30 35 2d 30   0-1105-0
0010: 30 30 30 2d 30 30 30 30   000-0000
0018: 2d 30 30 30 30 30 30 30   -0000000
0020: 46 46 31 43 45 7d 2c 20   FF1CE},
0028: 31 36 30 32               1602   
Product: Microsoft Office 2007 Primary Interop Assemblies -- Installation operation failed.
================================================================================
Thanks for your assistance.




Re: Visual Studio Tools for Office Outlook 2007 and 2003 problem

Bill Robertson - MSFT

Try the gacutil /uf command to try and force the uninstall. Failing that I would uninstall Office and then try to remove the assemblies out of the GAC and then reinstall Office. If that still doesn't work, you may want to repost this over in the Office forums in the context of removing Office2007 beta.

Hope that helps.