YAFLogo

Tony30
  • Tony30
  • 58% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 3.1.15
9 months ago
Hi,

I got an assemble error when upgrade to 3.2.1.

Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.

 image.png You have insufficient rights to see the content.

Thank you for helping

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 months ago
You need to update the dependentAssembly section in the web.config 

<dependentAssembly>
  <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51"/>
  <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1"/>
</dependentAssembly>
Tony30
  • Tony30
  • 58% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 3.1.15
9 months ago
Thank you. But I did it already.

 image.png You have insufficient rights to see the content.

Tony30
  • Tony30
  • 58% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 3.1.15
9 months ago
Thank you again.

But never mind about the reference issue. I know where I did wrong.

However, I got a new problem now.

 image.png You have insufficient rights to see the content.

Upgrade form 3.1.13

Thank u.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 months ago
Can you check the yaf_User table if the DarkMode column was created on the upgrade?
Tony30
  • Tony30
  • 58% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 3.1.15
9 months ago
Thank you. But I am afraid not. Is there a script to run to create it?

 

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

Thank you. But I am afraid not. Is there a script to run to create it?

 

Originally Posted by: Tony30 

There is no script, the upgrade is done through code on the first run after the upgrade. But in your case the upgrade failed or didn't run. 

Van you check the yaf_Eventlog table if there are any error logs?

Tony30
  • Tony30
  • 58% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 3.1.15
9 months ago
No. I didn't see any error log happened recently.

I upgraded it last week but the last error I can see happened on January.

Thank u

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 months ago
Can you execute the following sql 

SELECT [Value] FROM [dbo].[yaf_Registry] where Name = 'version'

this shows the yaf db version, and i can see if the upgrade was successful or not.

Tony30
  • Tony30
  • 58% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 3.1.15
9 months ago
Thank you. It returns 87.
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 months ago
That means the upgrade wizard or the service itself is not running. For YAF 3.2.1 it should return 90.

Are you running YAF as standalone application or the forum control inside an application?

Tony30
  • Tony30
  • 58% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 3.1.15
9 months ago
It is running inside another application as a control.
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 months ago
I dont think i documented it yet but the Global.asax files class which derives normal HttpApplication needs to derive from YafHttpApplication 

like in the sample application https://github.com/YAFNET/YAF.SampleWebApplication/blob/21bc6b422353864401fa60488aa3e629ca31f627/YAF.SampleWebApplication/Global.asax.cs#L36 

Then yaf should work correctly.

Tony30
  • Tony30
  • 58% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 3.1.15
9 months ago
Thank you. But I am using a web form project not web app.

I will find out what I can do and let you know if we need more help or not.

 

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 months ago
The Sample Application is also a web forms project. As far as i remeber you only need to add the global.asax file to the project.