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)

AX2009 Login error with AIF/Web Service

(0) ShareShare
ReportReport
Posted on by 4,079

I have set up a new AIF/Web service in AX2009, On the ISS i have set it to use Windows Authentication.

But when i try to call the service from C#, I get this error in C#

System.ServiceModel.FaultException
HResult=0x80131501
Message=You cannot log on to Microsoft Dynamics AX.. Error details: Connection with the Application Object Server could not be established.. Check the Web server event viewer for more information, or contact your Administrator.
Source=mscorlib
StackTrace:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at SuperOfficeService.ServiceReference1.QRCode.getVersion(getVersionRequest request)
at SuperOfficeService.ServiceReference1.QRCodeClient.SuperOfficeService.ServiceReference1.QRCode.getVersion(getVersionRequest request) in C:\Temp\TFS\SuperOfficeService\SuperOfficeService\Service References\ServiceReference1\Reference.cs:line 435
at SuperOfficeService.ServiceReference1.QRCodeClient.getVersion() in C:\Temp\TFS\SuperOfficeService\SuperOfficeService\Service References\ServiceReference1\Reference.cs:line 440
at SuperOfficeService.Program.Main(String[] args) in C:\Temp\TFS\SuperOfficeService\SuperOfficeService\Program.cs:line 31

This is the code i use in C# (The ClientCredentials are commented out, but with them i get the same error)

static void Main(string[] args)
{
    QRCodeClient proxy = new QRCodeClient();

    //proxy.ClientCredentials.Windows.ClientCredential.UserName = "*******";
    //proxy.ClientCredentials.Windows.ClientCredential.Password = "*******";
    //proxy.ClientCredentials.Windows.ClientCredential.Domain = "*******";

    var retVal = proxy.getVersion();


    Console.WriteLine("\nPress a key to continue!");
    Console.ReadKey();
}


My AOS, and ISS Application Pool are running with the same user, that is the one i login with (Test Environment)

Can anyone help me?

*This post is locked for comments

I have the same question (0)

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
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans