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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...host login aspnet nullreference exception after upgrade to 3.3.6host login aspnet nullreference exception after upgrade to 3.3.6
Previous
 
Next
New Post
12/9/2006 4:56 PM
 
After upgrading a site from 3.02.00 to 3.03.06 I can't login as host due to error below.
I did try upgrading to 4 first so was trying various versions of upgrade to try to get a working option - all failed.
I did see some posts about failures in membership provider after some portals deleted, which would also apply here - but not to the host account surely?

any ideas much appreciated,
thanks,
Jonathan


[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Security.Membership.AspNetMembershipProvider.UserLogin(Int32 portalId, String username, String password, String verificationCode, UserLoginStatus& loginStatus) +93
DotNetNuke.Entities.Users.UserController.ValidateUser(Int32 portalId, String Username, String Password, String VerificationCode, String PortalName, String IP, UserLoginStatus& loginStatus) +43
DotNetNuke.Modules.Admin.Security.Signin.cmdLogin_Click(Object sender, EventArgs e) +216
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292

[PageLoadException: Object reference not set to an instance of an object.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +349
DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) +365
System.Web.UI.TemplateControl.OnError(EventArgs e) +109
System.Web.UI.Page.HandleError(Exception e) +68
System.Web.UI.Page.ProcessRequestMain() +2100
System.Web.UI.Page.ProcessRequest() +218
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87


 
New Post
12/10/2006 11:24 AM
 
Found a fix by the time post approved:
The upgrade process created a new entry in table aspnet_applications with the name 'dotnetnuke'
after upgrading and successfully registering a new user on a site open for registration, another application is created as '/' (dotnetnuke in this instance the root application)
Probably several possible fixes, one being to remap users to the new application as:

update aspnet_membership set applicationid =
(
Select applicationid from aspnet_applications
where applicationname='/'
)
where applicationid !=
(
Select applicationid from aspnet_applications
where applicationname='/'
)
go

update aspnet_users set applicationid =
(
Select applicationid from aspnet_applications
where applicationname='/'
)
where applicationid !=
(
Select applicationid from aspnet_applications
where applicationname='/'
)
go


 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...host login aspnet nullreference exception after upgrade to 3.3.6host login aspnet nullreference exception after upgrade to 3.3.6


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