Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46681

Business connector InvalidLogonInSingleSessionException

$
0
0

Hello,

I am working on an integration project (AX and third party shipping software).

This shipping software has an API based on the WCF service.

For some reasons (nested classes and etc.) I developed ‘wrapper’ library in C# and deployed it to AX.

This works good both on the AOS and client, however there is one issue:

To avoid a hard-code, I decided to create a parameters table in AX and get some values from there through Business connector. This approach did not work and I was getting “InvalidLogonInSingleSessionException” every time. Nevertheless the same code works perfectly in a separate application (for instance console app). My understanding is that it is because my assembly is loading by AOS or AX client, and should be another way to access the AX tables. Unfortunately, I did not find the answer anywhere, even in Microsoft.Dynamics.BusinessConnectorNet library itself.

Then I used to add the AX table directly to my library project, but it works only on the client. In any case, I personally dislike this solution.

So the question is: how to log in and access the data in AX from .NET library that has already been loaded by AOS?

I am newbie in AX and in development in general, so I really want to know what I did wrong.

Any help will be appreciated.

Thanks


Viewing all articles
Browse latest Browse all 46681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>