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...Login problems - Critical error, Object reference not set...Login problems - Critical error, Object reference not set...
Previous
 
Next
New Post
2/11/2008 3:05 PM
 

Hi everyone,

I'm working on a website for my company and everything was fine until I went to login this morning. Clicking on the Login link now just takes me back to the Home page and a message appears:

A critical error has occurred.
Object Reference not set to an instance of an object.

I've tried changing web.config and default.aspx to cause the server app to recycle. That didn't help.
I've also tried going to the Login page directly via http://www.cci-leadershipstrategies.com/default.aspx?ctl=login as well as http://www.cci-leadershipstrategies.com/Home/tabid/36/ctl/Login/Default.aspx but neither of them works - the result is the same.

The oddest thing about it is that the last time I worked on the site everything was fine, and noone else has logged since then. Then all of a sudden today I get this.

The only thing I can think of is that the News module might be causing this, as it's the only thing that has changed. I had one test news item that was set to expire on the day after I logged in for the last time.

Any help/suggestion would be greatly appreciated.

Thanks,

Emil

 
New Post
2/11/2008 4:42 PM
 

More info about the above problem that I neglected to mention:

I have verified (in the DB) that the Login page has not been modified from the default, i.e. in dbo.Portals table the LoginTabId is set to NULL.

Since I was in the DB anyway I just pulled out the log entry from the Event Viewer. Here's the exception stack trace:

DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Net.WebPermission.FromXml(SecurityElement securityElement)
   at System.Security.PermissionSet.CreatePerm(Object obj, Boolean ignoreTypeLoadFailures)
   at System.Security.PermissionSet.CreatePerm(Object obj, Boolean ignoreTypeLoadFailures)
   at System.Security.PermissionSet.CreatePermission(Object obj, Int32 index)
   at System.Security.PermissionSetEnumeratorInternal.MoveNext()
   at System.Security.PermissionSet.ToXml(String permName)
   at System.Security.PermissionSet.ToXml()
   at System.Security.SecurityException..ctor(String message, AssemblyName assemblyName, PermissionSet grant, PermissionSet refused, MethodInfo method, SecurityAction action, Object demanded, IPermission permThatFailed, Evidence evidence)
   at System.Security.SecurityException.MakeSecurityException(AssemblyName asmName, Evidence asmEvidence, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
   at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
   at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
   at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet, PermissionSet refusedSet, CodeAccessPermission demand, PermissionToken permToken, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)
   at System.Security.CodeAccessSecurityEngine.CheckHelper(CompressedStack cs, PermissionSet grantedSet, PermissionSet refusedSet, CodeAccessPermission demand, PermissionToken permToken, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)
   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
   at System.Security.CodeAccessPermission.Demand()
   at DotNetNuke.Authentication.OpenID.Login.get_Enabled()
   at DotNetNuke.Modules.Admin.Authentication.Login.BindLogin()
   at DotNetNuke.Modules.Admin.Authentication.Login.ShowPanel()
   at DotNetNuke.Modules.Admin.Authentication.Login.Page_Load(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.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 
New Post
2/11/2008 8:43 PM
 

I am seeing this to.  the last change I made was an SMTP change and I went through the database and removed it and still I don't get a to login.

 
New Post
2/12/2008 9:04 AM
 

Still no success in resolving this and it's happened to a DNN installation that's only 1 week old.

I'm very surprised by the lack of responses. Does noone really know anything about how to fix this? Come on guys, help!  I'm not the only one experiencing this problem.

Thanks!

 
New Post
2/12/2008 10:29 AM
 

Jeremy, your problem is the same as mine. Can you tell me which company you are hosting the website with? I'm with Network Solutions. Just trying to see if there's a pattern here.

Jeremy Nichols wrote

I am seeing this to.  the last change I made was an SMTP change and I went through the database and removed it and still I don't get a to login.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Login problems - Critical error, Object reference not set...Login problems - Critical error, Object reference not set...


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