В общем, пришел на работу, и пытаюсь запустить код который работал еще в пятницу и не могу подлючиться к СРМ.
Полный бред. Пробовал разные варианты
Код:
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);
Подключиться к дискавери сервису могу без проблем
Не понимаю что происходит(