Home > MSCRM General > Enabling Development Errors – Tip for Developers

Enabling Development Errors – Tip for Developers


By default, Microsoft CRM shows a friendly error message whenever an error/exception occurs. Usually this error does not contain any error log or stack trace. But, developer can enable error details by modifying configuration file typically located at C:\Inetpub\wwwroot\. Here are the steps to enable the development errors in MSCRM.

1.      On the Microsoft CRM Web server, navigate to <web installation path>\ (typically C:\Inetpub\wwwroot\).

2.      Open the Web.config file.

3.      Look for the DevErrors key, and change its value to On.

4.      Save the Web.config file.

Advertisements
  1. Susan
    July 25, 2007 at 5:47 am

    Hello Ayaz,

    I am having a problem in creating a CRM entity using CRM SDk from the backend.
    The code works well if I run it from Visual Studio enviromnment.
    But when I call it from an iframe reference in CRM it gives me the following error.

    Line 40: [return: System.Xml.Serialization.XmlElementAttribute(“Response”, Namespace=”http://schemas.microsoft.com/crm/2006/WebServices”)]
    Line 41: public Response Execute([System.Xml.Serialization.XmlElementAttribute(Namespace=”http://schemas.microsoft.com/crm/2006/WebServices”)] Request Request) {
    Line 42: object[] results = this.Invoke(“Execute”, new object[] {
    Line 43: Request});
    Line 44: return ((Response)(results[0]));

    Source File: C:\Inetpub\wwwroot\VDBCrmApplication\Web References\CrmSdk\Reference.cs Line: 42

    Stack Trace:

    [SoapException: Server was unable to process request.]
    System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1496
    System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +217
    VDBCrmApplication.CrmSdk.CrmService.Execute(Request Request) in C:\Inetpub\wwwroot\VDBCrmApplication\Web References\CrmSdk\Reference.cs:42
    VDBCrmApplication.VDB_EventSession.createtempsession() in c:\inetpub\wwwroot\vdbcrmapplication\vdb_eventsession.aspx.cs:236
    VDBCrmApplication.VDB_EventSession.CreateUpdateTempSession(String TmpSession) in c:\inetpub\wwwroot\vdbcrmapplication\vdb_eventsession.aspx.cs:160
    VDBCrmApplication.VDB_EventSession.DataGrid_Update(Object Source, DataGridCommandEventArgs E) in c:\inetpub\wwwroot\vdbcrmapplication\vdb_eventsession.aspx.cs:143
    System.Web.UI.WebControls.DataGrid.OnUpdateCommand(DataGridCommandEventArgs e) +109
    System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source, EventArgs e) +507
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
    System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source, EventArgs e) +106
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
    System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +121
    System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +115
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
    System.Web.UI.Page.ProcessRequestMain() +1292

    Please help me out.

  2. Al
    March 2, 2010 at 5:27 pm

    copy and past from msdn!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: