Notifications
Announcements
No record found.
I am trying to write a GP AddIn using VS 2010. I have run into a problem when I compile a 4.0 .DLL
Has anyone else been able to use 4.0 libraries in GP 2010?
*This post is locked for comments
I have been successful with compiling using .NET 4.0.
What issues specifically are you having?
Regards,
Aaron
When I copy the 4.0 .dll into the addins folder I get a messge at startup about the assembly being invalid.
Are you copying all the assemblies that you need? If you reference other assemblies in your integration, they need to be copied as well.
What version of Dynamics are you on?
If you change the .NET version back to 2.0 or 3.5, does the startup error go away?
Yes.
I am on GP2010
The message specifically references the Framework version.
John,
I apologize, I mis spoke in my previous post. I checked and I am compiling in .NET 3.5. I think the issue has something to do with the GAC and that the assemblies are trying to be registered using the version that ships with 2.0 and worked throuhgh version 3.5.
Everything has changed with .NET 4.0, including the GAC and the location withing the C:\Windows directory. If you can register the assemblies using the new GAC, then you might be able to overcome the error.
I knew that, and that is the answer I expected. I will give it a try but I don't know if using the GAC is the answer. Sort of defeats the purpose of XCopy Deploy :(
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
mtabor 1