Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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?

  • 8 months later...
Posted (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 by nLinked
Posted

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...

Posted
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.
  • Thanks 1
  • 4 weeks later...
Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...