Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 22:     {
Line 23:         System.Web.Security.MembershipUser membUser = System.Web.Security.Membership.GetUser(userID);
Line 24:         ProfileCommon userProfile = (ProfileCommon)System.Web.Profile.ProfileBase.Create(membUser.UserName);
Line 25:         Popular(userProfile, data);
Line 26:     }

Source File: g:\pleskvhosts\investpedia.com.br\investpedia.com.br\Util\UserControls\Forum\Usuario.ascx.cs    Line: 24

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Util_UserControls_Forum_Usuario.Popular(Guid userID, DateTime data) in g:\pleskvhosts\investpedia.com.br\investpedia.com.br\Util\UserControls\Forum\Usuario.ascx.cs:24
   Util_UserControls_Forum_Topico.Popular(TopicoTO item) in g:\pleskvhosts\investpedia.com.br\investpedia.com.br\Util\UserControls\Forum\Topico.ascx.cs:77
   Forum_Topico.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\investpedia.com.br\investpedia.com.br\Forum\Topico.aspx.cs:29
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062