17.12.2018, 21:14 | #1 |
Участник
|
Unable Connect to CRM
В общем, пришел на работу, и пытаюсь запустить код который работал еще в пятницу и не могу подлючиться к СРМ.
Полный бред. Пробовал разные варианты Код: static string connectionStringOnline = "AuthType = Office365; Url = https://contoso.crm.dynamics.com/; Username=user@contoso.com; Password=contoso"; ... connection = new CrmServiceClient(connectionStringOnline); Код: IServiceManagement<IOrganizationService> orgServiceManagement = ServiceConfigurationFactory.CreateManagement<IOrganizationService>( new Uri("https://contoso.api.crm.dynamics.com/XRMServices/2011/Organization.svc")); AuthenticationCredentials authCredentials = new AuthenticationCredentials(); authCredentials.ClientCredentials.UserName.UserName = "user@contoso.com"; authCredentials.ClientCredentials.UserName.Password = "contoso"; AuthenticationCredentials tokenCredentials = orgServiceManagement.Authenticate(authCredentials); OrganizationServiceProxy organizationProxy = new OrganizationServiceProxy(orgServiceManagement, tokenCredentials.SecurityTokenResponse); Цитата:
Retrieving details of each organization: Organization Name: Contoso, Inc. Unique Name: org122 Endpoints: Name: WebApplication URL: https://contoso.crm.dynamics.com/ Name: OrganizationService URL: https://contoso.api.crm.dynamics.com...ganization.svc Name: OrganizationDataService URL: https://contoso.api.crm.dynamics.com...zationData.svc End of listing Retrieving details of specific organization: Organization Name: Сontoso, Inc. Unique Name: org122 Endpoints: Name: WebApplication URL: https://contoso.crm.dynamics.com/ Name: OrganizationService URL: https://contoso.api.crm.dynamics.com...ganization.svc Name: OrganizationDataService URL: https://contoso.api.crm.dynamics.com...zationData.svc End of listing Последний раз редактировалось Ion; 17.12.2018 в 21:17. |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|