Hi all,
Whever CRM return error, is there any way to either hide the custom error page?
Example: acess to http://crm/Handlers/webresource.ashx?id=2345
it return page with custom error like:
<exception>Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.ArgumentOutOfRangeException: Expected 'UniqueId'
data type for 'id' parameter in 'Request.QueryString'. The raw request was 'GET /CRMORG/Handlers/webresource.ashx?id=2345' called from .Detail: < OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220970</ErrorCode> <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic"> <KeyValuePairOfstringanyType> <d2p1:key>CallStack</d2p1:key>
<d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string"> at Microsoft.Crm.ParameterFilterBase.ValidateParameter(IWebParameter parameter, String key, String value, ParameterSources source) at Microsoft.Crm.ParameterFilterBase.TryValidateParameter(ArrayList
parameterCollection, String key, String value, ParameterSources source) at Microsoft.Crm.ParameterFilterBase.ValidateParameter(HttpRequest request, ArrayList parameterCollection, String key, String value, ParameterSources source) at
Microsoft.Crm.ParameterFilterBase.ValidateParametersInternal(Object resource, HttpRequest request, PageParameters parameters) at Microsoft.Crm.ParameterFilterBase.ValidateParameters(IHttpHandler handler, HttpRequest request, Guid orgId, Guid currentFormId)
at Microsoft.Crm.Application.ParameterFilter.ValidateParameters(IHttpHandler handler, HttpRequest request) at Microsoft.Crm.Application.AppHttpHandler.ValidateParameters(HttpContext context) at Microsoft.Crm.Application.AppHttpHandler.ProcessRequest(HttpContext
context) at
Turn off Dev Error doesn't help much.
Configure Error Pages on IIS cause the whole server down.
Any other way to achieve this? Thanks...
</exception>