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)

Report
All responses (
Answers (