This project is read-only.

Server Error in '/' Application

May 8, 2011 at 3:51 PM

I had tried to make the installation using the documentation if I try to test the urls, I get the following error:

 

Server Error in '/' Application.

Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https].

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.InvalidOperationException: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https].

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[InvalidOperationException: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https].]
   System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) +489
   System.ServiceModel.Description.ConfigLoader.ConfigureEndpointAddress(ServiceEndpointElement serviceEndpointElement, ServiceHostBase host, ServiceEndpoint endpoint) +117
   System.ServiceModel.Description.ConfigLoader.ConfigureEndpoint(StandardEndpointElement standardEndpointElement, ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, ServiceEndpoint& endpoint, Boolean omitSettingEndpointAddress) +927
   System.ServiceModel.Description.ConfigLoader.LookupEndpoint(ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, Boolean omitSettingEndpointAddress) +1997
   System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind) +1102
   System.ServiceModel.Web.WebServiceHost.OnOpening() +309
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +685
   System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +254
   System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +725

[ServiceActivationException: The service '/mpn' cannot be activated due to an exception during compilation.  The exception message is: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https]..]
   System.Runtime.AsyncResult.End(IAsyncResult result) +324
   System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +501
   System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +136



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

May 8, 2011 at 3:54 PM

If I try to load the https://serverFQDN/authentication/help :

 

Server Error in '/' Application.

Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https].

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.InvalidOperationException: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https].

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[InvalidOperationException: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https].]
   System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) +489
   System.ServiceModel.Description.ConfigLoader.ConfigureEndpointAddress(ServiceEndpointElement serviceEndpointElement, ServiceHostBase host, ServiceEndpoint endpoint) +117
   System.ServiceModel.Description.ConfigLoader.ConfigureEndpoint(StandardEndpointElement standardEndpointElement, ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, ServiceEndpoint& endpoint, Boolean omitSettingEndpointAddress) +927
   System.ServiceModel.Description.ConfigLoader.LookupEndpoint(ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, Boolean omitSettingEndpointAddress) +1997
   System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind) +998
   System.ServiceModel.Web.WebServiceHost.OnOpening() +311
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +685
   System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +254
   System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +725

[ServiceActivationException: The service '/authentication' cannot be activated due to an exception during compilation.  The exception message is: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https]..]
   System.Runtime.AsyncResult.End(IAsyncResult result) +890624
   System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +501
   System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +136



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

May 8, 2011 at 4:12 PM

Hi,

That can be caused if you multiple host headers configured in your IIS.

May 8, 2011 at 4:25 PM

Hi,

The only thing I had done is that I created an external certificate for the "lp" site and binded it to it. This is not match the internal name of the server, but this is the only binding for the"lp" site.
Other than this the server is has a default IIS settings ( new virtual machine ).

Any tip how to solve the issue ?

May 8, 2011 at 4:37 PM

In the LI.FrontEnd.Service\Web.config there is a following comment:

        <!--
            Configure the WCF REST service base address via the global.asax.cs file and the default endpoint
            via the attributes on the <standardEndpoint> element below
        -->

Is this may can be the issue ?

May 8, 2011 at 4:39 PM

You can define the external site name in the internal IIS using host headers.

The part from the config file is the WCF settings. We defined the routes in global.asax.

 

May 8, 2011 at 4:55 PM

Hi,

Do I need to bind the external host name to the "Default Web Site" ?

As far as I undestood, the mpn is required for the push notification, this is why the mpn is on the default web site.

According to the documentation, I created the "lp" site and bind only the https certificate ( no http bind to the lp site )

All the following urls give the same error:

Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https].

https://serverexternalFQDN/authentication/help
https://serverexternalFQDN/profile/help
https://serverexternalFQDN/contact/help
https://serverexternalFQDN/search/help
https://serverexternalFQDN/image/help
https://serverexternalFQDN/user/help
https://serverexternalFQDN/calendar/help

https://serverexternalFQDN/conversation/help
https://serverexternalFQDN/mpn/help
https://serverexternalFQDN/cf/help

Changing the certificate binding on the "lp" site to the internal fqdn and using the internal fqdn from the browser doesn't help.

 

"You can define the external site name in the internal IIS using host headers."

At the moment I only use the internal IIS from an internal Internet Explorer client. I connect directly to the IIS server using https. The external cert is binded to the "lp" site.

May 8, 2011 at 4:58 PM

To be honest at the moment I do not undestand what you mean about to define external site name in the internal IIS host headers. You can bind only one certificate to a single 443 tcp port.

May 8, 2011 at 5:12 PM

I think I had found the solution.

I had added  the external name to the http binding, and modified the web.config :

<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>

It seems it did the trick.

May 8, 2011 at 5:30 PM

Good :)

Did you have the new site "also" use port 80 as default web site?

 

 

May 8, 2011 at 5:43 PM

Yes. This is the "lp" site, as in the documentation.


I was able to login one time on the wp7 device, but the chat service has been crashed. After the first crash, I cannot login anymore, at login the chat service crashes. Sent you a pm with the details.

May 19, 2011 at 3:56 PM

Hi,

I have the same problem. How excactly has you fix it?

May 19, 2011 at 3:56 PM

Hi,

I have the same problem. How excactly has you fix it?

May 24, 2011 at 6:20 PM

The problem is - as far as I understood - that the team assumed that everybody will use UAG to access the server ( or a reverse proxy ). Externally this is a https server and translates to internal http requests.

I had added the external FQDN ( the dns name where you would like to access from externally ) to the http binding in IIS. Additionally you need to modify the web.config file on the IIS server by adding the part in red in my post.