YAFLogo

azarbara
  • azarbara
  • 86% (Honored)
  • YAF Lover Topic Starter
10 years ago
Hello Guys,

Recently i attempt to upgrade YAF like other modules in DNN, so download YAF.net V2.1 from Github and install it from Host>Extensions; during the install accord no problem but after click Return" button" in the last install step receive an error.

http://yourWebsite.com/DesktopModules/YetAnotherForumDotNet/install/  but module doesn't upgrade.

current version in my portal is 2, and i want to upgrade to latest version

Please help to upgrade YAF in DNN

Thanks, Mohammad 🙂


Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago
Can you post the error message you get?
azarbara
  • azarbara
  • 86% (Honored)
  • YAF Lover Topic Starter
10 years ago
Server Error in '/' Application.

Could not load file or assembly 'YAF.Core, Version=2.0.0.0, 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)

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.IO.FileLoadException: Could not load file or assembly 'YAF.Core, Version=2.0.0.0, 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)


Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader YAF Version: YAF 3.1.16
10 years ago
Add the YAF.Core DLL assembly to your /bin directory.
azarbara
  • azarbara
  • 86% (Honored)
  • YAF Lover Topic Starter
10 years ago

Add the YAF.Core DLL assembly to your /bin directory.

Originally Posted by: Zero2Cool 

the YAF.Core dll Exist in bin directory. (this file added with YAF install in DNN)


Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader YAF Version: YAF 3.1.16
10 years ago
Does your web.config reference the same version your error is showing?
azarbara
  • azarbara
  • 86% (Honored)
  • YAF Lover Topic Starter
10 years ago
i have the following code in web.config

      <add name="YafTaskModule" type="YAF.Core.YafTaskModule, YAF.Core" preCondition="managedHandler" />

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago
I guess dnn didn't copy the dlls on installing, because the version numbers are the same as in the previous version. Try to extract all dlls from the install zip and copy them over to your bin folder.
azarbara
  • azarbara
  • 86% (Honored)
  • YAF Lover Topic Starter
10 years ago

I guess dnn didn't copy the dlls on installing, because the version numbers are the same as in the previous version. Try to extract all dlls from the install zip and copy them over to your bin folder.

Originally Posted by: tha_watcha 

i do it but nothing change. and problem don't solve


azarbara
  • azarbara
  • 86% (Honored)
  • YAF Lover Topic Starter
10 years ago

I guess dnn didn't copy the dlls on installing, because the version numbers are the same as in the previous version. Try to extract all dlls from the install zip and copy them over to your bin folder.

Originally Posted by: azarbara 

i do it but nothing change. and problem don't solve

Originally Posted by: tha_watcha 

now i try to new install in dnn7.2.1 but the previous problem accord and module doesn't install


azarbara
  • azarbara
  • 86% (Honored)
  • YAF Lover Topic Starter
10 years ago
Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader YAF Version: YAF 3.1.16
10 years ago
tha watcha is the best one for this, but he's also extremely busy.

I'll see if I can figure anything out if you can share two links please.

A link to the version of DNN that I can download and install.

A link to the version of YAF that I can download and install.

Both links that you yourself used please.

azarbara
  • azarbara
  • 86% (Honored)
  • YAF Lover Topic Starter
10 years ago

tha watcha is the best one for this, but he's also extremely busy.

I'll see if I can figure anything out if you can share two links please.

A link to the version of DNN that I can download and install.

A link to the version of YAF that I can download and install.

Both links that you yourself used please.

Originally Posted by: Zero2Cool 

YAF 

DNN 


tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago
sorry but i can't help you, all dlls in the Install Package are referencing the 2.1.0.0 Assembly. So there must be at least one old dll in your bin folder, or you have optimizeCompilations enabled in the web.config. and the Assemblies are not correctly updated in the runtime.

You can check that by deleting all YAF.... dlls in the bin folder try to run your application then copy the new ones over to the bin folder.

azarbara
  • azarbara
  • 86% (Honored)
  • YAF Lover Topic Starter
10 years ago

sorry but i can't help you, all dlls in the Install Package are referencing the 2.1.0.0 Assembly. So there must be at least one old dll in your bin folder, or you have optimizeCompilations enabled in the web.config. and the Assemblies are not correctly updated in the runtime.

You can check that by deleting all YAF.... dlls in the bin folder try to run your application then copy the new ones over to the bin folder.

Originally Posted by: tha_watcha 

i do this but this version of YAF doesn't install in new installed DNN.