Link to home
Start Free TrialLog in
Avatar of Larry Trimble
Larry TrimbleFlag for Canada

asked on

troubleshooting service errors


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."?  
 
Avatar of crm_info
crm_info
Flag of United States of America image

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.
Hi,

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:

             try
            {
                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.

Cheers,
MH
ASKER CERTIFIED SOLUTION
Avatar of Aftab_Khateeb
Aftab_Khateeb
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial