web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Visual studio form not opening on WebClient but opening on GP2018

(0) ShareShare
ReportReport
Posted on by

Hi

i have created two visual studio forms for dynamics gp 2018 i have added assembly in addins folder and below is code that i used 

[SupportedDexPlatforms(DexPlatforms.WebClient | DexPlatforms.DesktopClient)]
public class GPAddIn : IDexterityAddIn
{

My code starts here

}

when i debug its hitting my code but my form is not showing in web client any idea what i am missing.

code is executing successfully with no exception. but form.show() does nothing.

Thank you

Shah

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    It dont even open sample projects forms using dynamics rendering. Menu item is added on form when clicking them nothing happens. Any help appreciated.

  • Suggested answer
    Jothi Krishnan N Profile Picture
    1,895 on at

    It's been looong time so I dont remember everything. But all addins need an entry in <addins> section on dynamics.exe.config file on the GP folder. Just do little bit of research on that.

  • Community Member Profile Picture
    on at

    Thank you very much sir for your reply. i have also read that part on blogs but i didn't get this thing in any documentation provided.

  • Jothi Krishnan N Profile Picture
    1,895 on at

    hmm...Im not sure if its mandatory but I remember I tried all these when I initially explored it. If you open the config file in XML Notepad 2007(download it), you can view the comments/sections in the file clearly. There are 2 sections for Dynamics and Dynamicsweb. You may want to try to add under both.  Also did you sign the DLL with a Strong Key and copied into the root / addins folder.  

    Also try copying the DLLs into the root folder. I did many trial and error to make it work.

    I dont recall everything I tried. May be someone else who has working webclient with custom DLL can shed some light.

  • Community Member Profile Picture
    on at

    Actually its hitting dll i use dex.ask() it prompts message but when i use form.show() and form.Activate() it didnt work. code is executing successfully but form dont open. I am stuck

  • Community Member Profile Picture
    on at

    Also want to add one more thing, best part is i am using microsoft sample project to open in gpwebclient. I assume there is not mistake in code that preventing form to open in webclient.

  • Luz Elena Profile Picture
    110 on at

    Hi Shoaib,

    I am having the same issue. Were you able to fix it? 

  • Frikkie Steyn Profile Picture
    15 on at

    Hi

    did you ever fix this. I'm having the same issue.

    I can display message boxes. So the DLL is being called.

    I can actually call a public function in the form and the message will be displayed.

    But I cannot get the form to display

    I'm using GP2020

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    Visual Studio winforms don't work on the web client.

    Neither does VBA Userforms.

    Only Dexterity forms work.

    That will not be changing. 

    I am working on a solution to be added to the Visual Studio Integration Toolkit.

    Regards

    David

  • Frikkie Steyn Profile Picture
    15 on at

    There is a whole section about rendering winforms in the web client in the programmers guide

    pastedimage1630666086197v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans