troubleshooting service errors

Posted on 2009-04-30
Last Modified: 2012-05-06

Is there any way to troubleshoot service errors:
Can one obtain details of an error when a sevice.Execute call returns "Server was unable to process request."?  
Question by:jedibozz
    LVL 10

    Expert Comment

    I'm not exactly sure what you're looking for, but here are two things to try:
    (1) Turn on detailed error reporting:
    (a) In your CRM website (found either under inetpub or ProgramFiles/CRM4/CRMWeb ... names have been abbreviated to protect the busy) edit the web.config file
    (b) search for "Show Developer Errors"
    (c) Change the DevErrors key to "On"
    (d) Save the web.config
    (e) Restart IIS
    (f) See if you get a more detailed error report when your error happens again
    (2) Check the event log on your server:
    (a) Start | Admin Tools | Event Viewer
    (b) You probably want the application event viewer
    Let me know if that gets you what you need.
    LVL 9

    Expert Comment


    Yes there is.

    Wrap your execute command in a try catch statement and instead of catching the exception you catch the soap exception as follows:

                    RetrieveMultipleResponse response = (RetrieveMultipleResponse)crmServ.Execute(request);
                    //Do something here
                catch (System.Web.Services.Protocols.SoapException ex)
                    string errorMessage = ex.Message.ToString();
                    //Handle the error

    There are other properties of the message you can check to ascertain the problem as well.

    LVL 8

    Accepted Solution

    You could get more detailed error info with stacktrace or sometimes with innerException method

    catch (System.Web.Services.Protocols.SoapException ex)
    string stacktrace = ex.StackTrace.ToString();
    string innerexception = ex.innerExceptionToString();

    //probably you could write these two in a log file
    catch (Exception ex)
    string excp = ex.StackTrace.ToString();

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
    On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video discusses moving either the default database or any database to a new volume.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now