Debugging Infopath WebForms with Visual Studio 2008 - InfoPath Dev
in

InfoPath Dev

Debugging Infopath WebForms with Visual Studio 2008

Last post 09-02-2010 11:10 PM by Patrick Halstead. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-04-2008 12:52 AM

    • zartr
    • Not Ranked
    • Joined on 11-04-2008
    • Posts 15

    Debugging Infopath WebForms with Visual Studio 2008

    hello everyone,

    has anyone ever managed to do that?

    The problem is, I have both Visual Studio 2005 and Visual Studio 2008 installed. Infopath always launches VSTA (Visual Studio 2005) for Code editing tasks. That's probably why I always end up without any debugging information in my manifest.xsf (there should be some kind of reference to the .pdb file I believe). Anyway.. I can't go with Visual Studio 2005 because I don't have the "Attach to Process..." menu item - which is probably because I don't have a proper Visual Studio installation, just the very basic one that comes with SQL Server.

    What's my best option here? Install a proper VS 2005 version? Or get completely rid of it and force infopath to use Visual Studio 2008 instead? (I'd prefer the later choice but I'm not sure if it's that easy to accomplish) Any insight?

    tia

    edit: Out of curiosity I tried uninstalling VS 2005... and miserably failed. It's not listed in the installed applications view anymore.. but that doesn't Infopath stop from still opening it without the tiniest complaint :-/

    edit 2: Creating an Infopath Form Template within Visual Studio 2008 directly doesn't solve my problem either. I can attach but I never hit my breakpoints. Although this time the .xsn contains a properly formed manifest file and the .pdb file. What am I doing wrong here :? Design, Build, Publish to share, Upload to Forms Library, Activate to SiteCollection and use it.
    I attach VS to all w3wp.exe processes and the breakpoints aren't filled, just outlined :-/

  • 09-02-2010 02:21 AM In reply to

    • Disha
    • Not Ranked
    • Joined on 09-02-2010
    • Posts 2

    Re: Debugging Infopath WebForms with Visual Studio 2008

    Hi,

     I am facing the same problem. Did you manage to solve it ?  

    Thanks in advance .

     

     

     

  • 09-02-2010 11:10 PM In reply to

    Re: Debugging Infopath WebForms with Visual Studio 2008

    This is very difficult. You have to get symbols for the InfoPath Form Services and attach your debugger to the server process. Due to the difficulty, we have stopped doing this internally. In general, the best practice is not to write code in the form, but rather put the code in a Web service that can be more easily debugged. Sorry for the disappointing reply. I wish we had a better answer for you but sadly we don't.

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.