I have written a DLL and installed it in the add-on folders on both my server and my client.
When i try to use the DLL in a codeunit it works fine as long as i define the - run on client property to "true". - but then ofcourse i can't use "with events".
When i set the - "run on client" to false i get an "object reference not set to an instance of an object" error when i try to run my codeunit.
Can anyone explain this difference in behavior when running clientside vs. serverside and have any idea what i can do to be able to run my codeunit with the dotnet variable running server side?