locked
CRM 2011 OrganizationData.svc "Failed to Execute URL" issue RRS feed

  • Question

  • Hello!

    We are CRM 2011 Service providers and have CRM 2011 installation with claims based authentication.
    When I try to open \XRMServices\2011\OrganizationData.svc  I get exception:

    Exception generated at: 02.08.2011 0:45:32
    Error Type: System.Web.HttpException
    Error Message: Failed to Execute URL.
    Error Stack Trace: System.Web.HttpException (0x80004005): Failed to Execute URL.
       at System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6.BeginExecuteUrl(String url, String method, String childHeaders, Boolean sendHeaders, Boolean addUserIndo, IntPtr token, String name, String authType, Byte[] entity, AsyncCallback cb, Object state)
       at System.Web.HttpResponse.BeginExecuteUrlForEntireResponse(String pathOverride, NameValueCollection requestHeaders, AsyncCallback cb, Object state)
       at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Stack Frame:

     at MainApplication.Application_Error(Object sender, EventArgs eventArguments)
     at EventHandler.Invoke(Object sender, EventArgs e)
     at HttpApplication.RaiseOnError()
     at ApplicationStepManager.ResumeSteps(Exception error)
     at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
     at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
     at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)


    Exception Data:
     1: Key type: System.String, value: ASPIMPERSONATING
     1: Value type: System.String, value:

    IIS Log
    2011-08-01 20:44:11 192.168.113.102 GET /xrmservices/2011/OrganizationData.svc +OnBeginRequest:08/01/2011-20:44:11.840+OnEndRequest:20:44:11.933 443 - 192.168.113.102 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/5.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E) 307 0 0 109
    2011-08-01 20:44:11 192.168.113.102 GET /xrmservices/2011/OrganizationData.svc/ +OnBeginRequest:08/01/2011-20:44:11.933+OnEndRequest:20:44:12.027 443 - 192.168.113.102 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/5.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E) 302 0 0 93
    2011-08-01 20:44:11 192.168.113.102 GET /_common/error/errorhandler.aspx BackUri=&ErrorCode=&Parm0=%0d%0a%0d%0a%d0%a1%d0%b2%d0%b5%d0%b4%d0%b5%d0%bd%d0%b8%d1%8f%20%d0%be%d0%b1%20%d0%be%d1%88%d0%b8%d0%b1%d0%ba%d0%b0%d1%85%3a%20Failed%20to%20Execute%20URL.&RequestUri=%2fxrmservices%2f2011%2fOrganizationData.svc%2f+OnBeginRequest:08/01/2011-20:44:11.949+OnEndRequest:20:44:12.027 443 - 192.168.113.102 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/5.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E) 200 0 0 78

    Organization.svc, Discovery.svc and other CRM pages work without any problems.

    Any thoughts? Thanks!

    Monday, August 1, 2011 9:47 PM

Answers

  • Hello all!

    I reinstalled ADFS server and all works ok. Thanks!

    Regards, Pavel


    Pavel Goncharov
    Thursday, October 6, 2011 5:07 PM

All replies

  • Hi,

    Try accessing it from internet explorer, you can get the exact Url address from: Settings->Customization->Customizations->Developer References->Organization Service


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    Tuesday, August 2, 2011 10:38 AM
  • Hi!

    I try to open OrganizationData.svc service page from IE on CRM server and from a client - same exception.

     

     

     


    Pavel Goncharov
    Tuesday, August 2, 2011 10:57 AM
  • Hi,

    Seems like a problem with the *.svc httphandler in IIS Microsoft DYnamics CRM website, make sure that in IIS the following *.SVC handlers are registered and enabled (IIS->Microsoft Dynamics CRM -> Handler Mappings)

    1. svc-ISAPI-2.0

    2. svc-ISAPI-2.0-64

    3. svc-ISAPI-4.0_32bit

    4. svc-ISAPI-4.0_64bit


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    Tuesday, August 2, 2011 5:21 PM
  • Many thanks for your time

    Enabled *.svc handlers:

    1. svc-ISAPI-2.0
    2. svc-ISAPI-2.0-64
    3. svc-ISAPI-4.0_32bit
    4. svc-ISAPI-4.0_64bit

    +

    5. svc-Integrated
    6. svc-Integrated-4.0

     


    Pavel Goncharov
    Tuesday, August 2, 2011 6:16 PM
  • Was your problem solved?

    Michael

    Friday, September 2, 2011 2:07 AM
  • No. We are trying to solve it together with Microsoft support now.


    Pavel Goncharov
    Friday, September 2, 2011 4:54 AM
  • Check your Claim Rules in your ADFS 2.0.

    Rob

    Sunday, September 4, 2011 8:59 PM
  • I am also facing same problem... what to verify in claim rules?
    Wednesday, September 7, 2011 4:37 PM
  • Hi Abison,

    which scenario do you have? IFD, multiple domain, internal access? First step is to check whether your configuration matches "Microsoft Dynamics CRM 2011 and Claims-based Authentication".

    Rob

    Wednesday, September 7, 2011 7:26 PM
  • I have several servers that has this error.

    One server has the error while connecting thru the Web-based CRM.

    Three servers has the error while connecting thru the Outlook CRM Client.

    I have a snaphost of a server that used to work both for Outlook and Web, I tried to reproduce the problem by repair, install, reinstall these components:

     URL Rerewrite Module, CRM Reporting Authoring Extension, CRM Reporting Extension

    After that this server has the error in Web but not thru Outlook.

    I am thinking this problem is caused by how the above components are installed or the ordering of these components are installed.

     

     

    Tuesday, September 13, 2011 4:04 AM
  • If you are running into an error with Odata and are getting a stack trace from IIS such as described by Pavel- most likely you need to check if you are passing a name claim or not. If no name type claim is present in the claims, the Name property on the Identity for the current HttpContext.User.Identity would be null - a null value causes the exception about executing the URL.

    CRM documentation is being updated to  mandate that a name claim be passed for claim based auth.


    Best regards,

    Ishita Kunwar
    Partner Online Technical Community
    -----------------------------------------------------------------------------------------
    We hope you get value from our new forums platform! Tell us what you think:
    http://social.microsoft.com/Forums/en-US/partnerfdbk/threads
    ------------------------------------------------------------------------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Thursday, October 6, 2011 2:40 PM
  • Hello all!

    I reinstalled ADFS server and all works ok. Thanks!

    Regards, Pavel


    Pavel Goncharov
    Thursday, October 6, 2011 5:07 PM