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

Announcements

No record found.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans