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)

WCF Using BC.Net - How to get password for LogonAs method on server

(0) ShareShare
ReportReport
Posted on by 2,470

Hi

The Scenario:

A wcf service hosted on the AX server using BC.Net to connect to AX 09 and call static X++ methods.

The Issue:

When I try to connect using "LogonAs", I am using an App Pool user that is the BC.Net user in AX, but I still need to provide the password before I can connect to AX. I am unable to get the password for security reasons\limitations - how would this approach normally work (service connecting to AX using BC.Net) - most of the examples online use null for the parameters and i guess the default login is picked up?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    There are different ways so it might be better you describe your scenario in detail. Do you want to let the wcf service pass through the user? There are a lot of components involved so it is a bit tricky to get the setup working.

  • Verified answer
    DAX09 Profile Picture
    2,470 on at

    The solution we have gone for is:

    1) App Pool with BC.Net username and domain

    2) WCF service will run under this App Pool

    3) .Net code will extract Username & Domain from App Pool and connect to AX12 using the local AX config

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