Dynamic CRM 4.0 SOAP exception -


When I try to develop CRM content, using the code given below:

< Pre> public static CRM service GetCrmService () {// standard CRM setup var authentication token = new CrmAuthenticationToken (); // Using Active Directory Authentication Token Authentication type = 0; Authentication token. Organizations name = "record name"; Var crmService = new CrmService (); CrmService.PreAuthenticate = True; CrmService.UseDefaultCredentials = false; CrmService.CrmAuthenticationTokenValue = AuthenticationToken; CrmService.Credentials = New network credentials ("user name", "password", "domain"); CrmService.Url = "http: // /mscrmservices/2007/CrmServiceWsdl.aspx"; Return service service; } Public Zero Recover Account () {var Account_Cuid = New Good ("088FFC38-8285-4AF5-8E36-84BAD6B 268ED"); Var crmService = GetCrmService (); // return column to set column column = new column set (); Returned column. Properties = New String [] {"Name", "Telephone 1", "CustomPode Code"}; Try {var receive account / CRM service. Retrieve (EntityName.account.ToString (), accountGuid, Back Column) as the account; If (Received Account! = Zero) {Debug.WriteLine (string.Format ("Name: {0}, Telephone: {1}", Receive Receive Account, Name Received, ACCOUNT.telephone1); }} Hold (exception exception) {Debug.WriteLine (exception message); }}

This comes with the exception of:

"Potential SOAP version mismatch: Envelope namespace was unexpected. Hopefully."

Is there a solution to this problem?

Thanks in advance. After spending several hours, I thought the problem was due to the detection of the wrong service.

So in the code above, I used the redirected address:

I use the following address Should:

Cheers.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -