+ Post New Thread
Results 1 to 15 of 15
Home Access Plus+ Thread, HAP 7.7 AD Setup in Projects:; Hi Nick Right...so Ive moved onto the new 7.7 build and as per your updates - there is more error ...
  1. #1
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,074
    Thank Post
    520
    Thanked 146 Times in 132 Posts
    Blog Entries
    78
    Rep Power
    78

    HAP 7.7 AD Setup

    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.ServiceActivationExceptio n" on the AD Browser with

    WebHost failed to process a request.
    Sender Information: System.ServiceModel.ServiceHostingEnvironment+Host ingManager/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.Looku pEndpoint(ServiceEndpointElement serviceEndpointElement, ContextInformation context, ServiceHostBase host, ServiceDescription description, Boolean omitSettingEndpointAddress)
    at System.ServiceModel.Web.WebServiceHost.AddAutomati cWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind)
    at System.ServiceModel.Web.WebServiceHost.OnOpening()
    at System.ServiceModel.Channels.CommunicationObject.O pen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.O pen()
    at System.ServiceModel.ServiceHostingEnvironment.Host ingManager.ActivateService(String normalizedVirtualPath)
    at System.ServiceModel.ServiceHostingEnvironment.Host ingManager.EnsureServiceAvailable(String normalizedVirtualPath)
    --- End of inner exception stack trace ---
    at System.ServiceModel.ServiceHostingEnvironment.Host ingManager.EnsureServiceAvailable(String normalizedVirtualPath)
    at System.ServiceModel.ServiceHostingEnvironment.Ensu reServiceAvailableFast(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(Http Context 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\Temp orary ASP.NET Files\hap7\ed6838f0\d336c446\App_Web_pnzfftno.0.cs :line 0
    at System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
    at System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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.Directory Context..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.Cal lback(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(Http Context 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\Temp orary ASP.NET Files\hap7\ed6838f0\d336c446\App_Web_pnzfftno.0.cs :line 0
    at System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
    at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)

    in HAP's server log

    Hope this helps track down this bug finally!!

  2. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,351
    Thank Post
    36
    Thanked 465 Times in 397 Posts
    Rep Power
    105
    Check your web.config, follow the instructions in the error message

  3. #3
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,074
    Thank Post
    520
    Thanked 146 Times in 132 Posts
    Blog Entries
    78
    Rep Power
    78
    I removed the following... (well commented it out for safety!)

    <standardEndpoints>
    <webHttpEndpoint>
    <!--
    <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" faultExceptionEnabled="true">
    <security mode="Transport" />
    </standardEndpoint>
    -->
    </webHttpEndpoint>
    </standardEndpoints>


    Now getting:

    WebHost failed to process a request.
    Sender Information: System.ServiceModel.ServiceHostingEnvironment+Host ingManager/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.MakeAbsoluteUr i(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses)
    at System.ServiceModel.Description.ConfigLoader.Confi gureEndpointAddress(ServiceEndpointElement serviceEndpointElement, ServiceHostBase host, ServiceEndpoint endpoint)
    at System.ServiceModel.Web.WebServiceHost.AddAutomati cWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind)
    at System.ServiceModel.Web.WebServiceHost.OnOpening()
    at System.ServiceModel.Channels.CommunicationObject.O pen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.O pen()
    at System.ServiceModel.ServiceHostingEnvironment.Host ingManager.ActivateService(String normalizedVirtualPath)
    at System.ServiceModel.ServiceHostingEnvironment.Host ingManager.EnsureServiceAvailable(String normalizedVirtualPath)
    --- End of inner exception stack trace ---
    at System.ServiceModel.ServiceHostingEnvironment.Host ingManager.EnsureServiceAvailable(String normalizedVirtualPath)
    at System.ServiceModel.ServiceHostingEnvironment.Ensu reServiceAvailableFast(String relativeVirtualPath)
    Process Name: w3wp
    Process ID: 115916

  4. #4
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,351
    Thank Post
    36
    Thanked 465 Times in 397 Posts
    Rep Power
    105
    What bindings do you have in IIS?

  5. #5
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,074
    Thank Post
    520
    Thanked 146 Times in 132 Posts
    Blog Entries
    78
    Rep Power
    78
    TYPE | HOST NAME | PORT | BINDING INO |
    http 80 *
    net.tcp 808:*
    net.pipe *
    net.msmq localhost
    msmq.formatname localhost

  6. #6
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,351
    Thank Post
    36
    Thanked 465 Times in 397 Posts
    Rep Power
    105
    Ah, you don't have a HTTPS binding. Right, in that case, the web.config section you need is:
    HTML Code:
     <system.serviceModel>
            <behaviors>
                <serviceBehaviors>
                    <behavior name="">
                        <serviceDebug includeExceptionDetailInFaults="true"/>
                        <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
                    </behavior>
                </serviceBehaviors>
            </behaviors>
            <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
            <standardEndpoints>
                <webHttpEndpoint>
                    <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" faultExceptionEnabled="true" />
                </webHttpEndpoint>
            </standardEndpoints>
        </system.serviceModel>

  7. #7
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    53
    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.

  8. #8
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,351
    Thank Post
    36
    Thanked 465 Times in 397 Posts
    Rep Power
    105
    You don't need HTTPS, but it's good practice, and a recommended step.

  9. #9
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,074
    Thank Post
    520
    Thanked 146 Times in 132 Posts
    Blog Entries
    78
    Rep Power
    78
    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...

  10. #10
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,074
    Thank Post
    520
    Thanked 146 Times in 132 Posts
    Blog Entries
    78
    Rep Power
    78
    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.DirectoryServicesCOMExcep tion (0x80072020): An operations error occurred.

    at System.DirectoryServices.DirectoryEntry.Bind(Boole an 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(Boole an throwIfFail)
    at System.DirectoryServices.DirectoryEntry.Bind()
    at System.DirectoryServices.DirectoryEntry.get_Name()
    at HAP.Web.API.setup.FillNode(DirectoryEntry root)

  11. #11
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,351
    Thank Post
    36
    Thanked 465 Times in 397 Posts
    Rep Power
    105
    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

  12. #12
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,074
    Thank Post
    520
    Thanked 146 Times in 132 Posts
    Blog Entries
    78
    Rep Power
    78
    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!

  13. #13
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,351
    Thank Post
    36
    Thanked 465 Times in 397 Posts
    Rep Power
    105
    Good to hear it's working. How odd it doesn't like the IIS AppPool HAP Account, but there we go

  14. #14
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,074
    Thank Post
    520
    Thanked 146 Times in 132 Posts
    Blog Entries
    78
    Rep Power
    78
    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

  15. #15

    Join Date
    Nov 2011
    Location
    italy
    Posts
    56
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by TheScarfedOne View Post
    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

SHARE:
+ Post New Thread

Similar Threads

  1. Best Setup for 2 Servers (1 Terminal | 1 AD+DC)
    By BackCat3 in forum Windows Server 2008 R2
    Replies: 0
    Last Post: 15th September 2011, 06:45 PM
  2. [V7] HAP+ Setup
    By nickbro in forum Home Access Plus+
    Replies: 12
    Last Post: 29th August 2011, 04:22 PM
  3. Client setup of W2k3 server AD setup
    By Laphan in forum Windows Server 2000/2003
    Replies: 2
    Last Post: 24th August 2011, 08:39 PM
  4. HAP+ Setup Issue
    By JAB1a in forum Home Access Plus+
    Replies: 15
    Last Post: 13th July 2011, 09:26 AM
  5. Replies: 2
    Last Post: 19th November 2010, 06:40 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •