This is my first attempt at building a custom .NET (C#) automation. I've tested the functionality from within Visual Studio and it works as intended.
I was able to compile the code into a dll file just fine. I've successfully registered it using regasm and added it to the global cache using gacutil. When I create an automation variable in Navision I can see my object and have no problems. I see the methods I want from within the symbol menu and everything looks great. Everything saves and compiles.
Then I get to CREATE(NavAutomation) and it blows up. Cannot create an instance of GUID ****. I compared the GUID to what I found in Visual Studio for my project and it was the same, just in case I screwed something up there.
I don't understand what's wrong. Usually it will say "Unknown" or something when you look at variables and it can't find the automation. Any ideas? I'll post the code if need be. Thanks.
0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
http://msdn.microsoft.com/en-us/library/aa973247.aspx
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
It's been so long since I did OOP. But at least it works now. My first automation is done, and although simple, it's kind of nice getting to do something a little different.
Thanks for your help.
My Blog - nav.education
Yes, it is new, be prepared to be hooked on it... if you once started to use VS and do something there, it is hard to leave it... :-)
If you know how to make the DLLs, you have new space where you can search for solutions...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.