YAFLogo

eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
6 months ago
I am currently running my site on YAF 2.31.15. For some reason my version check is still showing as 2.31.14 but I'll let that pass. My question is, is it safe to go directly to version 3.2.2 or should I do all the other upgrades first?
Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
6 months ago
Version 3.2.3 is out. There was an issue with the upgrade process. Now you can directly upgrade from your version. But i still would recommend to backup the database before the upgrade.
eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
6 months ago
I did download the newer version, but it gives me the download for the stand-alone version. I'm using the YAF Sample Application version which, I understand, has to be installed differently. Where can I download this?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
6 months ago
Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader YAF Version: YAF 3.1.16
6 months ago

I did download the newer version, but it gives me the download for the stand-alone version. I'm using the YAF Sample Application version which, I understand, has to be installed differently. Where can I download this?

Originally Posted by: eutychus 

Post back on how it goes with the upgrade! I'm also using Sample Application. My upgrade would be a little bit more involved as I'd have to re-add the Chat. My members rely on that thing like crazy haha. So I might hold off until v4 and do a big update! 😁

eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
6 months ago

Post back on how it goes with the upgrade! I'm also using Sample Application. My upgrade would be a little bit more involved as I'd have to re-add the Chat. My members rely on that thing like crazy haha. So I might hold off until v4 and do a big update! 😁

Originally Posted by: Zero2Cool 

I will, but be patient with me. I won't be able to try it again until next Wednesday. I like to give myself lots of elbow room in case things go south and that's the next chance that I'll have that kind of time. I'll post any issues I have in this thread for you. Or you can message me privately, if you like.

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader YAF Version: YAF 3.1.16
6 months ago

Post back on how it goes with the upgrade! I'm also using Sample Application. My upgrade would be a little bit more involved as I'd have to re-add the Chat. My members rely on that thing like crazy haha. So I might hold off until v4 and do a big update! 😁

Originally Posted by: eutychus 

I will, but be patient with me. I won't be able to try it again until next Wednesday. I like to give myself lots of elbow room in case things go south and that's the next chance that I'll have that kind of time. I'll post any issues I have in this thread for you. Or you can message me privately, if you like.

Originally Posted by: Zero2Cool 

Absolutely zero rush! Whenever I attempt an upgrade, I try to give myself two days because there's always something that kicks my butt, lol. It's usually my changes to layout and what not 😁

eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 months ago
Okay, first issue: When I try the forum I get:

Could not load file or assembly 'YAF.Types, Version=2.3.1.14, Culture=neutral, PublicKeyToken=8b49dc47f4701f66' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Also, I use the membership function to support my site and this issue comes up:

'GetUser' is not a member of 'Membership'.

Source Error:

Line 49: Dim userName As String = ""

Line 50: Dim MemUser As MembershipUser

Line 51: MemUser = Membership.GetUser()

Line 52: If MemUser Is Nothing Then

Line 53: Session("userName") = "" 

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
5 months ago

Could not load file or assembly 'YAF.Types, Version=2.3.1.14, Culture=neutral, PublicKeyToken=8b49dc47f4701f66' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Did you delete all old dlls in the bin folder before the upgrade? If not make sure there are no old dlls

'GetUser' is not a member of 'Membership'.

Source Error:

Line 49: Dim userName As String = ""

Line 50: Dim MemUser As MembershipUser

Line 51: MemUser = Membership.GetUser()

Line 52: If MemUser Is Nothing Then

Line 53: Session("userName") = "" 

If i understand correctly you want to get the current user user name. You can do this with ...

Dim userName = HttpContext.Current.User.Identity.Name
eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 months ago

Did you delete all old dlls in the bin folder before the upgrade? If not make sure there are no old dlls

Originally Posted by: tha_watcha 

Yes, all dlls were deleted and replaced with the ones from the 3.2.2.Sample App.

If i understand correctly you want to get the current user user name. You can do this with ...

Dim userName = HttpContext.Current.User.Identity.Name

Will try this when I get home this evening. PS. I need to get the user number as well.

 

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
5 months ago
If you deleted all dlls then its possible that you have an import namespace with a reference to the YAF.Types assembly? the current YAF.Sample 3.2.3 does not contain any references to an older YAF.Types.dll.

PS. I need to get the user number as well.

I assume you mean ID . If you want to get the Membership(Identity) ID its

BoardContext.Current.MembershipUser.Id

or the current yaf user id 

BoardContext.Current.PageUserID
eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 months ago

If you deleted all dlls then its possible that you have an import namespace with a reference to the YAF.Types assembly? the current YAF.Sample 3.2.3 does not contain any references to an older YAF.Types.dll.

Originally Posted by: tha_watcha 

I'm using 3.2.2. There was an issue downloading 3.2.3 that I'll discuss later. YAF.Types does show up in my bin folder, though. And yes, the kin folder is in the root directory.

PS. I need to get the user number as well.

I assume you mean ID . If you want to get the Membership(Identity) ID its

BoardContext.Current.MembershipUser.Id

or the current yaf user id 

BoardContext.Current.PageUserID

Now I get: 'BoardContext' is not declared. It may be inaccessible due to its protection level.

Source Error:

Line 47: Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender

Line 48: Dim userName = HttpContext.Current.User.Identity.Name

Line 49: Dim userNumber As Integer = BoardContext.Current.MembershipUser.Id

Line 50: Dim dvpms As DataView = CType(sql_pms.Select(DataSourceSelectArguments.Empty), DataView)

Line 51: If Session("UserName") "" Then

eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 months ago
Just for giggles, I tried uploading the 3.2.2 Sample Site to a fresh domain, linked it to my database and got this error:

'yaf_Message' is not a constraint.

Could not drop constraint. See previous errors.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
5 months ago

Now I get: 'BoardContext' is not declared. It may be inaccessible due to its protection level.

you need to add the using statement for YAF.Core.Context or use....

YAF.Core.Context.BoardContext.Current.PageUserID

 

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
5 months ago

Just for giggles, I tried uploading the 3.2.2 Sample Site to a fresh domain, linked it to my database and got this error:

'yaf_Message' is not a constraint.

Could not drop constraint. See previous errors.

Originally Posted by: eutychus 

as I already wrote in Yaf 3.2.2 the upgrade process is broken. You need to use 3.2.3 if you want to upgrade.

Users browsing this topic