web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Generic Error and https is invalid on CRM 2015 Claims Authentication

(0) ShareShare
ReportReport
Posted on by

We are having problems with Claims Based auth with CRM 2015. As soon as we configure it (as per the install guide) we get the Generic Error on the Whats New feed. If we look in the event logs it tells me the following.

Error:
WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/6451435
Exception: System.ServiceModel.ServiceActivationException: The service '/COMPANYNAME/XRMServices/2011/Organization.svc' cannot be activated due to an exception during compilation. The exception message is: The provided URI scheme 'https' is invalid; expected 'http'.

We have checked the IIS bindings for the CRM website but we only have one binding on 443. The certificate is bound to this also. The web addresses are correct in Deployment Manager but we have found that the SOAP developer resources in Settings > Customizations are not available (give the same error in Event Viewer when we try to get to them. We can access them before Claims is setup. Also the Non SOAP service endpoints are still working after Claims is setup.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Fixed it. It seem that an update of CRM to 2015 Update 0.1 and removing the SSL header information from the LB configuration resolved the issue.

  • Varun Singh Profile Picture
    943 on at

    Hi Russel,

    Facing one error while connecting to CRM 2015 claim based (IFD) Mode.

    While doing the below call I am getting the below error.

    RetrieveOrganizationResponse response = (RetrieveOrganizationResponse)client.Execute(request);

    ERROR: An unhandled exception of type 'System.ArgumentException' occurred in System.ServiceModel.dll

    The provided URI scheme 'https' is invalid; expected 'http'.

    Do you have faced same type of issue. Please share your views how to connect to CRM IFD through some custom application I a, using WSDLProxies (AD Claims) SDK sample code to connect it but not working.

    What changes I need to do according my CRM environment in App.Config.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    just in case anybody comes accross this while searching for the error even years later. In MS CRM 2016 8.1.0.359 it is EXTREMELY important that the load balancer Header field is EMPTY - EVEN IF THE LOAD BALANCER IS NOT ENABLED.

    As long as the load balancer field is not empty, the discovery service expects to get requests in http instead of https when claims based authentication has been configured.

    You can either fix this by going to the CRM Deployment Manager -> Right click on "Microsoft Dynamics CRM" -> Properties -> Tab "Web Address" -> Click on "Advanced" -> Clear the field "SSL Header:".

    recycle.png

    If you prefer PowerShell:

    Start PowerShell as Administrator.

    Add the CRM Snaping:

    Add-PSSnapin Microsoft.Crm.PowerShell

    Get the configuration data for "WebAddressSettings":

    $was = Get-CrmSetting WebAddressSettings

    Change the "SslHeader" property:

    $was.SslHeader=""

    Write the configuration back to CRM:

    Set-CrmSetting -Setting $was

    Independent of the way you've chosen, go to IIS and recycle the AppPools of CRM:

    recycle.png

    Go to the CRM discovery service in a browser of you choice:

    https://<crmdomain>/XRMServices/2011/Discovery.svc

    It _SHOULD_ work.

    Also don't forget to check that you don't have multiple bindings on the CRM web site in IIS. But that would generate a different error...

    CU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans