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

Announcements

News and Announcements icon
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,286 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,907 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans