YAFLogo

cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2 years ago
I have tried to follow the guide
https://github.com/YAFNET/YAFNET/wiki/Upgrade-(from-Version-1.9.5.5-or-above) 
but I get a run time error when loading into my forum. Some on the lines it asked me to change are not in my web.config. I also just tried using the included one and renamed to web.config
Any help would be great!
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
2 years ago
What error are you getting? If you post the error then it would be possible to help you.
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2 years ago
Its a Runtime error. 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
2 years ago
Okay, and when you disable custom errors in the web.config via 

 customErrors mode="Off"
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2 years ago
Hi There, sorry for the long reply. with custom error off I get 
"The page cannot be displayed because an internal server error has occurred."

 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
2 years ago
I would assume that there is someting wrong with the web.config. Can you post the content of the web.config?
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2 years ago
Sorry I couldn't get the code to post correctly. 

https://we.tl/t-ErNwui0WHh Â - Download link to the web.config

Getting a little futher, just getting "Parser Error Message: Required attribute 'tagPrefix' not found." now.

Thanks for the help 🙂
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2 years ago
Slight update 

[FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.] YAF.Core.TaskModule.Init(HttpApplication httpApplication) +0 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +552 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +181 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +228 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +314 [HttpException (0x80004005): Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10087352 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +99 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +263
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
2 years ago
Does it work when you add the assembly to the list 

 <compilation debug="false" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"/>
      </assemblies>
    </compilation>
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2 years ago
ooo slightly further. now getting

[FileLoadException: Could not load file or assembly 'Microsoft.Owin.Security.Cookies, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] [FileLoadException: Could not load file or assembly 'Microsoft.Owin.Security.Cookies, Version=4.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] YAF.Core.Context.Start.Startup.ConfigureAuth(IAppBuilder app) +0 YAF.Core.Context.Start.Startup.Configuration(IAppBuilder app) +5

I does appear the DLL versions in the bin are different from what is being ref'ed in the web.config


Thanks for the support so far. 🙂
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
2 years ago
To which version do you upgrade?
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2 years ago
2.2.2 => v2.3.1.16
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2 years ago
A bit further on, the forum went through the upgrade. But I am now getting

[code=markup]Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1061: 'ASP.dialogs_loginbox_ascx' does not contain a definition for 'FacebookRegisterClick' and no extension method 'FacebookRegisterClick' accepting a first argument of type 'ASP.dialogs_loginbox_ascx' could be found (are you missing a using directive or an assembly reference?) Source Error: Line 77: Line 78: Line 79:
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
2 years ago
Did you download the upgrade package, or the the source code from the master branch?
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2 years ago
Used the upgrade pack 
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
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