JonZaman Posted June 24, 2014 Posted June 24, 2014 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
nickbro Posted June 24, 2014 Posted June 24, 2014 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
JonZaman Posted June 24, 2014 Author Posted June 24, 2014 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?
JonZaman Posted June 25, 2014 Author Posted June 25, 2014 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
fairm010 Posted June 25, 2014 Posted June 25, 2014 For reference here is the bit Nick is refering to in my working HAP_Config
nickbro Posted June 25, 2014 Posted June 25, 2014 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 1
JonZaman Posted June 25, 2014 Author Posted June 25, 2014 That fixed it just need to figure out where to put the LDAP settings now. Thanks so far guys.
fairm010 Posted June 25, 2014 Posted June 25, 2014 As above, you can do it manually if you feel you can. If not Click Add under Active Directory User List OU's and browse to each of your OU's.
JonZaman Posted June 25, 2014 Author Posted June 25, 2014 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.
fairm010 Posted June 25, 2014 Posted June 25, 2014 They are entered at the very start of the HAP_config The setup sets this up for you though! 1
JonZaman Posted June 25, 2014 Author Posted June 25, 2014 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?
fairm010 Posted June 25, 2014 Posted June 25, 2014 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.
JonZaman Posted June 25, 2014 Author Posted June 25, 2014 (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 June 25, 2014 by JonZaman
JonZaman Posted June 26, 2014 Author Posted June 26, 2014 **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.
TomClay Posted November 24, 2014 Posted November 24, 2014 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
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