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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationerror after logging inerror after logging in
Previous
 
Next
New Post
7/7/2009 4:58 PM
 

 When someone logs in to my site i get a critical error message on the home page and the following message in the system log (page exception error). This has started after enabling OpenID and LiveID to the login options.

I tested the system by changing the page that the login goes to but it keeps sending me back to my home page. Please can someone point me in the direction i need to go as cannot find a reason for this error?

Error message:

AssemblyVersion: 05.00.00
PortalID: 0
PortalName: Termite Nation
UserID: -1
UserName:
ActiveTabID: 38
ActiveTabName: Home
RawURL: /Home/tabid/38/ctl/Login/Default.aspx?returnurl=%2fHome%2ftabid%2f38%2fDefault.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.termitenation.com/Home/tabid/38/ctl/Login/Default.aspx?returnurl=%2fHome%2ftabid%2f38%2fDefault.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 9400b673-c259-4608-bf99-32d23402a1b1
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Common.Utilities.XmlUtils.GetAttributeValueAsInteger
StackTrace:
Message: 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 DotNetNuke.Common.Utilities.XmlUtils.GetAttributeValueAsInteger(XPathNavigator nav, String AttributeName, Int32 DefaultValue) at DotNetNuke.Common.Utilities.Config.GetPersistentCookieTimeout() at DotNetNuke.Entities.Users.UserController.UserLogin(Int32 portalId, UserInfo user, String PortalName, String IP, Boolean CreatePersistentCookie) at DotNetNuke.Modules.Admin.Authentication.Login.ValidateUser(UserInfo objUser, Boolean ignoreExpiring) at DotNetNuke.Modules.Admin.Authentication.Login.UserAuthenticated(Object sender, UserAuthenticatedEventArgs e) at DotNetNuke.Services.Authentication.AuthenticationLoginBase.OnUserAuthenticated(UserAuthenticatedEventArgs ea) at DotNetNuke.Modules.Admin.Authentication.Login.cmdLogin_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String EVENT_ARGUMENT) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String EVENT_ARGUMENT) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String EVENT_ARGUMENT) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:

 

 
New Post
7/8/2009 11:55 AM
 

Can anyone at all log into the system? If so I'd look at removing the providers and adding them back one at a time so that we can narrow down which one is causing the problem. I'd also look at upgrading to DNN 5.1.0 as it's much more stable than DNN 5.0.0

 
New Post
7/14/2009 5:21 PM
 

 I ran a comparison of the web.config files from the current setup with a file i had backed off a few days earlier and found that part of the file had changed. I restored the sections of the config file that had changed and the login started to work again without error.

I ran several tests installing the live and open id options but this did not change the web.config as before. 

I then looked at my host which runs a Plesk control panel and found that there is an option to select authenticiation, now changing this from form to window and back again it causes the web.config to corrupt.

the web.config file loses a chunk of data..

<!-- forms or Windows authentication -->

 <authentication mode="forms"> <forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies" /> </authentication> <!-- <identity impersonate="true"/>

 

becomes

<!-- forms or Windows authentication -->

 

<!-- <identity impersonate="true"/>

 

This causes a critical error just after logging in to the site (you can still log in) and this error disappears when you switch page, however what it does is that it stops you nominating a page to go to after login (will default to the home page).

 
New Post
7/16/2009 11:19 AM
 

I'm glad you found the source of the problem. Unfortunately the Core team can't control changes a service provider makes on the web.config.

 
New Post
7/16/2009 2:02 PM
 

Even without host programs making those kind of changes, I have run into web.config problems several times now over the last few years.  It seems that every time a new version of DNN is released, they re-arrange the web.config file that goes along with it dramatically.  Sometimes they merely change the formatting and order of entries(which make it difficult to find the changes), but sometimes they add/remove important parts. 

This is quite often the most overlooked cause of problems with DNN, and why I now make it a habit of using the release.config file that comes with each new version, only importing the very barest of essentials to make it work with my server, instead of just upgrading and hoping for the best.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationerror after logging inerror after logging in


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