web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Encryption in Ax using .net dll in Batch

(0) ShareShare
ReportReport
Posted on by 5

I am trying to encrypt a file in Ax 2012 using .net dll in Batch. I copied all dll into server as well as client folder and reference for the same is also added in AOT. Code is working fine if i execute on Client level but fails when execute on Server tier.Below is the error

Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=0e99375e54769942' or one of its dependencies. The system cannot find the file specified.  

Please help asap.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Ideally you need to put it into GAC on batch server and add reference to it or at least put in in server\[AOS name]\bin folder. Also check if it is 32 or 64 because client and server use different.

  • Douglas Noel Profile Picture
    3,905 on at

    Another possibility could be that the copied dll requires other assemblies which aren't installed on the server (or a diiferent .net version)

    Question: is it working if using a client on the aos machine itself?

    Check with Fuslogw the required bindings.

    Regards Douglas

  • Gaurav Sardana Profile Picture
    5 on at

    It is working on client properly but not working in Batch.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans