Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

How to use GPConnNet.dll in ASP.Net

Posted on by 450

I have added a reference to the GPConnNet.DLL in my asp.net web application.  When I try to execute, the error message "The specified module could not be found. (Exception from HRESULT: 0x8007007E)  Exception Details : System.IO.FileNotFoundException.

Please advice whether it is possible to use gpConnNet.dll in asp.net environment.  Thanks.

*This post is locked for comments

  • Suggested answer
    Andrew John Dean Profile Picture
    Andrew John Dean 1,337 on at
    Re: How to use GPConnNet.dll in ASP.Net

    Hi Maggie

    You can use GPConnNet.DLL inside an ASP.NET application but you have to be very careful about which properties of the DLL you use. Otherwise are will get the somewhat cryptic error message you are currently experiencing.

    The GPConnNet.DLL, if embeded into a VSTools addin module can read GP runtime time information i.e. the property "Dynamics.Globals.UserId.Value" can be used to read the current GP user account. This property, and others like it, will be non-functional if the DLL is used outside of GP ( eg in an ASP.NET app) and will give the above mentioned error message.

    Another thing to look out for is check that you have compiled your app in 32 bit mode not 64 bit, as this will also cause problems.

     

    Regards Andrew Dean

    Envisage Software Solutions

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans