I have been trying to set up Microsoft Dynamics SL Web Services. The Web Service is running on the server. From a client machine using Visual Studio 2015 I am trying to connect to the server database using the login web services. I have tried both the Windows Authentication and Forms Authentication web services and I get the same error message for both:
"An exception of type System.ServiceModel.FaultException occurred in mscorlib.dll but was not handled in user code."
This is my code for the Forms authentication web service (the Windows authentication code was virtually identical):
Dim theLoginWCF AsNew LogInForms.LoginFormsServiceClient("CustomBinding_LoginFormsService")
Dim loginCxt As LogInForms.LoginFormsContext = New LogInForms.LoginFormsContext()
With loginCxt
.CompanyID ="0010"
.Culture = "en-US"
.SLUserName ="**********"
.SLUserPass ="***********"
.RequestedEncoding = LogInForms.Encode.HTML
EndWith
Dim session AsGuid = theLoginWCF.LoginForms(loginCxt)
theLoginWCF.Close()
It crashes on the line "theLoginWCF.LoginForms(loginCxt)"
Anyideas what the problem is?