|
I have a Windows XP, Word 2007 PC. On it I have installed Visual Studio.Net, WinFX CTP (Feb.), VSTO, followed by VSTO CTP.
I actually had this setup working a while back (in May), and at the time created a few VSTO Word add-ins that ran perfectly in Word 2007. But now I cannot run any of the add-ins I created previously on this PC.
When I open one of the .sln files, I get this VS error: "The type initializer for Microsoft.VisualStudio.Tools.Applications.Hosting.VCG threw an exception."
The project does open, but it contains a warning: "Warning: The generated files could not be loaded and have been recreated."
(And there was at one time a project warning regarding WindowsBase.dll but it went away.)
I can build the project with no errors, but when I try to Debug and it runs Word 2007, it is not stopping at my breakpoint for ThisApplication_Startup. And Word starts but it shows an error captioned Office Document Customization is Not Available, with detail: Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications.Contract, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Since getting these errors, I uninstalled Windows Foundation (it made me to this in oder to reinstall WinFX), reinstalled WinFX CTP Feb., repaired VSTO Runtime, uninstalled/reinstalled VSTO entirely, and finally reinstalled the VSTO CTP v3. And I'm back to the same errors.
Please help!
Thanks
Karen |