MOSS 2007 Unable to access any sites in a site collection

pebkac1
pebkac1 used Ask the Experts™
on
We have an external facing MOSS 2007 site that is custom developed. In one of our site collections, on any subsite that we choose, we get the following 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.]
   MyGrapple.SharePoint.Web.WebControls.PreTeen.LessonPlanImageControl.Page_Load(Object sender, EventArgs e) +25
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 _________________________________________________________________________

The application logs give me this:

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618
Event Type:      Warning
Event Source:      ASP.NET 2.0.50727.0
Event Category:      Web Event
Event ID:      1309
Date:            8/8/2011
Time:            9:34:32 PM
User:            N/A
Computer:      Server
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 8/8/2011 9:34:32 PM
Event time (UTC): 8/9/2011 3:34:32 AM
Event ID: 66106379a30b456590fa2ad20a12209f
Event sequence: 2877
Event occurrence: 6
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1109696060/Root-1-129573106693437500
    Trust level: WSS_Minimal
    Application Virtual Path: /
    Application Path: C:\Inetpub\wwwroot\wss\VirtualDirectories\www.myurl.com\
    Machine name: server
 
Process information:
    Process ID: 11176
    Process name: w3wp.exe
    Account name: domain\oss.mossservice
 
Exception information:
    Exception type: NullReferenceException
    Exception message: Object reference not set to an instance of an object.
 
Request information:
    Request URL: http://www.myurl.com/subsite/subsite/default.aspx 
    Request path: /subsite/subsite/default.aspx
    User host address: xx.xx.xx.xxx
    User: siteuser
    Is authenticated: True
    Authentication Type: Forms
    Thread account name: domain\oss.mossservice
 
Thread information:
    Thread ID: 10
    Thread account name: domain\oss.mossservice
    Is impersonating: False
    Stack trace:    at MyURL.SharePoint.Web.WebControls.PreTeen.LessonPlanImageControl.Page_Load(Object sender, EventArgs e)
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
_________________________________________________________________________

I found a site that suggested our AAM (alternate access mappings) were incorrect but we are not using SSL. This site has been fine for quite a while and from what I can tell, there were no changes made to any configurations. I also found another posting suggesting to detach the contect db, reattach it and clean it for orphaned sites. I did this and it found 0 orphaned sites. ANY help is appreciated as this si a production public site. THANKS!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
This two links may help your issue:

http://nishantrana.wordpress.com/2009/02/12/server-error-in-application-runtime-error-on-opening-a-sharepoint-site/

http://www.keirgordon.com/post/Sharepoint-Error-Details.aspx

Always try this on your test environment first before your production environment.

It might be becuase of ASP.NET cache ....

Please go to c:\windows\Microsoft.NET\Framework\V2.0  and deleted temp cache.

Please share the ULS logs.
Commented:
Thanks for all of your replies guys. I have cleared the asp.net cache and also cheked my web.config's. They were set up correctly. I have been researching and working this for a while and we are going to go the restore route. Thanks for your help.

Author

Commented:
Unable to resolve, restoring.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial