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
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
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
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.
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
André Arnaud de Cal...
292,865
Super User 2025 Season 1
Martin Dráb
231,723
Most Valuable Professional
nmaenpaa
101,156
Moderator