Jump to content

Recommended Posts

Posted

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:
    [ATTACH=CONFIG]11985[/ATTACH]
  4. Have you set HAP+ to use HTTPS? need a screenshot like this:
    [ATTACH=CONFIG]11986[/ATTACH]
  5. What are your current SSL settings?:
    [ATTACH=CONFIG]11987[/ATTACH]
  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

  • Thanks 1
Posted

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?

 

Bind.jpg

 

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

 

Answer= See screen shot

 

Cert.jpg

 

5.What are your current SSL settings?:

 

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

 

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=

 

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:			
Line 190:				
Line 191:				
Line 192:			
Line 193:		


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

Posted (edited)

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

 

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.

Edited by Wils86
update
Posted

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?

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

Posted
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/)

Posted

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:

 

Eventviewer.jpg

 

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

Posted

This is the main thing to look at


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.

Posted (edited)

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.

Edited by Wils86

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