•  toologic
  • 63.8% (Friendly)
  • YAF Camper Topic Starter
Hi All!
After update YAF from 1.9.3 to 1.9.5 i get error in row (see code)

using YAF.Classes.Data;
//AI: Search in YAF tables user by e-mail
DataTable user = YAF.Providers.Membership.DB.GetUserNameByEmail("yetanotherforum", Session["user_email"].ToString());
//AI: Autorization by name
if(user.Rows.Count > 0)
		FormsAuthentication.SetAuthCookie(user.Rows[0][0].ToString(), false);
		FormsAuthentication.SetAuthCookie(DtUser.Rows[0]["Name"].ToString(), false);

Now i have CS0120 error in row YAF.Providers.Membership.DB.GetUserNameByEmail - An object reference is required for the nonstatic field, method, or property 'member'

What i can do?
Users browsing this topic

    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