nickbro Posted April 22, 2013 Author Posted April 22, 2013 In the release notes at the bottom of the download page is upgrade instructions: https://hap.codeplex.com/releases/view/105468 Upgrade Steps: Backup your current install Delete all files except for the App_Data folder Extract all files except for the App_Data folder from the Web Release
mrbios Posted April 22, 2013 Posted April 22, 2013 In the release notes at the bottom of the download page is upgrade instructions: https://hap.codeplex.com/releases/view/105468 Only two things i would add to that is to backup your web.config files from the helpdesk and booking system admin. As these have permission settings in which get wiped, and they don't appear to have had any changes made between 8.7 and 9.0. Plus there's still the small section about changing permissions on the setup.aspx file in the main web.config file.
nickbro Posted April 22, 2013 Author Posted April 22, 2013 Yes sorry forgot about those 2 files, you can leave them in place.
reggiep Posted April 22, 2013 Posted April 22, 2013 I just tried the usual upgrade which is to remove everything from the HAP folder except the App_Data folder. However I had the following error upon browsing to HAP... Server Error in '/' Application. -------------------------------------------------------------------------------- Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object. Source Error: 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. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.Configuration.hapConfig.doUpgrade(Version version) +9258 HAP.Web.Configuration.hapConfig..ctor() +666 HAP.Web.Configuration.hapConfig.get_Current() +135 HAP.Web.Global.Application_Start(Object sender, EventArgs e) +52 [HttpException (0x80004005): Object reference not set to an instance of an object.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4057141 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375 [HttpException (0x80004005): Object reference not set to an instance of an object.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11700896 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4869125 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 What have I cocked up?
nickbro Posted April 22, 2013 Author Posted April 22, 2013 Your hapConfig.xml is corrupt, very odd error to happen.
reggiep Posted April 22, 2013 Posted April 22, 2013 Ouch. I'll restore my installation and try again.
reggiep Posted April 22, 2013 Posted April 22, 2013 Hmm, recovered it to previous version and it ran fine. Dropped the new files across into the hap folder and I get the same error again?
ataylor Posted April 22, 2013 Posted April 22, 2013 After installing the update I get this when browsing to HAP : This web page has a redirect loop The web page at "Hap link here" has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer. I can't load hap at all with v9, I have tried both keeping app data and doing a fresh install but i can't seem to load HAP. The my restore to 8.7 still works though.
mrbios Posted April 22, 2013 Posted April 22, 2013 Hmm, recovered it to previous version and it ran fine. Dropped the new files across into the hap folder and I get the same error again? It's probably not this, but i found that whenever i download the hap.zip file from codeplex i have to right click the zip file > properties > click unblock. Prior to unpacking it, else i get an issue with one of the scripts or dlls not working. Think that only applies to server 2008 and later though, and i could be wrong but give it a go anyway...you never know 1
reggiep Posted April 22, 2013 Posted April 22, 2013 (edited) Didn't work but thanks for the advice! Edited April 22, 2013 by reggiep
nickbro Posted April 22, 2013 Author Posted April 22, 2013 How odd, sorry it's not working @reggiep, I don't quite know what would be causing that issue. Is it happening on every browser? Make sure you don't access HAP+ from the server that's running it, it can cause issues. It could be a cookie/token missmatch, or a miss configuration of the kerberos stuff (if you are using that)
ataylor Posted April 23, 2013 Posted April 23, 2013 (edited) Hi! When any user apart from an admin tries to download a file I get an error "Bad request" I presume I have messed up some file permissions? Any idea's? Cheers, Adam Edited April 23, 2013 by ataylor
ataylor Posted April 23, 2013 Posted April 23, 2013 Ok, That was strange. Its because I was testing with uploading and downloading a blank text file. It did not seem to like it. Put some text in it and it worked fine. Cheers.
mattianuk Posted April 23, 2013 Posted April 23, 2013 After installing the update I get this when browsing to HAP : This web page has a redirect loop The web page at "Hap link here" has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer. I can't load hap at all with v9, I have tried both keeping app data and doing a fresh install but i can't seem to load HAP. The my restore to 8.7 still works though. Same happening here :S
ataylor Posted April 23, 2013 Posted April 23, 2013 I fixed that by disabling the redirect on my default web site.
mattgrimley Posted April 23, 2013 Posted April 23, 2013 what is the URL that is causing the redirect? Do you have a redirect script at the root of your IIS server? (above the HAP level) I did notice that one of the login scripts is redirecting to the root of the IIS server rather than the root of the /HAP folder - if you have a redirect script in the root sending it back, you might get a loop..
ataylor Posted April 23, 2013 Posted April 23, 2013 I had everything redirecting to https://hap.myschool.co.uk/HAP/login.aspx It worked on v8.7
mattgrimley Posted April 23, 2013 Posted April 23, 2013 yeah, i had a redirect in too but as im testing on a /BETA site, it was redirecting back to /HAP.. (hence no redirect loop for me). I'm wondering what the specific URL (in the address bar) is causing the loop for those experiencing it? For me, it was the ~/beta/login.aspx?ReturnUrl=/&From=Negotiate The "ReturnUrl=/" would appear to be incorrect.
Edu-IT Posted April 23, 2013 Posted April 23, 2013 Hmm? Any ideas? [TABLE=width: 100%] [TR] [TD] [NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.Configuration.hapConfig.doUpgrade(Version version) +8468 HAP.Web.Configuration.hapConfig..ctor() +433 HAP.Web.Configuration.hapConfig.get_Current() +126 HAP.Web.Setup.Page_Load(Object sender, EventArgs e) +176 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +91 System.Web.UI.Control.LoadRecursive() +74 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207[/TD] [/TR] [/TABLE]
nickbro Posted April 23, 2013 Author Posted April 23, 2013 Hmm? Any ideas? [TABLE=width: 100%] [TR] [TD][NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.Configuration.hapConfig.doUpgrade(Version version) +8468 HAP.Web.Configuration.hapConfig..ctor() +433 HAP.Web.Configuration.hapConfig.get_Current() +126 HAP.Web.Setup.Page_Load(Object sender, EventArgs e) +176 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +91 System.Web.UI.Control.LoadRecursive() +74 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207[/TD] [/TR] [/TABLE] You've gotten a corrupt hapConfig.xml file
nickbro Posted April 23, 2013 Author Posted April 23, 2013 yeah, i had a redirect in too but as im testing on a /BETA site, it was redirecting back to /HAP.. (hence no redirect loop for me). I'm wondering what the specific URL (in the address bar) is causing the loop for those experiencing it? For me, it was the ~/beta/login.aspx?ReturnUrl=/&From=Negotiate The "ReturnUrl=/" would appear to be incorrect. Just re-release the v9 release, you just need the hap.web.dll file in the bin folder, see if that works. (Give it 10 minutes while it uploads)
nickbro Posted April 23, 2013 Author Posted April 23, 2013 [ATTACH=CONFIG]17943[/ATTACH] This is all I get, fixed the redirect issue :S You need to remove the svg line from the web.config file
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