I was wondering what i may have done wrong to get the Error Object reference not set to and instance of an object. I have removed the svg and svgz from the webconfig file as i got an error before this one but cant think whats happened though.
Can you or anyone help?Code: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) +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) +4057733 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) +11702064 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4870277
This error is a result of a problem with your hapConfig file, the only real way to fix it is to delete your hapConfig.xml file and start again. Once the initial stuff is setup, you should be able to copy stuff from your old config into the new file.
Ok Nick, will give it a try possibly at the weekend now, unless i have some time today
Cheers Nick, i'll give it a shot today.
Just removed all the folders baring the APPDATA, replaced with the V9 files and backed up me hapConfig.xml. Now im getting the site but no themes. Just a text layout if thats the right words.
I wiped everything out (after a backup of my old HAP) and when I run the setup I get crosses next to my iis config at the top, and I can't choose any AD groups and my tile images on the setup page are not visible. Should I put the 9.1 update in and run the setup again?
@timbo343 if I remember rightly it's got something to do with the web.config file in the root of your HAP folder, try removing the line that has .svg mime type, that tends to work.
I had a load of red crosses using IE, when I switched to chrome the red crosses disappeared and I got green ticks as I started to complete each section, only issue I have now is when I log in I keep getting Unauthorised Access.
Sorted it, copied my web.config to the new version and it works.
CHeers, ive managed to gain access without any problem on a new V9 install via FF.
Was going to copy bits out of the hapconfig.xml file so i didnt have to set all of it up again but i got called into a meeting.
Will try the web.config from the backup again.
When i try to save my version 9 HAP i get this error:
A Error has occured:
Error Saving the Configuration
The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.
at System.Diagnostics.EventLog.FindSourceRegistration (String source, String machineName, Boolean readOnly, Boolean wantToCreate) at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate) at System.Diagnostics.EventLog.SourceExists(String source) at HAP.Web.Setup.Save_Click(Object sender, EventArgs e)
- Open the Registry Editor:
- Select Start then Run
- Enter regedt32 or regedit
- Navigate/expand to the following key:
- Right click on this entry and select Permissions
- Add the Network Service user or IIS AppPool\HAP user
- Give it Read permission
timbo343 (17th May 2013)
There are currently 1 users browsing this thread. (0 members and 1 guests)