Hello to all!
Can anyone help me?
Im trying to connect to CRM with following code:
Microsoft.Xrm.Client.CrmConnection connection = CrmConnection.Parse(connectionString); service = new OrganizationService(connection);
My connection string
string connectionString = "Url=<myOrg>; Username=<myLogin>; Password=<MyPass>";
So, problem is - my password has a ';' symbol, so
CrmConnection.Parse
method can't to parse it right and throw an error.
How can I avoid this problem, or how I can connect to CRM with another method?
This method
IOrganizationService _service = null; OrganizationServiceProxy _serviceProxy = null; IServiceConfiguration<IOrganizationService> orgConfigInfo = ServiceConfigurationFactory.CreateConfiguration<IOrganizationService>(new Uri("https://<myOrg>/XRMServices/2011/Organization.svc")); var creds = new ClientCredentials(); creds.Windows.ClientCredential = new System.Net.NetworkCredential(connectionString.Username, connectionString.Password); using (_serviceProxy = new OrganizationServiceProxy(orgConfigInfo, creds)) { return (IOrganizationService)_serviceProxy; }
throw an error: The authentication endpoint Kerberos was not found on the configured Secure Token Service!
*This post is locked for comments