Thannk you very much for replying
No I haven't change anything in the application.
This is my code :
ClientCredentials Credentials = new ClientCredentials();
Credentials.Windows.ClientCredential = CredentialCache.DefaultNetworkCredentials;
//This URL needs to be updated to match the servername and Organization for the environment.
Uri OrganizationUri = new Uri("dyncrm/.../Organization.svc");
Uri HomeRealmUri = null;
using (OrganizationServiceProxy serviceProxy = new OrganizationServiceProxy(OrganizationUri, HomeRealmUri, Credentials, null))
{
IOrganizationService sales = (IOrganizationService)serviceProxy;
// Instantiate the contact object and populate the attributes.
Entity contact = new Entity("contact");
Entity account = new Entity("account");
contact["firstname"] = txtnom.Text.ToString();
contact["lastname"] = txtprenom.Text.ToString();
contact["nickname"] = txtlogin.Text.ToString();
contact["new_password"] = txtpassword.Text.ToString();
contact["emailaddress1"] = txtemail.Text.ToString();
contact["mobilephone"] = txttelephone.Text.ToString();
contact["new_company"] = new EntityReference("account", GetComapny(DropDownListSociete.SelectedItem.Text));
contact["jobtitle"] = Txtfonction.Text.ToString();
contact["new_addresse"] = txtaddress.Text.ToString();
account["name"] = DropDownListSociete.SelectedItem.Text;
Guid newContactId = sales.Create(contact);
// Guid newaccountId = sales.Create(account);
}
I didn't Get where should I change timeout setting