Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Web service with certificate requirements only work "Run as Administrator"

(0) ShareShare
ReportReport
Posted on by 30

Hi all

I know this question should maybe be directed somewhere else, but there are some brilliant mind in here and it is related to Dynamics AX 2012 R3 CU13.

We are calling a external web service that require a lot of security settings and a certificate. The certificate is installed on the AOS server in the Local Computer/Personal folder. We have a C# dll handling the service call and handshake things, but for some reason it only works when we start AX "Run as Administrator". We have tested the DLL from a small C# test program and the same goes for this. Only works when Visual Studio is started "Run as Administrator".

This of course is a security issue, but are anybody able to hint me. By the way both my user and the AOS user are local administrators on the AOS server.

Thanks

  • Suggested answer
    RE: Web service with certificate requirements only work "Run as Administrator"

    Thanks but the functionality is running on server.

    I found a solution for my problem which was to grant the AOS-account user permissions to "Manage private keys" (right-click the certificate). Now I can run the functionality without a leveraged client.

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Web service with certificate requirements only work "Run as Administrator"

    I think your issue is that you call it from a client code. Make sure that you have a class with RunOn property = Server that calls dll. 

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans