Jump to content

Recommended Posts

Posted

Hello All,

 

I followed various forum threads til I got stuck at this point.

I had just fixed the issue where the save button wasn't displayed, rebooted the server and had an error which I Googled and found that I needed to do a registry change so that the IIS AppPool user had permissions to the event log. Rebooted the server again and got the following error which I tried to google but couldn't find anything useful.

 

Wondering if anyone can help please. Ripping my hair out trying to get this to work.

 

Many thanks,

 

 

Jon[h=1]Server Error in '/HAP' Application.


[/h][h=2]Unknown error (0x80005000)[/h]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.Runtime.InteropServices.COMException: Unknown error (0x80005000)

 

Source Error:

 

[TABLE=width: 100%]

[TR]

[TD]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.[/TD]

[/TR]

[/TABLE]

 

Stack Trace:

 

[TABLE=width: 100%]

[TR]

[TD][COMException (0x80005000): Unknown error (0x80005000)]

System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +627365

System.DirectoryServices.DirectoryEntry.Bind() +44

System.DirectoryServices.DirectoryEntry.get_AdsObject() +42

System.DirectoryServices.PropertyValueCollection.PopulateList() +29

System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName) +63

System.DirectoryServices.PropertyCollection.get_Item(String propertyName) +163

System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer() +436

System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit() +51

System.DirectoryServices.AccountManagement.PrincipalContext.Initialize() +161

System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx() +42

System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate) +29

System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(PrincipalContext context, String identityValue) +81

HAP.AD.User.Authenticate(String username, String password) +295

HAP.Web.Global.Application_Start(Object sender, EventArgs e) +187

 

[HttpException (0x80004005): Unknown error (0x80005000)]

System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12951237

System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175

System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304

System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404

System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

 

[HttpException (0x80004005): Unknown error (0x80005000)]

System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244

System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949

[/TD]

[/TR]

[/TABLE]

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446

Posted

0x80005000 is a generic AD fault on the server which a reboot fixes, it isn't HAP+ specific.

 

You can also try changing the LDAP path so LDAP is in caps

Posted

I have rebooted the server several times.

 

I cannot say I am an expert in this as this is the first time I am deploying.

 

Where would I change the LDAP Path?

Posted

Probably sound more thick but I'm not sure what path I'm turning to Caps.

 

That's my hapconfig file can you let me know what to edit exactly?

 

Thanks

 

Posted
Probably sound more thick but I'm not sure what path I'm turning to Caps.

 

That's my hapconfig file can you let me know what to edit exactly?

 

Thanks

 

Set firstrun="true" at the top and reenter your AD details

  • Thanks 1
Posted

I couldn't find where in the setup.aspx or hapconfig.xml file that the LDAP details are meant to be entered.

Can anyone point me in the right direction?

 

I keep getting an error "The LDAP Server is unavailable"

 

I cant find any other forum posts mentioning this so I must be the only newbie to editing these sorts of files.

Posted

Thanks Fairm010, I filled it out to what Nickbro said to set firstrun=True and re-enter AD credentials. it worked but after a reboot it stopped working.

 

I did the same thing again and it worked so I assume I need to complete the setup on setup.aspx before next reboot?

 

Also will it cause an issue if the server that HAP sits on doesn't have active directory installed on? Is there some way to point LDAP to query a different server on the same network?

Posted

You need to ensure that your app_data folder is not set to read only.

 

My web server (the server HAP runs on) is not a domain controller so no, it does not cause an issue.

Posted (edited)

Yes I can confirm that the App_data is not set to read only.

 

But I am getting the error message:

"There is something wrong connecting to your AD infrastructure,

 

please review AD settings and try again.

The most common cause of this is using a user not in Domain admins or Administrators Group"

 

The user is in Domain Admins and local administrators group

 

**UPDATE**

I've now tried with a further two accounts which meet the criterion and still no luck

Edited by JonZaman
Posted

**UPDATE**

 

I now have it working.

 

There was a network issue to start with as my colleague originally started this project.

 

I had a further problem or two afterwards but resolved them using other threads within the forum.

 

Thanks for the help guys.

  • 4 months later...
Posted

Hi JonZaman,

 

Im having trouble getting setup too with the same error. "There is something wrong connecting to your AD infrastructure..."

 

I have tried to enter all variety of LDAP, with FQDN, different domain admin users etc.

Security is correct on app_data.

 

What else do I need to be looking for?

 

Thanks for any assistance,

Tom

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