Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Read ConnectionString from App.conig file in Visual Studio Tools for Dynamics GP

(0) ShareShare
ReportReport
Posted on by 18,269

All,

How can I read my Connection String from App.config file in my Visual Studio Tools for Dynamics GP project?

Any sample code is highly appreciable.

Thanks

Sandip

*This post is locked for comments

  • sandipdjadhav Profile Picture
    18,269 on at
    RE: Read ConnectionString from App.conig file in Visual Studio Tools for Dynamics GP

    Andrew,

    Thanks much for your reply. It will be highly appreciate if you can email me project template on my personal email id: sandipdjadhav@hotmail.com

    Waiting for your reply.

    Thanks

    Sandip

  • Suggested answer
    Andrew John Dean Profile Picture
    1,337 on at
    RE: Read ConnectionString from App.conig file in Visual Studio Tools for Dynamics GP

    PS. I forget to mention the template project can read connection information from a config file. It even encrypt s the password when it read/writes from the file.

  • Suggested answer
    Andrew John Dean Profile Picture
    1,337 on at
    RE: Read ConnectionString from App.conig file in Visual Studio Tools for Dynamics GP

    Hi Sandip

    I have a Visual Studio Project template that I use whenever I need to create a new VS Tools GP Addin.

    The template project has the following features

    - Use MVC design pattern (this makes large complex projects easier to code/manage)

    - Enables the developed application work both inside of GP as an Addin DLL, or externally inside a hosted EXE   (This feature is great during the development process as GP does not need to be launched and shut down every time a code change is made)

    - Connects to the database via GPConnNet.dll or via OLEDB

    Email me and I will send you the code and run through how the overall template architecture.

    Regards

    Andrew Dean

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans