tomazaz
  •  tomazaz
  • 57.8% (Neutral)
  • YAF Forumling Topic Starter
2009-10-09T08:17:39Z
Hello,

Finally after several hours I have managed to integrate forum into my asp.net application, unfortunately not everything working as expected.
When I try to create new user in forum I get error "System.ArgumentNullException: Value cannot be null."

Any suggestion what is wrong?

Regards,
Tomas

YAF 1.9.3, .NET 3.5

URL: http://localhost:1234/web2pdf/testas.aspx?g=register

ERROR

Server Error in '/web2pdf' Application.

Value cannot be null.
Parameter name: type

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.ArgumentNullException: Value cannot be null.
Parameter name: type

Source Error:


Line 266:
Line 267: // create empty profile just so they have one
Line 268: YafUserProfile userProfile = PageContext.GetProfile(CreateUserWizard1.UserName);
Line 269: // setup their inital profile information
Line 270: userProfile.Save();

Source File: d:\Projects\WP\trunk\WEBProject\forum\pages\register.ascx.cs Line: 268

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic) +7467190
System.Web.Profile.ProfileBase.CreateMyInstance(String username, Boolean isAuthenticated) +79
System.Web.Profile.ProfileBase.Create(String username, Boolean isAuthenticated) +231
System.Web.Profile.ProfileBase.Create(String username) +9
YAF.Classes.Utils.YafContext.GetProfile(String userName) +6
YAF.Pages.register.CreateUserWizard1_CreatedUser(Object sender, EventArgs e) in d:\Projects\WP\trunk\WEBProject\forum\pages\register.ascx.cs:268
System.Web.UI.WebControls.CreateUserWizard.OnCreatedUser(EventArgs e) +111
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +354
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +102
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +418
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +161
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +19
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Sponsor
tomazaz
  •  tomazaz
  • 57.8% (Neutral)
  • YAF Forumling Topic Starter
2009-10-13T08:20:11Z
Any ideas why I get this error? Forum almost set up and working, only get error when try to create new user.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved