ASN1 encoding with System.Formats.Asn1 / DotNet Enums in general

byronicbyronic Member Posts: 22
Hi everyone,

right now I'm working on an extension, that among other things has to encode data into a predetermined ASN1 structure.
For that task I wanted to use the DotNet assembly System.Formats.Asn1.

I referenced the assembly in the dotnet.al looking like this:
e9eac3aiahdo.png

The assembly is on the server with the service tier (Service/Add-ins folder), and in the repository of the extension, considering the right probing paths.



Now to the problem: When im trying to execute this Code:
kocmov7ku58j.png

I'm getting the following error: Error when calling System.Object.BER...
I tried alot of variations but it seems to have to do that AsnEncodingRules seems to always be null.
It also has no constructor as its just an enum.


Can this somehow be worked around?
Also: If anyone could give me an alternative to DotNet with this would be much appreciated! Options I know of are Azure functions and a web assembly through a control-add-ins


Thank you very much in advance!
Sign In or Register to comment.