I am trying to connect to an AX-based web service through ASP.Net and C# but, when I publish my application, querying the web service results in "System.ServiceModel.FaultException: You cannot log on to Microsoft Dynamics AX." However, when I connect to the same web service through a C# console application, the querying works fine. I have copied the code from the console application into the ASP.Net application so that I have ensured that I have done nothing different.
I cannot figure out what the problem could be. I'm sure it's simple but I am at a loss. Any help?