BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Support  Installation pr...  Null Reference Exception
Previous Previous
 
Next Next
New Post 4/17/2006 9:36 PM
User is offline kharr0
11 posts
No Ranking


Null Reference Exception 
Modified By kharr0  on 4/17/2006 8:41:05 PM)

I'm getting the following in several places, most recently when trying to add a new issue to a project:

[NullReferenceException: Object reference not set to an instance of an object.]
   BugNet.BusinessLogicLayer.UserIT.IsInRole(Int32 projectId, String role) +40
   BugNet.Header.Page_Load(Object sender, EventArgs e) +727
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Page.ProcessRequestMain() +750

I've also gotten the following:

[SecurityException: Requested registry access is not allowed.]
   Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473
   System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName, Boolean useMutex) +445
   System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName) +11
   System.Diagnostics.EventLog.CreateEventSource(String source, String logName) +11
   Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValidSource()

I've tried setting Exception Management to off:

<exceptionManagement mode="off">

but it doesn't seem to help.

 
New Post 4/17/2006 10:00 PM
User is offline admin
641 posts
bugnetproject.com
1st Level Poster




Re: Null Reference Exception 
The first error has been identified as an issue and it was serious enough to re-release the package to sourceforge. Something that didn't occur on my test machine but when deployed to a host server started happening.

The second should be resolved by turning the exception handling off. By default the older exception handling block likes to log to the event log, which is not possible in a hosted environment.

Davin Dubeau
BugNET - Core Developer

 
Previous Previous
 
Next Next
  Forum  Support  Installation pr...  Null Reference Exception

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.