timbo343 Posted February 23, 2012 Posted February 23, 2012 Server Error in '/HAP' Application. -------------------------------------------------------------------------------- The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /hap/api/setup
nickbro Posted February 23, 2012 Posted February 23, 2012 Ok, that isn't good, it come up with something, can you try /api/setup. also try /api/test
timbo343 Posted February 24, 2012 Posted February 24, 2012 Ive got a result that says OK when i browse to http://{servername}\hap/api/test
nickbro Posted February 24, 2012 Posted February 24, 2012 ok, that's odd, what happens when you replace /test with /setup
timbo343 Posted February 24, 2012 Posted February 24, 2012 I keep getting: Server Error in '/HAP' Application. -------------------------------------------------------------------------------- The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /hap/api/setup Tim
timbo343 Posted February 24, 2012 Posted February 24, 2012 Ok.. Ive just tried something and got this at http://{server}/hap/api/setup: Server Error in '/HAP' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: An endpoint reference cycle was detected in your configuration. The following reference cycle must be removed: webHttpEndpoint/, webHttpEndpoint/. Source Error: Line 242: Line 243: Line 244: Line 245: Line 246: Source File: C:\inetpub\wwwroot\HAP\web.config Line: 244 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
timbo343 Posted February 24, 2012 Posted February 24, 2012 I also get: Server Error in '/HAP' Application. -------------------------------------------------------------------------------- Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]. 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 https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]. 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 https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http].] System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) +12230836 System.ServiceModel.Description.ConfigLoader.ConfigureEndpointAddress(ServiceEndpointElement serviceEndpointElement, ServiceHostBase host, ServiceEndpoint endpoint) +54 System.ServiceModel.Description.ConfigLoader.ConfigureEndpoint(StandardEndpointElement standardEndpointElement, ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, ServiceEndpoint& endpoint, Boolean omitSettingEndpointAddress) +487 System.ServiceModel.Description.ConfigLoader.LookupEndpoint(ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, Boolean omitSettingEndpointAddress) +616 System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind) +679 System.ServiceModel.Web.WebServiceHost.OnOpening() +244 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +274 System.ServiceModel.Channels.CommunicationObject.Open() +36 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +184 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +615 [serviceActivationException: The service '/HAP/api/setup' cannot be activated due to an exception during compilation. The exception message is: Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]..] System.Runtime.AsyncResult.End(IAsyncResult result) +679246 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190 System.ServiceModel.Activation.AspNetRouteServiceHttpHandler.EndProcessRequest(IAsyncResult result) +6 System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +96 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
nickbro Posted February 24, 2012 Posted February 24, 2012 Make sure you accessing your HAP site using HTTPS (SSL)
timbo343 Posted February 27, 2012 Posted February 27, 2012 Well the services are working when you access the site in HTTPS. Maybe i got crossed wires Duke5A's way of getting the certificate to work. The server i have got HAP installed on isnt a DC. Does it need to be a DC for the active directory plug in to work?
nickbro Posted February 27, 2012 Posted February 27, 2012 Nope, HAP+ works best, for functionality and security, on a member server
nLinked Posted November 9, 2012 Posted November 9, 2012 (edited) I too am getting a red X on Services Activated. Although I am using a valid wildcard certificate instead (which works for all our other sites). I do have another site running in IIS under Default Sites which required the wildcard cert. If the only fix to this is to use a self-signed one, how can I assign it to the HAP site only? Or is there another fix for the red X? If I go to https://localhost/hap/api/setup, I get: A binding instance has already been associated to listen URI 'https://[server]/hap/api/setup'. If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in AddServiceEndpoint() calls, in a config file, or a combination of AddServiceEndpoint() and config. EDIT: Just fixed it using your own reply to another post: "Remove the http binding from IIS, see if that fixes it" Thanks! Edited November 9, 2012 by nLinked
nickbro Posted November 9, 2012 Posted November 9, 2012 Remove the http binding, leaving the https binding 1
nLinked Posted November 9, 2012 Posted November 9, 2012 All working great now, thanks for all your help. Do you know if there's a way to allow me to still access setup.aspx, but not allow anyone else? I have made the changes to web.config which Setup told me to make when I clicked SAVE, but that then locks me out from setup.aspx. Of course, I don't want anyone else to be able to go to setup.aspx if I do enable it...
nickbro Posted November 10, 2012 Posted November 10, 2012 The change to the web.config file should stop non Domain Admins from getting to the setup page, if you are not a domain admin in that domain it will not like you. 1
nLinked Posted November 12, 2012 Posted November 12, 2012 Thanks it works, my browser cache thinking I was still logged on as another user.
PRicho Posted December 7, 2012 Posted December 7, 2012 Remove the http binding, leaving the https binding This has just resolved my Services Activated issue running on IIS8, Will this render IIS useless for hosting HTTP pages? Cheers
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