Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know exactly how you feel. I have run into the same scenario myself several times where everything works fine in my environment but I get an error once deployed to a remote server.</p> <p>What you need to do is download the <a href="http://www.microsoft.com/en-us/download/details.aspx?id=475" rel="nofollow">Visual Studio 2010 Remote Debugger.</a> </p> <p>Install it on the remote server which is running Dynamics GP. </p> <p>Rebuild your solution and then copy the .dll and pdb to the remote server AddIns folder. Be sure not to rebuild your solution again or make any changes. We want the dll and pdb deployed to the server to exactly match the build you have in your local development environment.</p> <p>Now run the remote debugging tool as administrator. You will also probably want to change the mode to no authentication so you can easily attach to it. Go ahead and start Dynamics GP and log in.</p> <p>Once the remote debugging tool is running on the remote server, go back to your local machine and in Visual Studio choose Debug -> Attach to Process. Type in the server name of your remote server. Choose the process which Dynamics GP is running under, usually Dynamics.exe to attach. Set a break point and then perform the action in Dynamics GP which causes your plug-in to fire.</p> <p>If your breakpoint won't be hit, you can check the Modules windows in Visual Studio to see exactly which dlls and debugging info have been loaded into memory.</p> <p>I also use this a lot to remote debug WCF services and CRM Plug-Ins. It is a very useful tool to have in your tool box.</p> <p>One other note: I would recommend wrapping all of the code in your VST in a try catch that displays the detailed error message in a message box in GP. If your VST throws an error, many time GP will not indicate that it has a problem and won't display any error information.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload