Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Page_PreRender throws "object reference" exception DNN 5.0.1Page_PreRender throws "object reference" exception DNN 5.0.1
Previous
 
Next
New Post
3/13/2009 10:51 AM
 

Hi,

most of my DNN sites have a problem where Page_PreRender throws "object reference.." an exception after upgrading from DNN 5.0.0 to 5.0.1.

Some of the simple portals still work, but the Login form is not displayed and I cannot login. Any suggeastions desperately appreciated. Details below:

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:

Line 208:                Select Case ModuleControl.ModuleContext.Configuration.Visibility
Line 209:                    Case Entities.Modules.VisibilityState.Maximized, Entities.Modules.VisibilityState.Minimized
Line 210:                        DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(cmdVisibility, ModuleContent, ModuleControl.ModuleContext.ModuleId, ModuleControl.ModuleContext.Configuration.Visibility = Entities.Modules.VisibilityState.Minimized, MinIconLoc, MaxIconLoc, Utilities.DNNClientAPI.MinMaxPersistanceType.Cookie, Me.AnimationFrames)
Line 211:                End Select
Line 212:            End If

Source File: C:\Storage\WebSites\DotNetNuke\Admin\Containers\Visibility.ascx.vb    Line: 210

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.UI.Utilities.MSAJAX.get_IsInstalled() +56
   DotNetNuke.UI.Utilities.MSAJAX.RegisterClientScript(Page objPage, String Path) +15
   DotNetNuke.UI.Utilities.ClientAPI.RegisterClientScriptBlock(Page objPage, String key) +46
   DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Page objPage, ClientNamespaceReferences eRef) +160
   DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Page objPage, ClientNamespaceReferences eRef) +297
   DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Int32 intModuleId, Boolean blnDefaultMin, String strMinIconLoc, String strMaxIconLoc, MinMaxPersistanceType ePersistanceType, Int32 intAnimationFrames, String strPersonalizationNamingCtr, String strPersonalizationKey) +54
   DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Int32 intModuleId, Boolean blnDefaultMin, String strMinIconLoc, String strMaxIconLoc, MinMaxPersistanceType ePersistanceType, Int32 intAnimationFrames) +32
   DotNetNuke.UI.Containers.Visibility.Page_PreRender(Object sender, EventArgs e) in C:\Storage\WebSites\DotNetNuke\Admin\Containers\Visibility.ascx.vb:210
   System.Web.UI.Control.OnPreRender(EventArgs e) +8682870
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

[PageLoadException: Object reference not set to an instance of an object.]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +278
   DotNetNuke.Framework.PageBase.OnError(EventArgs e) +331
   System.Web.UI.Page.HandleError(Exception e) +84
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6776
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Server Error in '/' Application.

Object reference not set to an instance of an object.

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

 

 

 

 
New Post
3/13/2009 10:10 PM
 

Hi,

any suggestions on this problem would be appreciated. Most of our sites don't work.

Wish I'd been warned about DNN 5. Others should avoid it like the plague and stick with DNN 4.

Regards

Peter

 
New Post
3/13/2009 10:19 PM
 

I'm going out on a limb here, as this doesn't really match the errors I've seen with this bug. However, if you want to check for this bug, load up your web.config in your favorite editor of choice and locate the follow section...


</system.web>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="bin;bin\HttpModules;bin\Providers;bin\Modules;bin\Support;" />
      <dependentAssembly xmlns="">
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
      <dependentAssembly xmlns="">
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>


If you have the xmlns="" in your web.config then you've got the bug, and you'll need to correct the text inside the empty quotes... xmlns="urn:schemas-microsoft-com:asm.v1", which should result in something like this...


</system.web>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="bin;bin\HttpModules;bin\Providers;bin\Modules;bin\Support;" />
      <dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
      <dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

 
New Post
3/13/2009 11:12 PM
 

Hi Oliver,

thanks for the tip. The web sites now load, but comes up with debug errors that appear to be related to teh Javascript menus.

I'll do some more testing now.

Some of the sites are www.aerobatics.asn.au and vic.aerobatics.asn.au

Regards

Peter

 
New Post
3/13/2009 11:30 PM
 

Peter Cooney wrote

 The web sites now load, but comes up with debug errors that appear to be related to teh Javascript menus.

 

Glad I could be of assistance. I'm not sure why this one bug keeps slipping by almost all the core members. Anyways, onto your next problem...

I'm seeing "HTTP Error 403.2 - Forbidden: Read access is denied" errors on the ~/js folder and the ~/portals folder. Double check your file permissions and IIS settings.

I'd recommend the Firebug extension for Firefox, in Firebug enable the Net panel, and then you'll see all the 403 errors...

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Page_PreRender throws "object reference" exception DNN 5.0.1Page_PreRender throws "object reference" exception DNN 5.0.1


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out