redLine
  •  redLine
  • 74.8% (Friendly)
  • YAF MVP Topic Starter
2008-01-27T08:41:30Z
hi when i try to upgrade my 1.9.1.7 forum to 1.9.3 i take this error
UserPostedImage

How can fix that
Sponsor
rtech
  •  rtech
  • 81.2% (Honored)
  • YAF Lover
2008-01-27T08:49:51Z
redLine wrote:

hi when i try to upgrade my 1.9.1.7 forum to 1.9.3 i take this error
UserPostedImage

How can fix that



Me too .:(
redLine
  •  redLine
  • 74.8% (Friendly)
  • YAF MVP Topic Starter
2008-01-27T12:21:51Z
Ederon can fix that 😛 we are waiting you 😃
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2008-01-27T15:11:23Z
Sorry guys... I created this problem. Just a typo on my part.

Attached is the fixed contraints.sql file.
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2008-01-27T15:22:26Z
Also, I just updated the v1.9.3 download to include these fixes from today (plus some other goodies).
redLine
  •  redLine
  • 74.8% (Friendly)
  • YAF MVP Topic Starter
2008-01-27T15:33:30Z
Thanx jaben but give this error
UserPostedImage
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2008-01-27T17:56:34Z
Well, that's unfortunate. Trying to fix a typo that someone did YEARS ago...

I guess it's a lost cause from a work/hassle standpoint. Anyway, hopefully this one will work.
File Attachment(s):
constraints.sql (66kb) downloaded 75 time(s).

redLine
  •  redLine
  • 74.8% (Friendly)
  • YAF MVP Topic Starter
2008-01-28T03:10:36Z
thanx jaben this is work great but i have any problem.
i have been upgraded my forum but i can't login with any user say your username and password wrong. i try to password recovery but give Unable to locate the user name entered. this error and when i go any user profile give this error
 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 91: 
Line 92: 			// populate user information controls...
Line 93: 			UserName.Text = HtmlEncode( userData.Membership.UserName );
Line 94: 			Name.Text = HtmlEncode( userData.Membership.UserName );
Line 95: 			Joined.Text = String.Format( "{0}", YafDateTime.FormatDateLong( Convert.ToDateTime( userData.Joined ) ) );


Source File: c:\Documents and Settings\redLine\Desktop\asddd\pages\profile.ascx.cs    Line: 93

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   YAF.Pages.profile.BindData() in c:\Documents and Settings\redLine\Desktop\asddd\pages\profile.ascx.cs:93
   YAF.Pages.profile.Page_Load(Object sender, EventArgs e) in c:\Documents and Settings\redLine\Desktop\asddd\pages\profile.ascx.cs:72
   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.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061



what i want to do ?
redLine
  •  redLine
  • 74.8% (Friendly)
  • YAF MVP Topic Starter
2008-01-29T01:30:26Z
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2008-01-29T13:39:44Z
Not sure what happened here... How is your membership setup?
redLine
  •  redLine
  • 74.8% (Friendly)
  • YAF MVP Topic Starter
2008-01-29T14:04:24Z
Jaben wrote:

Not sure what happened here... How is your membership setup?



i do only use yaf's install and when i try to login my account i take username and password wrong error. and i can't see any user profile but not problem any topic
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2008-01-29T14:12:26Z
this was an upgrade though? Did you skip the roles migration during upgrading?
redLine
  •  redLine
  • 74.8% (Friendly)
  • YAF MVP Topic Starter
2008-01-30T01:07:58Z
Jaben wrote:

this was an upgrade though? Did you skip the roles migration during upgrading?



Yes jaben this was an upgrade but when i try to install roles migration during on my localhost i take this error
on my visual studio

UserPostedImage


on localhost

 The parameter 'roleName' must not be empty.
Parameter name: roleName
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.ArgumentException: The parameter 'roleName' must not be empty.
Parameter name: roleName

Source Error:

Line 189:						if ( !skipMigration.Checked )
Line 190:						{
Line 191:							RoleMembershipHelper.SyncRoles( PageBoardID );
Line 192:							RoleMembershipHelper.SyncUsers( PageBoardID );
Line 193:						}


Source File: c:\Documents and Settings\redLine\Desktop\asddd\install\default.aspx.cs    Line: 191

Stack Trace:

[ArgumentException: The parameter 'roleName' must not be empty.
Parameter name: roleName]
   System.Web.Util.SecUtility.CheckParameter(String& param, Boolean checkForNull, Boolean checkIfEmpty, Boolean checkForCommas, Int32 maxSize, String paramName) +800189
   System.Web.Security.Roles.RoleExists(String roleName) +131
   YAF.Classes.Utils.RoleMembershipHelper.SyncRoles(Int32 pageBoardID) +274
   YAF.Install._default.Wizard_NextButtonClick(Object sender, WizardNavigationEventArgs e) in c:\Documents and Settings\redLine\Desktop\asddd\install\default.aspx.cs:191
   System.Web.UI.WebControls.Wizard.OnNextButtonClick(WizardNavigationEventArgs e) +105
   System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453
   System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
redLine
  •  redLine
  • 74.8% (Friendly)
  • YAF MVP Topic Starter
2008-01-30T07:31:06Z
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2008-01-30T21:53:32Z
It's a bug. To fix change the SyncRoles function in the MembershipHelper.cs file in the YAF.Classes.Utils library to this:


static public void SyncRoles(int pageBoardID)
{
// get all the groups in YAF DB and create them if they do not exist as a role in membership
using (DataTable dt = YAF.Classes.Data.DB.group_list(pageBoardID, DBNull.Value))
{
foreach (DataRow row in dt.Rows)
{
string name = (string)row["Name"];
if (!String.IsNullOrEmpty(name) && !BitSet(row["Flags"], 2) && !Roles.RoleExists(name))
{
Roles.CreateRole(name);
}
}
}
}

And recompile... Updated codebase.

Not sure this will work as I cannot reproduce the situation... but it's worth a shot. 😉

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