+ Post New Thread
Results 1 to 15 of 15
Home Access Plus+ Thread, HAP+ & ServiceActivationException in Projects:; Hi all, This thread is intended on finding a correct resolution for the ServiceActivationException issue some of you are having. ...
  1. #1
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,471
    Thank Post
    37
    Thanked 483 Times in 415 Posts
    Rep Power
    109

    HAP+ & ServiceActivationException

    Hi all,

    This thread is intended on finding a correct resolution for the ServiceActivationException issue some of you are having.

    Questions to help me debug the issue:

    1. Which version of IIS are you running?
    2. How many websites are you running in IIS?
    3. What bindings are there currently on your HAP+ Website, need a screenshot like this:
      Attachment 11985
    4. Have you set HAP+ to use HTTPS? need a screenshot like this:
      Attachment 11986
    5. What are your current SSL settings?:
      Attachment 11987
    6. In the browser on the server, navigate to your HAP+'s website, and add /api/setup/help, tell me what it says. Needs to be on the server in IIS7 for full debug info

  2. Thanks to nickbro from:

    Iamthelaw (9th November 2011)

  3. #2

    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    127
    Thank Post
    27
    Thanked 15 Times in 14 Posts
    Rep Power
    14
    Questions to help me debug the issue:
    1.Which version of IIS are you running?

    Answer= IIS6

    2.How many websites are you running in IIS?

    Answer= 3(4) Eclipse, moodle and HAP 6.5 and HAP 7.6

    3.What bindings are there currently on your HAP+ Website, need a screenshot like this:

    Answer= Do you mean this screen shot?

    HAP+ & ServiceActivationException-bind.jpg

    4.Have you set HAP+ to use HTTPS? need a screenshot like this:

    Answer= See screen shot

    HAP+ & ServiceActivationException-cert.jpg

    5.What are your current SSL settings?:

    Answer= Its set to ignore like your example, see screen shot

    HAP+ & ServiceActivationException-ignore-client-cert.jpg

    6.In the browser on the server, navigate to your HAP+'s website, and add /api/setup/help, tell me what it says. Needs to be on the server in IIS7 for full debug info

    Answer=

    Code:
    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 189:			<webHttpEndpoint>
    Line 190:				<clear />
    Line 191:				<standardEndpoint name="" helpEnabled="true" faultExceptionEnabled="true" automaticFormatSelectionEnabled="true"/>
    Line 192:			</webHttpEndpoint>
    Line 193:		</standardEndpoints>
     
    
    Source File: c:\inetpub\wwwroot\hap\web.config    Line: 191 
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
    Hope this helps.

    Craig

  4. #3
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,471
    Thank Post
    37
    Thanked 483 Times in 415 Posts
    Rep Power
    109
    Can you try HAP+ without the require SSL option?

  5. #4
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,471
    Thank Post
    37
    Thanked 483 Times in 415 Posts
    Rep Power
    109
    Can you also try replacing the system.servicemodel with this one:

    HTML Code:
    <system.serviceModel>
       <behaviors>
        <serviceBehaviors>
         <behavior name="">
          <serviceMetadata httpGetEnabled="false" httpsGetEnabled="true" />
         </behavior>
        </serviceBehaviors>
       </behaviors>
       <bindings>
        <webHttpBinding>
         <binding>
          <security mode="Transport" />
         </binding>
        </webHttpBinding>
       </bindings>
       <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
       <standardEndpoints>
        <webHttpEndpoint>
         <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" faultExceptionEnabled="true">
          <security mode="Transport"/>
         </standardEndpoint>
        </webHttpEndpoint>
       </standardEndpoints>
    </system.serviceModel>

  6. #5

    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    127
    Thank Post
    27
    Thanked 15 Times in 14 Posts
    Rep Power
    14
    Thank you for such a quick response, amazing support.

    The first option of running it without the 'require SSL' option did nothing.

    The second option of changing the service model stopped the error message being displayed and allowed me to save my config but it still want search and retrieve my AD settings. When I go to select my students group I get nothing. This was tested using my admin machine on Win 7 and IE9.

    In other news at the site /api/setup/help

    I get this

    Code:
    Operations at https://my school/hap/api/setup
    
    This page describes the service operations at this endpoint.
    
    Uri Method Description 
    Uri Method Description 
    /AddFilter POST  Service at https://my school/hap/api/setup/AddFilter 
    /AddLesson POST  Service at https://my school/hap/api/setup/AddLesson 
    /AddLink POST  Service at https://my school/hap/api/setup/AddLink 
    /AddLinkGroup POST  Service at https://my school/hap/api/setup/AddLinkGroup 
    /AddMapping POST  Service at https://my school/hap/api/setup/AddMapping 
    /AddQServer POST  Service at https://my school/hap/api/setup/AddQServer 
    /AddResource POST  Service at https://my school/hap/api/setup/AddResource 
    /AddSubject POST  Service at https://my school/hap/api/setup/AddSubject 
    /EditLesson POST  Service at https://my school/hap/api/setup/EditLesson 
    /GetADTree POST  Service at https://my school/hap/api/setup/GetADTree 
    /RemoveFilter POST  Service at https://my school/hap/api/setup/RemoveFilter 
    /RemoveLesson POST  Service at https://my school/hap/api/setup/RemoveLesson 
    /RemoveLink POST  Service at https://my school/hap/api/setup/RemoveLink 
    /RemoveLinkGroup POST  Service at https://My School/hap/api/setup/RemoveLinkGroup 
    /RemoveMapping POST  Service at https://My School/hap/api/setup/RemoveMapping 
    /RemoveQServer POST  Service at https://My School/hap/api/setup/RemoveQServer 
    /RemoveResource POST  Service at https://My School/hap/api/setup/RemoveResource 
    /RemoveSubject POST  Service at https://My School/hap/api/setup/RemoveSubject 
    /UpdateFilter POST  Service at https://My School/hap/api/setup/UpdateFilter 
    /UpdateLink POST  Service at https://My School/hap/api/setup/UpdateLink 
    /UpdateLinkGroup POST  Service at https://My School/hap/api/setup/UpdateLinkGroup 
    /UpdateLinkGroupOrder POST  Service at https://My School/hap/api/setup/UpdateLinkGroupOrder 
    /UpdateLinkOrder POST  Service at https://My School/hap/api/setup/UpdateLinkOrder 
    /UpdateMapping POST  Service at https://My School/hap/api/setup/UpdateMapping 
    /UpdateQServer POST  Service at https://My School/hap/api/setup/UpdateQServer 
    /UpdateResource POST  Service at https://My School/hap/api/setup/UpdateResource 
    /UpdateSubject POST  Service at https://My School/hap/api/setup/UpdateSubject 
    /UpdateTab POST  Service at https://My School/hap/api/setup/UpdateTab 
    /UpdateTabOrder POST  Service at https://My School/hap/api/setup/UpdateTabOrder
    edit- ps I have no test or confirm or any other button next to my AD details on the setup page.
    Last edited by Wils86; 8th November 2011 at 11:07 AM. Reason: update

  7. #6

    Join Date
    Nov 2011
    Location
    Somerset
    Posts
    66
    Thank Post
    2
    Thanked 5 Times in 5 Posts
    Rep Power
    6
    Nick I have tried the replacement servicemodel stuff on our server and it looks good.
    I tried going to /hap/api/setup/help and now receive a page instead of endpoint not found.
    Also when entering AD password in the setup page I no longer get the ServiceActivationException error I had before.

    Will this fix any other issues?

  8. #7

    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    127
    Thank Post
    27
    Thanked 15 Times in 14 Posts
    Rep Power
    14
    RagBuster does your AD map and allow you to select the groups further down the page as mine doesnt. I do get the all clear else where like you.

  9. #8

    Join Date
    Nov 2011
    Location
    Somerset
    Posts
    66
    Thank Post
    2
    Thanked 5 Times in 5 Posts
    Rep Power
    6
    Quote Originally Posted by Wils86 View Post
    RagBuster does your AD map and allow you to select the groups further down the page as mine doesnt. I do get the all clear else where like you.
    Seems to be working fine for me. I have tried a few boxes selecting different AD groups and looks good.

  10. #9

    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    127
    Thank Post
    27
    Thanked 15 Times in 14 Posts
    Rep Power
    14
    this is not fair! I better have a play then and see why AD isnt playing nice. Cheers

  11. #10
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,471
    Thank Post
    37
    Thanked 483 Times in 415 Posts
    Rep Power
    109
    Quote Originally Posted by ragbuster View Post
    Nick I have tried the replacement servicemodel stuff on our server and it looks good.
    I tried going to /hap/api/setup/help and now receive a page instead of endpoint not found.
    Also when entering AD password in the setup page I no longer get the ServiceActivationException error I had before.

    Will this fix any other issues?
    It may fix some issues with the booking system and help desk, and the future my files page (/myfiles/)

  12. #11
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,471
    Thank Post
    37
    Thanked 483 Times in 415 Posts
    Rep Power
    109
    Quote Originally Posted by ragbuster View Post
    Seems to be working fine for me. I have tried a few boxes selecting different AD groups and looks good.
    The AD Tree should load if the AD Core stuff is entered, i.e. the username, password and domain UPN.

    If it still isn't working, I may need to get you do to some JSON Debugging for me: JSON troubleshooting

  13. #12

    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    127
    Thank Post
    27
    Thanked 15 Times in 14 Posts
    Rep Power
    14
    No problem, I'll do some debugging. You wasnt me to follow all the steps from the JSON troubleshooting thread?

  14. #13

    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    127
    Thank Post
    27
    Thanked 15 Times in 14 Posts
    Rep Power
    14
    Firebug was inconclusive it never found anything while saving the config or trying to logon. The logging app found some issues but I think this is just HAP complaining that it hasnt got any AD details as I wasnt able to insert them into setup page.

    Here what it said:

    HAP+ & ServiceActivationException-eventviewer.jpg

    Code:
    An error occurred in Home Access Plus+
    
    Page: /hap/
    
    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\hap\84de08c5\70e6ba5a\App_Web_zppgovuc.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.Security.Authentication.AuthenticationException: Logon failure: unknown user name or bad password.
     ---> System.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password.
    
       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.get_AdsObject()
       at System.DirectoryServices.PropertyValueCollection.PopulateList()
       at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
       at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
       at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)
       --- End of inner exception stack trace ---
       at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)
       at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
       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\hap\84de08c5\70e6ba5a\App_Web_zppgovuc.0.cs:line 0
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)Message
    Logon failure: unknown user name or bad password.
    
    
    Source
    System.DirectoryServices
    
    Target site
    System.Object GetPropertyValue(System.DirectoryServices.ActiveDirectory.DirectoryContext, System.DirectoryServices.DirectoryEntry, System.String)
    
    Stack trace
       at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)
       at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
       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)
    
    ToString()
    
    System.Security.Authentication.AuthenticationException: Logon failure: unknown user name or bad password.
     ---> System.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password.
    
       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.get_AdsObject()
       at System.DirectoryServices.PropertyValueCollection.PopulateList()
       at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
       at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
       at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)
       --- End of inner exception stack trace ---
       at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)
       at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
       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)
    
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Hope this helps

  15. #14
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,471
    Thank Post
    37
    Thanked 483 Times in 415 Posts
    Rep Power
    109
    This is the main thing to look at
    Code:
    System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Security.Authentication.AuthenticationException: Logon failure: unknown user name or bad password.  ---> System.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password.

  16. #15

    Join Date
    Nov 2008
    Location
    Birmingham
    Posts
    127
    Thank Post
    27
    Thanked 15 Times in 14 Posts
    Rep Power
    14
    I'm positive the details are going in correct. Im goig to try some different accounts with admin privilidges and see if that helps but thats the same account I used for HAP 6.5

    Cheers

    Edit- I have checked and recheck my details and watched the installation video again and I'm still lost. Have you got any tests I could try to see where the problem is?

    As always thank you.
    Last edited by Wils86; 9th November 2011 at 08:54 AM.

SHARE:
+ Post New Thread

Similar Threads

  1. Surround Sound Amp
    By DaveMurphy in forum AV and Multimedia Related
    Replies: 2
    Last Post: 13th March 2010, 04:31 PM
  2. Amps and Speakers Watts
    By DaveMurphy in forum Hardware
    Replies: 6
    Last Post: 26th October 2009, 03:29 PM
  3. I'm amazed by this amp and speaker set
    By maniac in forum AV and Multimedia Related
    Replies: 1
    Last Post: 30th August 2009, 08:23 PM
  4. Speakers & Amp
    By nathan in forum Hardware
    Replies: 11
    Last Post: 16th December 2008, 05:26 PM
  5. cheap surround sound amp ?
    By mac_shinobi in forum Hardware
    Replies: 9
    Last Post: 23rd November 2008, 07:52 PM

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
  •