Jump to content

Recommended Posts

Posted

Hi there,

 

I have just been going through setting up the latest version of HAP+ 8.5 and when we get to the section of adding the AD user OU selections on the Active Directory tab we get a little pop-up error message saying "Object reference not set to an instance of an object." When we click on "Save" to try and save our config we get the following error message:

 

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.Setup.Save_Click(Object sender, EventArgs e) +591

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +153

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3706

 

 

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

 

Any clues?

 

Jon

Posted

Here is the error from eventvwr which gets entered when hitting save...

 

Log Name: Application

Source: ASP.NET 4.0.30319.0

Date: 11/12/2012 16:33:28

Event ID: 1309

Task Category: Web Event

Level: Warning

Keywords: Classic

User: N/A

Computer: webserver.example.com

Description:

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 11/12/2012 16:33:28

Event time (UTC): 11/12/2012 16:33:28

Event ID: 96b9dce9ad284c6f8de5106633bd8d6c

Event sequence: 52

Event occurrence: 4

Event detail code: 0

 

Application information:

Application domain: /LM/W3SVC/6/ROOT-2-129997151202182813

Trust level: Full

Application Virtual Path: /

Application Path: E:\QM Sites\HAP\

Machine name: webserver

 

Process information:

Process ID: 6460

Process name: w3wp.exe

Account name: IIS APPPOOL\HAP

 

Exception information:

Exception type: NullReferenceException

Exception message: Object reference not set to an instance of an object.

at HAP.Web.Setup.Save_Click(Object sender, EventArgs e)

at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

 

Request information:

Request URL: https://example.com:443/setup.aspx

Request path: /setup.aspx

User host address: 10.0.96.200

User:

Is authenticated: False

Authentication Type:

Thread account name: IIS APPPOOL\HAP

 

Thread information:

Thread ID: 29

Thread account name: IIS APPPOOL\HAP

Is impersonating: False

Stack trace: at HAP.Web.Setup.Save_Click(Object sender, EventArgs e)

at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

Custom event details:

 

Event Xml:

1309

3

3

0x80000000000000

10014

Application

webserver.example.com

3005

An unhandled exception has occurred.

11/12/2012 16:33:28

11/12/2012 16:33:28

96b9dce9ad284c6f8de5106633bd8d6c

52

4

0

/LM/W3SVC/6/ROOT-2-129997151202182813

Full

/

E:\QM Sites\HAP\

NEPTUNE

6460

w3wp.exe

IIS APPPOOL\HAP

NullReferenceException

Object reference not set to an instance of an object.

at HAP.Web.Setup.Save_Click(Object sender, EventArgs e)

at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

https://example.com:443/setup.aspx

/setup.aspx

10.0.96.200

False

IIS APPPOOL\HAP

29

IIS APPPOOL\HAP

False

at HAP.Web.Setup.Save_Click(Object sender, EventArgs e)

at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Posted

That error is usually because you have hit save before some of the core information is put into HAP+'s setup page. You don't need to put the OU bits in straight away.

 

Double check your FQDN is correct

Posted

Hi Nick,

 

FQDN looks fine to me; all of the preceeding sections where returning a green tick so I presumed they were all OK. I get an error on even trying to put in the OU bits; and even without them in I can not save.

 

I will post some screen shots tomorrow for you to have a look at.

 

Jon

Posted

Hi Nick,

 

Screen-shots attached...

 

Here is the general screen showing all green ticks...

general.jpg

 

Here is the Active Directory screen showing all green ticks...

ad.jpg

 

Then we try to add a user group on the AD screen...

ad add user.jpg

 

And get this error:

ad add user error.jpg

 

And when we click on the Save button we get this error:

save error.jpg

 

Cheers

 

Jon

Posted

The AD User Browser OU Editor > Path will not let me select a group or a user; only an OU...

 

If I enter the name of the group in the "Name" field and the the path to the group in the Path field; I get the same error.

 

I have tried with and without "CN=" at the start of the group name; as I had to manually enter this on the "Students Group" field to get that to take, and I still get the same error.

 

Jon

Posted
The group should be an AD Group, not an OU.

 

Hi Nick,

 

Which group are talking about, the Students group or the AD User lists OU?

 

I can not see where we have this mis-configured, but am really keen to use HAP here... Any other suggestions gratefully received.

 

Regards

 

Jon

Posted

Hi Nick,

 

Cheers for that. I saved that as directed, but had to edit line 38 as there was a missing " - it now reads:

in my config file.

 

This lets the front page load; but when I try to go back to the /setup.aspx page I get the following error:

 

Server Error in '/' Application.

Input string was not in a correct format.

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.FormatException: Input string was not in a correct format.

 

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:

 

 

[FormatException: Input string was not in a correct format.]

System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +12636309

System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +224

HAP.Web.Setup.Page_Load(Object sender, EventArgs e) +1096

System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25

System.Web.UI.Control.LoadRecursive() +71

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064

 

 

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

 

Just thought I should mention; I am trying to run this as the root directory of the site, and not as a sub folder / application of the default site... Don't know if that would make any difference though...

 

Jon

Posted

Hi Nick,

 

That has got me a step closer ;-)

 

I can now save the settings in the setup.aspx page without error; but as soon as I try to login I get this error:

 

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.Data.SQL.WebEvents.Log(WebTrackerEvent Event) +154

HAP.Web.Login.login_Click(Object sender, EventArgs e) +622

System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +154

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3706

 

 

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

 

If I use the \ or use an incorrect password it works as expected; it is just when I log in with a valid username and password I get the above error.

 

Cheers

 

Jon

Posted
can you make sure that the tracker provider (in xml or via website) states XML in caps, I think it's trying to connect to a sql provider, which is shouldn't do

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