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

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Random [Object reference not set to an instance of an object] on page refreshRandom [Object reference not set to an instance of an object] on page refresh
Previous
 
Next
New Post
4/14/2016 7:26 AM
 

Hi guys I am currently developing a module which I keep re-installing on one of my test sites and from time to time a get greeted with this object reference exception exception on a page refresh.

The browsers is reporting the following stack trace:

[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Entities.Users.UserProfile.ClearIsDirty() +174
DotNetNuke.Security.Profile.DNNProfileProvider.GetUserProfile(UserInfo& user) +2152
DotNetNuke.Entities.Profile.ProfileController.GetUserProfile(UserInfo& user) +173
DotNetNuke.Entities.Users.UserInfo.get_Profile() +185
DotNetNuke.HttpModules.Membership.MembershipModule.AuthenticateRequest(HttpContextBase context, Boolean allowUnknownExtensions) +2710
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +91
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +164

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

EventViewer is reporting the following stack trace:

AbsoluteURL:/Default.aspx
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:76914c77-debb-4b83-a7c9-7641e1caea3c
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:wKnN1L0SbS2sdMmjAX6U2A==
Message:Unhandled Error:
StackTrace:
InnerMessage:Object reference not set to an instance of an object.
InnerStackTrace:
at DotNetNuke.Entities.Users.UserProfile.ClearIsDirty()
at DotNetNuke.Security.Profile.DNNProfileProvider.GetUserProfile(UserInfo& user)
at DotNetNuke.Entities.Profile.ProfileController.GetUserProfile(UserInfo& user)
at DotNetNuke.Entities.Users.UserInfo.get_Profile()
at DotNetNuke.HttpModules.Membership.MembershipModule.AuthenticateRequest(HttpContextBase context, Boolean allowUnknownExtensions)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Source:
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
Server Name: server1

Which is then followed by a series of stack traces until the application recovers.

AbsoluteURL:/Default.aspx
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:ae0691d1-c9e5-44b3-8537-df67178ec974
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:EpQgXy5i2hNTb4ir0AVhrA==
Message:Unhandled Error:
StackTrace:
InnerMessage:Object reference not set to an instance of an object.
InnerStackTrace:
at DotNetNuke.Entities.Profile.ProfilePropertyDefinitionCollection.GetByName(String name)
at DotNetNuke.Entities.Profile.ProfilePropertyDefinitionCollection.get_Item(String name)
at DotNetNuke.Entities.Users.UserProfile.GetProperty(String propName)
at DotNetNuke.Entities.Users.UserProfile.GetPropertyValue(String propName)
at DotNetNuke.Entities.Users.UserProfile.get_PreferredLocale()
at DotNetNuke.HttpModules.Membership.MembershipModule.AuthenticateRequest(HttpContextBase context, Boolean allowUnknownExtensions)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Source:
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
Server Name: server1

It is not a huge problem as DNN recovers after a few minutes and it doesn't happen all that often. But still I am curious to know if anyone came across the same issue?

By the way I am developing under DNN 7.4.2

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Random [Object reference not set to an instance of an object] on page refreshRandom [Object reference not set to an instance of an object] on page refresh


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