TheScarfedOne Posted November 29, 2011 Posted November 29, 2011 Hi Nick Right...so Ive moved onto the new 7.7 build and as per your updates - there is more error handling in there... Now Im seeing "System.ServiceModel.ServiceActivationException" on the AD Browser with WebHost failed to process a request. Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/63835064 Exception: System.ServiceModel.ServiceActivationException: The service '/HAP7/api/setup' cannot be activated due to an exception during compilation. The exception message is: An endpoint reference cycle was detected in your configuration. The following reference cycle must be removed: webHttpEndpoint/, webHttpEndpoint/. (D:\Program Files\HAP7\web.config line 196). ---> System.Configuration.ConfigurationErrorsException: An endpoint reference cycle was detected in your configuration. The following reference cycle must be removed: webHttpEndpoint/, webHttpEndpoint/. (D:\Program Files\HAP7\web.config line 196) 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.Channels.CommunicationObject.Open() at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) --- End of inner exception stack trace --- at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath) Process Name: w3wp Process ID: 91500 In the Application Event Log on the Server and An error occurred in Home Access Plus+ Page: /HAP7/ Message Exception of type 'System.Web.HttpUnhandledException' was thrown. Source System.Web Target site Boolean HandleError(System.Exception) Stack trace at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\hap7\ed6838f0\d336c446\App_Web_pnzfftno.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ToString() System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: The specified string parameter is empty. Parameter name: name at System.DirectoryServices.ActiveDirectory.DirectoryContext..ctor(DirectoryContextType contextType, String name) at HAP.AD.ADUtils.FriendlyDomainToLdapDomain(String friendlyDomainName) at HAP.Web.Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\hap7\ed6838f0\d336c446\App_Web_pnzfftno.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) in HAP's server log Hope this helps track down this bug finally!! 1
nickbro Posted November 29, 2011 Posted November 29, 2011 Check your web.config, follow the instructions in the error message
TheScarfedOne Posted November 29, 2011 Author Posted November 29, 2011 I removed the following... (well commented it out for safety!) Now getting: WebHost failed to process a request. Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/63835064 Exception: System.ServiceModel.ServiceActivationException: The service '/HAP7/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.InvalidOperationException: Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]. 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.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.Channels.CommunicationObject.Open() at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) --- End of inner exception stack trace --- at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath) Process Name: w3wp Process ID: 115916
TheScarfedOne Posted November 29, 2011 Author Posted November 29, 2011 TYPE | HOST NAME | PORT | BINDING INO | http 80 * net.tcp 808:* net.pipe * net.msmq localhost msmq.formatname localhost
nickbro Posted November 29, 2011 Posted November 29, 2011 Ah, you don't have a HTTPS binding. Right, in that case, the web.config section you need is:
cromertech Posted November 29, 2011 Posted November 29, 2011 I think you need to have the https binding in there. It's required for the silverlight browser but even if you use the basic I think it's needed for the setup file.
nickbro Posted November 29, 2011 Posted November 29, 2011 You don't need HTTPS, but it's good practice, and a recommended step.
TheScarfedOne Posted November 29, 2011 Author Posted November 29, 2011 HAP is sitting behind TMG in our setup - which is why its not in use... but, to help with the debugging - I'll put a binding in...
TheScarfedOne Posted November 29, 2011 Author Posted November 29, 2011 OK, thats all working - but we are back to the "10% AD Loading" bar again grrr! Im at a loss An error occurred in Home Access Plus+ Page: Setup API -> FillNode(DirectoryEntry room) System.DirectoryServices.DirectoryServicesCOMException (0x80072020): An operations error occurred. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_Name() at HAP.Web.API.setup.FillNode(DirectoryEntry root) Message: An operations error occurred. Stack Trace: at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_Name() at HAP.Web.API.setup.FillNode(DirectoryEntry root)
nickbro Posted November 29, 2011 Posted November 29, 2011 You need to google the error code there, it may provide some info, as it's def AD related c# - Acitve Directory COM Exception - An operations error occured (0x80072020) - Stack Overflow
TheScarfedOne Posted November 29, 2011 Author Posted November 29, 2011 Bingo...got it. Right - I changed the App Pool to run as the AD Account that I originally set up for HAP. Now it works :-) YAY!
nickbro Posted November 29, 2011 Posted November 29, 2011 Good to hear it's working. How odd it doesn't like the IIS AppPool HAP Account, but there we go
TheScarfedOne Posted November 29, 2011 Author Posted November 29, 2011 Very! It also really didnt like not running https - some weird spurious error popups too "Object not found" for example when creating Rooms/Session on the setup.aspx Booking section. On the booking system note - is there a way of getting the scrollbars to play nicely? We have 4 sessions a day - split into A and B - plus lunch and two breaks. The original one had a horizontal scroll bar - which allowed you to go across the screen within just the booking grid rather than the whole page. And - just because Im awkward...I love the fact that I can now show and hide rooms. Now... can I show them still - but they cant book them...? Thanks for all your hard work Stuart
gianzack Posted December 2, 2011 Posted December 2, 2011 I changed the App Pool to run as the AD Account ... could you please help me to understand ? how did you do? I think it might help with my issue too. thanks
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