unable to attach to application infopath.exe

A

Alex Irazabal

Hi, folks. Has anyone seen this error when trying to debug frm VS .NET in an infopath project? I have tried to attach (via Debug->Process...) to no avail. I have also made sure that the managed code has full trust under the .dotnetframework services ( Runtime Security Policy -> Machine -> All_code -> Infopath Form Templates). I have also unchecked the "disable jscript debugging" under IE's advanced options.
Anyone run into this bad boy before?
 
A

Andrew Ma [MSFT]

You shouldn't need to manually attach a debugger. In the VS IDE, all you
should need to do is press F5 to get InfoPath to preview the form and attach
a debugger.

Do you have .NET 2.0 installed as well? That causes problems sometimes. You
can get around that by specifying that InfoPath will run using the .NET
Framework 1.1

--
Andrew J. Ma
Software Test Engineer
Microsoft Office InfoPath
http://blogs.msdn.com/ajma
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
 
K

KamenL

Alex Irazabal said:
Andrew, I do have the .NET Framework 2.0 installed. How do I specify which framework to use on Infopath?
[del]

Alex, and everybody who will undoubtedly have this problem:

Create a file named infopath.exe.config with the following contents:

<startup>
<requiredRuntime imageVersion="v1.1.4322" version="v1.1.4322" />
<supportedRuntime version="v1.1.4322" />
</startup>

Store it in the same folder in which InfoPath.exe is located
(typically, c:\Program Files\Office11) and you're done

In effect, with this config file you are specifying that infopath.exe
will run in the context of .NET framework 1.1, and not 2.0 beta

Kamen Lilov
 
A

Alex Irazabal

Thanks

KamenL said:
Alex Irazabal said:
Andrew, I do have the .NET Framework 2.0 installed. How do I specify which framework to use on Infopath?
[del]

Alex, and everybody who will undoubtedly have this problem:

Create a file named infopath.exe.config with the following contents:

<startup>
<requiredRuntime imageVersion="v1.1.4322" version="v1.1.4322" />
<supportedRuntime version="v1.1.4322" />
</startup>

Store it in the same folder in which InfoPath.exe is located
(typically, c:\Program Files\Office11) and you're done

In effect, with this config file you are specifying that infopath.exe
will run in the context of .NET framework 1.1, and not 2.0 beta

Kamen Lilov
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top