Jump to content

Recommended Posts

Posted

Hello

 

I was looking into updating our version of HAP+ as we have a new website and thought a new version would look more modern alongside it.

 

So I downloaded HAP+ V10 and extracted all the files then simply copied all of them apart from App Data into the HAP+ location but this did not work.

 

Is it more complicated than this? I don't know a lot about it as I didn't set it up originally.

 

I took a backup of the original files and folders and have put them back so the old version is still working for now.

 

Thank you

  • 3 weeks later...
Posted

As in take the web.config file I made a backup of and copy it back having updated all the files for version 10?

 

Will this affect any of the configuration settings?

  • 2 weeks later...
Posted

Having copied the new HAP files to the right location but leaving the App Data folder alone annd copied back the original web.config file i was given this error message:

 

Server Error in '/HAP' 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) +8666

HAP.Web.Configuration.hapConfig..ctor() +632

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) +12949749

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): Object reference not set to an instance of an object.]

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

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

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

 

 

 

--------------------------------------------------------------------------------

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

Posted
Ok, looks like it can't do something with the upgrade process. You will need to backup and rename hapConfig.xml and try again. Use a new config file to set the basics then copy sections from the old config to restore functionality
  • 4 weeks later...
Posted

Hello again

 

I think I'm making this whole upgrade more complicated than it needs to be :)

 

Earlier in the week I renamed hapconfig.xml in the existing AppData folder then copied all the files for version 10 over (apart from AppData), this looked promising as when I followed our existing HAP link it presented me with a setup page and created a new blank hapconfig.xml in AppData.

 

So I left it there and copied everything back to its original working state thinking I would return another day and do the same only first I would login and open the existing HAP+ Config interface on a laptop so I could see all the existing settings on the form then go through the process described above on a PC, be presented with the new blank form and fill it in.

 

However I've gone to do this and instead of now getting the new HAP+ config options I get an access denied error for hapconfig.xml.

 

It did cross my mind that maybe I was trying to jump too many versions from 7.9 to 10 but I tried just going to 7.10 and it still didn't work.

 

So I've resolved that I should just set it all up again from scratch but can't find written or video instructions for V10, can you point me in the right direction please?

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