Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 24th, 2009, 07:32 AM
Authorized User
 
Join Date: Nov 2009
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Default System.NullReferenceException Error

Hi,

I have created a new solution and placed all the code from Chapter 12 etc etc. Changed the username to that of my PC etc. But I get the following when trying to view the any admin pages. The default page works fine and I can see data but not when trying tthrough protected pages.
Code:
HandlingInstanceID: c69fdda1-7b42-420e-97fb-c1b9b2cf759a
An exception of type 'System.Web.HttpUnhandledException' occurred and was caught.
---------------------------------------------------------------------------------
12/24/2009 11:26:00
Type : System.Web.HttpUnhandledException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Message : Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source : System.Web
Help link : 
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Boolean HandleError(System.Exception)
Stack Trace :    at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.administration_administration_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\exporteaseui\3c6c51dc\90829c6b\App_Web_sil8gop5.22.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Additional Info:

MachineName : ANDREW-M65
TimeStamp : 24/12/2009 11:26:00
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 AppDomainName : /LM/W3SVC/1/ROOT/ExporteaseUI-2-129061264412447323
ThreadIdentity : 
WindowsIdentity : NT AUTHORITY\SYSTEM
	Inner Exception
	---------------
	Type : System.NullReferenceException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
	Message : Object reference not set to an instance of an object.
	Source : WSS.ExporteaseBLL
	Help link : 
	Data : System.Collections.ListDictionaryInternal
	TargetSite : Boolean HasAccessToMenu(WSS.ExporteaseBLL.Framework.ENTUserAccountEO, WSS.ExporteaseBLL.Framework.ENTRoleEOList)
	Stack Trace :    at WSS.ExporteaseBLL.Framework.ENTMenuItemBO.HasAccessToMenu(ENTUserAccountEO userAccount, ENTRoleEOList roles) in C:\Users\Andrew\Documents\Visual Studio 2008\Projects\Exportease12\WSS.ExporteaseBLL\Framework\ENTMenuItemBO.cs:line 101
	   at WSS.FrameworkControls.MenuTabs.RenderContents(HtmlTextWriter writer) in C:\Users\Andrew\Documents\Visual Studio 2008\Projects\Exportease12\WSS.FrameworkControls\MenuTabs.cs:line 57
	   at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
	   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
	   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
	   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
	   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
	   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
	   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
	   at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
	   at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
	   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
	   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
	   at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
	   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
	   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
	   at System.Web.UI.Control.Render(HtmlTextWriter writer)
	   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
	   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
	   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
	   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
	   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
	   at System.Web.UI.Page.Render(HtmlTextWriter writer)
	   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
	   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
	   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
	   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I know it;s Christmas Eve but this is driving me nuts!!!!

Gilbo
  #2 (permalink)  
Old January 5th, 2010, 06:30 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy I'm getting same error message

I used trace to try to narrow down where the problem is occuring and it seems to be in the Begin Render routine, see below. I've scratching my head over this one also.

Request Details

Request Details
Session Id: 4wqlw1zb5fsllo45zhk5rpm0 Request Type: GET
Time of Request: 1/5/2010 5:26:28 PM Status Code: 500
Request Encoding: Unicode (UTF-8) Response Encoding: Unicode (UTF-8)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin PreInit
aspx.page End PreInit 0.000672711196534755 0.000673
aspx.page Begin Init 0.000742622316523469 0.000070
aspx.page End Init 0.00789800100292076 0.007155
aspx.page Begin InitComplete 0.00854235664029926 0.000644
aspx.page End InitComplete 0.0088987566855564 0.000356
aspx.page Begin PreLoad 0.00894422335799662 0.000045
aspx.page End PreLoad 0.00911044560132643 0.000166
aspx.page Begin Load 0.00915249005110985 0.000042
aspx.page End Load 0.138222595329853 0.129070
aspx.page Begin LoadComplete 0.138382462016821 0.000160
aspx.page End LoadComplete 0.138427928689261 0.000045
aspx.page Begin PreRender 0.138467039805338 0.000039
aspx.page End PreRender 0.139518151049924 0.001051
aspx.page Begin PreRenderComplete 0.13958170661355 0.000064
aspx.page End PreRenderComplete 0.139753795524291 0.000172
aspx.page Begin SaveState 0.158784286829751 0.019030
aspx.page End SaveState 0.158862509061906 0.000078
aspx.page Begin SaveStateComplete 0.15890504240064 0.000043
aspx.page End SaveStateComplete 0.158945620183571 0.000041
aspx.page Begin Render 0.158984731299648 0.000039
Unhandled Execution Error
Object reference not set to an instance of an object.
at System.Web.UI.PageRequestManager.RenderPageRequest ManagerScript(HtmlTextWriter writer)
at System.Web.UI.PageRequestManager.Render(HtmlTextWr iter writer)

...
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.NullReferenceException Michael YoeH ASP.NET 3.5 Professionals 0 October 19th, 2009 03:13 AM
Error: System.NullReferenceException cive1em BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 2 October 13th, 2009 08:31 AM
System.NullReferenceException JayLou BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 April 6th, 2007 12:55 PM
System.NullReferenceException m_rajib74 C# 0 March 5th, 2007 04:50 AM
System.NullReferenceException lwheless BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 September 24th, 2006 05:47 AM



All times are GMT -4. The time now is 10:11 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.