first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Word 2003 Problem: Word Loads VSTO Projects with Latest .NET Runtime by Default for Debugging; Visual Studio Tools for Office 2003

Ken Laws of Microsoft writes the following: "Once Visual Studio 2005 is installed you may encounter problems debugging your VSTO 2003 project from within Visual Studio 2003. This is again a result of Microsoft Office loading the project in the 2.0 Framework. A couple of options that you have for debugging would be to convert the project to a VSTO 2005 project and you could then debug using Visual Studio 2005 or you could also implement an app config file to force Microsoft Office to load the project in the 1.1. Framework."

This is the format of the configuration file:

<configuration>
<startup>
    <supportedRuntime version="v1.1.4322"/> 
</startup>
</configuration>

This fragment should be saved in an XML file saved at this path:

%Program Files%\\Microsoft Office\\OFFICE11\\WINWORD.EXE.CONFIG

For more details, see "Targeting a .NET Framework Version" at:

http://msdn.microsoft.com/library/
    en-us/cpguide/html/cpcontargetingnetframeworkversion.asp
mod date: 2006-01-25T18:59:07.000Z