Larry Trimble
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."?
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.Ex ecute(requ est);
//Do something here
}
catch (System.Web.Services.Proto cols.SoapE xception 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
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)
//Do something here
}
catch (System.Web.Services.Proto
{
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
(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.