Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sat Apr 14, 2007 5:52 am Post subject: FIX: You get an error message when you attempt to browse your namespace extension from a File Save/Open dialog in Microsoft Word/Excel |
|
|
When you attempt to browse your namespace extension from a File Save/Open dialog in Microsoft Word/Excel, you might get an error message similar to the following :
"The file name, location, or format, "GUID of your namespace extension"is not valid. Type the file name or location on the correct format, such as c:\location\file name"
This error occurs because a different version of the .Net runtime is loaded by Microsoft Word than what your namespace extension was developed for. You can force Word to load a specific version of the .Net runtime by using a app.config file. The app.config should be in the same folder as the Word executable and it should be renamed such that if the executable filename is winword.exe, the config filename should be renamed to winword.exe.config. The config file simply tells the .Net loader which version of the runtime to load. A sample app.config file can be downloaded here.
The different version strings to use for the different .Net runtime versions are as follows :
.Net 1.0 : "v1.0.3705"
.Net 1.1 : "v1.1.4322"
.Net 2.0 : "v2.0.50727"
For example, if your namespace extension is developed in VS 2005 and targets the .Net 2.0 runtime, you will use the version string "v2.0.50727" in the msword.app.config file. |
|