jrink Posted August 12, 2013 Posted August 12, 2013 So 9.0 seemed to work fine. I just stopped all IIS Services and upgraded to 9.4 by copying the contents of the .zip file to my HAP directory (wwwroot/HAP). Now, whenever I logon to the HAP site (both with IE10 and Mozilla 23) I get constant popups titled Message from Webpage saying "Internal Server Error". What broke?
nickbro Posted August 12, 2013 Posted August 12, 2013 On the server have a look at the application event log, see what's getting logged there
jrink Posted August 12, 2013 Author Posted August 12, 2013 I'm getting a lot of these errors SINCE the 9.0 to 9.4 upgrade. EventID 3, Source is System.ServiceModel 4.0.0.0 WebHost failed to process a request. Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/15343725 Exception: System.ServiceModel.ServiceActivationException: The service '/HAP/api/livetiles' 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.InvalidOperationException: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https]. at System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) at System.ServiceModel.Description.ConfigLoader.ConfigureEndpointAddress(ServiceEndpointElement serviceEndpointElement, ServiceHostBase host, ServiceEndpoint endpoint) at System.ServiceModel.Description.ConfigLoader.ConfigureEndpoint(StandardEndpointElement standardEndpointElement, ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, ServiceEndpoint& endpoint, Boolean omitSettingEndpointAddress) at System.ServiceModel.Description.ConfigLoader.LookupEndpoint(ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, Boolean omitSettingEndpointAddress) at System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind) at System.ServiceModel.Web.WebServiceHost.OnOpening() at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) --- End of inner exception stack trace --- at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) Process Name: w3wp Process ID: 2940 Also getting a few of these: Event ID 1309, Source ASP.NET 4.0.30319.0 Event code: 3005 Event message: An unhandled exception has occurred. Event time: 8/12/2013 10:41:00 AM Event time (UTC): 8/12/2013 3:41:00 PM Event ID: 9f36b7e3bdcd4020abfb1c9f250f3acd Event sequence: 39 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/HAP-1-130207956400228974 Trust level: Full Application Virtual Path: /HAP Application Path: C:\inetpub\wwwroot\HAP\ Machine name: HAP Process information: Process ID: 2940 Process name: w3wp.exe Account name: IIS APPPOOL\HAP Exception information: Exception type: InvalidOperationException Exception message: Could not find a base address that matches scheme http for the endpoint with binding WebHttpBinding. Registered base address schemes are [https]. at System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) at System.ServiceModel.Description.ConfigLoader.ConfigureEndpointAddress(ServiceEndpointElement serviceEndpointElement, ServiceHostBase host, ServiceEndpoint endpoint) at System.ServiceModel.Description.ConfigLoader.ConfigureEndpoint(StandardEndpointElement standardEndpointElement, ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, ServiceEndpoint& endpoint, Boolean omitSettingEndpointAddress) at System.ServiceModel.Description.ConfigLoader.LookupEndpoint(ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, Boolean omitSettingEndpointAddress) at System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind) at System.ServiceModel.Web.WebServiceHost.OnOpening() at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) Request information: Request URL: https://i removed this info from the post:443/HAP/api/livetiles/me?1376322060566 Request path: /HAP/api/livetiles/me User host address: 172.16.x.x(i removed this info from the post) User: (i removed this info from the post) Is authenticated: True Authentication Type: Forms Thread account name: IIS APPPOOL\HAP Thread information: Thread ID: 12 Thread account name: IIS APPPOOL\HAP Is impersonating: False Stack trace: at System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) at System.ServiceModel.Description.ConfigLoader.ConfigureEndpointAddress(ServiceEndpointElement serviceEndpointElement, ServiceHostBase host, ServiceEndpoint endpoint) at System.ServiceModel.Description.ConfigLoader.ConfigureEndpoint(StandardEndpointElement standardEndpointElement, ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, ServiceEndpoint& endpoint, Boolean omitSettingEndpointAddress) at System.ServiceModel.Description.ConfigLoader.LookupEndpoint(ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, Boolean omitSettingEndpointAddress) at System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind) at System.ServiceModel.Web.WebServiceHost.OnOpening() at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) Custom event details:
jrink Posted August 12, 2013 Author Posted August 12, 2013 yes. only https is bound to the default website (which has HAP). i'm rebooting the server now, just in case it needed it after the 9.4 upgrade.
nickbro Posted August 12, 2013 Posted August 12, 2013 Ok, add the HTTP binding back, it looks like it needs the http binding again now
jrink Posted August 12, 2013 Author Posted August 12, 2013 I lost remote access after the reboot, so I cannot make the change to add port 80 binding to the site at this time. I will update this thread once I have access to the server again.
jrink Posted August 15, 2013 Author Posted August 15, 2013 Enabling HTTP back on the site got rid of the error, thanks. Is there an easy way for me to have HTTP binding enabled but still NOT allow it for the HAP site? I don't want users connecting over HTTP with AD logins.
nickbro Posted August 15, 2013 Posted August 15, 2013 See Automatically Redirect HTTP requests to HTTPS using URL Rewrite 2.0 | JPPinto.com - Tech Blog
broadld Posted August 29, 2013 Posted August 29, 2013 Hi there, We have come across this problem. We have require SSL set in IIS and the internal server error keeps on coming up. What is http required for? Im sure it worked fine in version 9 but version 9.4 it doesn't. Even with require SSL in IIS turned off the site still needs a binding for http. Is there anyway we can get around this? We need required SSL to be switched on as the site we have used for this requires SSL. Thanks David
nickbro Posted August 29, 2013 Posted August 29, 2013 v9.4 removed the need for HAP+ to run solely as HTTPS, although it is strongly recommended you do. The way around it is to use the section of web.config file from the v9.0 release 1
ragbuster Posted September 18, 2013 Posted September 18, 2013 I had the same issue. I added the binding 80 to the RM website but it still would not work so I have resorted to copying the section from the web.config file, is this ok. Why was http access support added when it is recommended that https is always used? 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now