web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How can I fix "The operation has timed out." error

(0) ShareShare
ReportReport
Posted on by


I am creating a web application using c#(visual studio 2012) which can capture contact information , then update them into contat form in CRM 2013.
About a week ago it worked perfectly , I tried to run my application tjis morning I got the error "The operation has timed out"

Could you please help me to fix this error??

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    It seems there is some logic which is taking more time to execute, is there any changes done in your environment ??

    Assuming you are using onpremise, you can try to change timeout setting, please refer: blogs.msdn.com/.../microsoft-dynamics-crm-timeout-settings.aspx

    Thanks

  • Community Member Profile Picture
    on at

    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

  • Mahendar Pal Profile Picture
    45,095 on at

    Can you put your code under try and catch block and capture Fault exception, it can some pointer related to this issue,

    msdn.microsoft.com/.../gg327884.aspx

    Please see the blog, you can do setting in registry and webconfig file.

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans