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...Upgrading DNN P...Upgrading DNN P...DNN5 Login Throws Error "Object reference not set to an instance of an object"DNN5 Login Throws Error "Object reference not set to an instance of an object"
Previous
 
Next
New Post
1/18/2010 8:37 PM
 

Hello. I just recently upgraded to 5.2.1 and now after any user logs in it throws the following error:

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

The page loads (displays the error inline, but all other features & functions are fine) and the event viewer shows that the login occurred successfully. This error does not display on the page during subsequent page loads - only after login.

If anyone can provide any insight I would really appreciate it. I have searched through these forums, google, bing - everywhere I can think of - to find a solution. All to no avail.

Here is the stack trace:

AssemblyVersion: 5.2.1
PortalID: 0
PortalName: My Collaboration Portal
UserID: -1
UserName:
ActiveTabID: 327
ActiveTabName: Home
RawURL: /dotnetnuke/Default.aspx?tabid=327&ctl=Login&returnurl=%2fdotnetnuke%2fDefault.aspx%3ftabid%3d327
AbsoluteURL: /dotnetnuke/Default.aspx
AbsoluteURLReferrer: /dotnetnuke/Default.aspx?tabid=327&ctl=Login&returnurl=%2fdotnetnuke%2fDefault.aspx%3ftabid%3d327
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.0.3705; Media Center PC 4.0; .NET CLR 3.0.04506.30; InfoPath.2; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 728fe185-58b1-4270-bef5-e13564c1ed58
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 eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) 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:
Server Name: My-DNN-SERVER

 
New Post
1/22/2010 9:16 PM
 

Hello;

Same issue was reported at the post linked below unfortunately there has not been any activity on that thread since Jan. 4:

http://web3.dotnetnuke.com/Community/...

Are you self-hosted?

Are you running on a hosted site and if so with who; GoDaddy, MaximumASP, some other hosting company?

Might you be in a corporate env.? Are you running in web farm?


Ken Grierson
DotNetNuke Corporation
Test Lead
 
New Post
1/22/2010 11:09 PM
 

Hi Ken. Thanks for the response.

We actually run DNN in several different environments - some self hosted and others hosted on GoDaddy. The portals (parent and all child portals) where we experienced the problem were self hosted. I have not yet identified the specific cause of the error, but I was able to fix it. I noticed a backup copy of the web.config file with a date/time stamp after the upgrade (definitely after the upgrade completed but before the problems arose) in the root directory. I restored that web.config  and all subsequent logins have been successful. It is unclear where this backup web.config file came from. It was named like a file from a system or database backup; i.e web.config.01152010023645.bu. Our backup devices are not setup to place files anywhere but the removable drives. Strange.

Hopefully in the next day or so I will have an opportunity to compare the 2 web.config files to see what changed. I will update my post with the details so anyone else experiencing the problem will know where to look.

Thanks again for the response.

 
New Post
2/28/2010 4:09 AM
 

Hi,

I have hust begun experiencing the same problem in 5.2.2 .

Can you please let us know what you discovered that fixed the problem.

Thanks.

 

 
New Post
2/28/2010 4:50 AM
 

After a lot more searching I found a post relation to 'location'

I removed the following redirection from my web.config file and that fixed the problem for me...

    <!--
    <location path="purchase.html">
        <system.webServer>
            <httpRedirect enabled="true" destination="http://www.mycourts.com.au/purchase.aspx" exactDestination="true" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>
    <location path="download.html">
        <system.webServer>
            <httpRedirect enabled="true" destination="http://www.mycourts.com.au/downloads.aspx" exactDestination="false" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>
        -->

The other post mentioned the path was incorrect so I will try to play with that so that I can redirect again but at least I have fixed the DNN issue.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...DNN5 Login Throws Error "Object reference not set to an instance of an object"DNN5 Login Throws Error "Object reference not set to an instance of an object"


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