locked
eService Error - Server Error in '/' Application RRS feed

  • Question

  • Hi All

    I have the following error when I click on any link on the left after I have logged in. We're running in an IFD environment. I cannot see the reason for the error.

    Thanks for your help.

     

    Server Error in '/' Application.

    Server was unable to process request.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.Services.Protocols.SoapException: Server was unable to process request.

    Source Error:

    Line 37: 					request.EntityItems = EntityItems.All;
    Line 38: 
    Line 39: 					RetrieveEntityResponse response = (RetrieveEntityResponse)service.Execute(request);
    Line 40: 
    Line 41: 					entityMetadata = response.EntityMetadata;

    Source File: c:\inetpub\wwwroot\Sample Portal\App_Code\eService\MetadataUtility.cs    Line: 39

    Stack Trace:

    [SoapException: Server was unable to process request.]
       System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413081
       System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
       Microsoft.Crm.SdkTypeProxy.Metadata.MetadataService.Execute(MetadataServiceRequest Request) +77
       MetadataUtility.GetEntityMetadata(MetadataService service, String entityName) in c:\inetpub\wwwroot\Sample Portal\App_Code\eService\MetadataUtility.cs:39
       Controls_EntityGrid.gridView_DataBinding(Object sender, EventArgs e) in c:\inetpub\wwwroot\Sample Portal\Controls\EntityGrid.ascx.cs:100
       System.Web.UI.Control.OnDataBinding(EventArgs e) +132
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +68
       Controls_EntityGrid.DataBind() in c:\inetpub\wwwroot\Sample Portal\Controls\EntityGrid.ascx.cs:171
       Controls_ProfileEditor.SetupAccountProfile() in c:\inetpub\wwwroot\Sample Portal\Controls\ProfileEditor.ascx.cs:202
       Controls_ProfileEditor.OnLoad(EventArgs e) in c:\inetpub\wwwroot\Sample Portal\Controls\ProfileEditor.ascx.cs:44
       System.Web.UI.Control.LoadRecursive() +66
       System.Web.UI.Control.LoadRecursive() +191
       System.Web.UI.Control.LoadRecursive() +191
       System.Web.UI.Control.LoadRecursive() +191
       System.Web.UI.Control.LoadRecursive() +191
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016

    Haseet Sanghrajka
    Thursday, September 3, 2009 6:17 PM

Answers

  • Hi,

    the documentation says it needs:

    - Read/Create/Update Cases, Notes and Document Attachments (annotations)
    - Read/Create service activities
    - Read/Send emails
    - Read/Create/Update the custom entities included with this accelerator

    By looking at the code it should also have (see tab customizations):

    - Read Entity
    - Read Attribute
    - Read Relationship
    - Read workflow (not sure at this one)
    - ISV customizations

    • Marked as answer by Teesah Wednesday, September 9, 2009 8:50 AM
    Tuesday, September 8, 2009 11:09 AM

All replies

  • I believed this is an authentication issue in your environment.  If you logon to the CRM server and access the eService accelerator, are you getting the error message?  If not, then it's authentication issue.  I don't believed the eService accelerator is intended for IFD. Please correct me if I am wrong.

    Hope this helps!
    Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Blog: http://liudarren.spaces.live.com
    Saturday, September 5, 2009 1:07 AM
    Moderator
  • Hi darrenliu

    We have the same error if we logon from the CRM server as well, we're also getting the same error if we try if from the IIS management console. If it is a authentication issue, where would you point us to look please?

    Thanks
    Tuesday, September 8, 2009 10:22 AM
  • Hi,

    the accelerator comes with some customizations. Are they all imported? According to the stacktrace, there is an issue at retrieving the metadata for an entity. This could either be an issue at the security roles (user should be able to retrieve metadata) or the metadata is simply not available. I read in the doc, that there is a dedicated user for this. Please check the security roles.

    An authentication error should produce a WebException with http status 401.
    Tuesday, September 8, 2009 10:43 AM
  • Hi

    Thanks for your reply.

    I believe the customisations are imported, we can get to the customer service login page on the sample website. For the metadata access what does the CRM Websuer role need permission to please? There is some information on the security role for the user, I understood if the webuser has too much access, it doesn't work.

    Thanks
    Tuesday, September 8, 2009 11:00 AM
  • Hi,

    the documentation says it needs:

    - Read/Create/Update Cases, Notes and Document Attachments (annotations)
    - Read/Create service activities
    - Read/Send emails
    - Read/Create/Update the custom entities included with this accelerator

    By looking at the code it should also have (see tab customizations):

    - Read Entity
    - Read Attribute
    - Read Relationship
    - Read workflow (not sure at this one)
    - ISV customizations

    • Marked as answer by Teesah Wednesday, September 9, 2009 8:50 AM
    Tuesday, September 8, 2009 11:09 AM
  • Thanks, ckeller

    Your post pointed me in the right direction, it's a combination of the XML config on eService setup and the rights the Webuser has. I had to give the user much more than the documentation says, follow the CRS role (you can leave out the obvious options on the Sales areas), I think the issues are around the system level events that cannot occur unless the rights are correct.
    Wednesday, September 9, 2009 8:48 AM
  • darrenlie

    eService can work in an IFD environment.

    Wednesday, September 9, 2009 8:57 AM