Visual Studio Debugging: "Unable to Attach to Application" Error - Greg Collins
in

InfoPath Dev

This Blog

Syndication

Greg Collins

Visual Studio Debugging: "Unable to Attach to Application" Error

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:

  1. Shut down Visual Studio.
  2. 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>

  1. 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.

  1. 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.

Comments

 

ljagarlamudi@gmail.com said:

Hi Greg

I am trying to debug the managed code in Infopath Form services, I am not able to find the menu item Attach To Process either in Debug or Tools Menu(Using VSTA).Any suggestions?Thanks

July 30, 2008 7:23 AM
Copyright © 2003-2010 Qdabra Software. All rights reserved.
View our Terms of Use.