[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 413
  • Last Modified:

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."?  
 
0
Larry Trimble
Asked:
Larry Trimble
1 Solution
 
crm_infoCommented:
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.
0
 
Biffster007Commented:
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
0
 
Aftab_KhateebCommented:
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();
}
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now