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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Need help with call to ValidateUserNeed help with call to ValidateUser
Previous
 
Next
New Post
1/11/2008 10:15 AM
 

I have a webpage that I am calling that works fine on my local server. When I put it on the remote server at my hosting site, I get the following error:

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error (LINE 13):
Line 11:
Line 12:         UserLoginStatus loginStatus = UserLoginStatus.LOGIN_FAILURE;
Line 13:         DotNetNuke.Entities.Users.UserInfo objUser = DotNetNuke.Entities.Users.UserController.ValidateUser(0, userName, password, "DNN", "", "test", "204.14.91.25", ref loginStatus);
Line 14:
Line 15:         if (loginStatus == UserLoginStatus.LOGIN_SUCCESS) {
 

Source File: d:\hshome\nickfox\test.com\portal\DesktopModules\DataServices\GetUserID.aspx.cs    Line: 13

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Security.Membership.AspNetMembershipProvider.UserLogin(Int32 portalId, String username, String password, String authType, String verificationCode, UserLoginStatus& loginStatus) +138
   DotNetNuke.Entities.Users.UserController.ValidateUser(Int32 portalId, String Username, String Password, String authType, String VerificationCode, String PortalName, String IP, UserLoginStatus& loginStatus) +47
   DesktopModules_DataServices_GetUserID.Page_Load(Object sender, EventArgs e) in d:\hshome\nickfox\test.com\portal\DesktopModules\DataServices\GetUserID.aspx.cs:13
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

Here is the source code causing the problem:

using System;
using DotNetNuke.Security.Membership;

public partial class DesktopModules_DataServices_GetUserID : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string userName = Request.QueryString["userName"];
        string password = Request.QueryString["password"];
        int userID = 0;

        UserLoginStatus loginStatus = UserLoginStatus.LOGIN_FAILURE;
        DotNetNuke.Entities.Users.UserInfo objUser = DotNetNuke.Entities.Users.UserController.ValidateUser(0, userName, password, "DNN", "", "Lectricsheep", "204.14.91.25", ref loginStatus);

That is the line causing the error. I can't see what objec it may be complaining about. Please help.

thanks

Nick

 

 

 

 
New Post
1/11/2008 10:57 AM
 

It is one of the arguments that are getting fed into the DotNetNuke.Security.Membership.AspNetMembershipProvider.UserLogin() provider method.  Which version of DNN are you using?  That specific method has had some changes to it recently.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
1/11/2008 11:46 AM
 

On my local machine I'm using version 4.6 and on the remote machine, its the latest version, 4.7.

Nick

 
New Post
1/11/2008 12:22 PM
 

Can you put together a test instance of 4.7 on your local machine and see if you get the same error?


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
1/11/2008 1:48 PM
 

I was mistaken, the remote server is running 4.8. I deleted my local server and updated it to 4.8. I then loaded that page on my local server and it ran properly! The remote server is still creating the error. I tried restarting the application but it didn't help.

I'm a little bit at a loss with this one.

Nick

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Need help with call to ValidateUserNeed help with call to ValidateUser


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