|
|
|
|
#1 |
|
Участник
|
В трассировке именно то что я в SQL нашел... "System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "queue_entries". The conflict occurred in database "MicrosoftCRM_MSCRM", table "dbo.QueueBase", column 'QueueId'."
|
|
|
|
|
#2 |
|
Участник
|
Заработало..я поменял код создания сервиса
Код: CrmAuthenticationToken token = new CrmAuthenticationToken();
token.OrganizationName = sOrgname;
token.AuthenticationType = 0;
//Create the Service
CrmService crmService = new CrmService();
//crmService.Credentials = System.Net.CredentialCache.DefaultCredentials;
crmService.Credentials = new System.Net.NetworkCredential("administrator", "pass@word1");
crmService.PreAuthenticate = false;
crmService.CrmAuthenticationTokenValue = token;
string crmurl = (string)(Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\MSCRM").GetValue("ServerUrl")) + "/2007/crmservice.asmx";
crmService.Url = crmurl; |
|
|
|
|
Похожие темы
|
||||
| Тема | Ответов | |||
| Новый пользователь из другого домена | 27 | |||
| Как лучше реализовать? Создать новый объект или... | 12 | |||
| Plugin на для обновления задачи (Task) | 14 | |||
| связь через новый объект | 3 | |||
| связь через новый объект | 0 | |||
|