Jump to content

Recommended Posts

Posted

Hi Nick

 

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.

 

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

 

Can you or anyone help?

Posted
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.
  • Thanks 2
Posted
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.
Posted

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.

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

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.

 

Thanks

Posted

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)

Posted

  1. Open the Registry Editor:

    1. Select Start then Run
    2. Enter regedt32 or regedit
    3.  

      [*]Navigate/expand to the following key:

      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security

      [*]Right click on this entry and select Permissions

      [*]Add the Network Service user or IIS AppPool\HAP user

      [*]Give it Read permission

  • Thanks 1

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