If you have installed an application that uses .NET Framework 2.0, you might suddenly find that you can no longer debug your managed code InfoPath forms. This can be very frustrating, but is easily fixed with the following steps:
- Shut down Visual Studio.
- Open Notepad and copy the following XML into it:
<configuration> <startup> <requiredRuntime imageVersion="v1.1.4322" version="v1.1.4322" /> <supportedRuntime version="v1.1.4322" /> </startup> </configuration> |
- Save the file to the same folder as the InfoPath application as InfoPath.exe.config.
The default folder is C:\Program Files\Microsoft Office\OFFICE11.
- Launch Visual Studio, open an InfoPath project, and run the debugger.
The file you just created directs InfoPath to run in the context of .NET Framework 1.1 instead of 2.0.
©2005 Greg Collins. All rights reserved. Licensed to Autonomy Systems, LLC for display on InfoPathDev.com.