YAFLogo

cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2021-10-05T21:10:29Z
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.1
2021-10-06T01:43:38Z
What error are you getting? If you post the error then it would be possible to help you.
UserPostedImage
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2021-10-07T08:26:24Z
Its a Runtime error. 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.1
2021-10-07T10:16:41Z
Okay, and when you disable custom errors in the web.config via 

 customErrors mode="Off"

UserPostedImage
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2021-10-29T12:45:37Z
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.1
2021-10-29T14:09:19Z
I would assume that there is someting wrong with the web.config. Can you post the content of the web.config?
UserPostedImage
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2021-10-29T17:48:11Z
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
2021-10-29T18:12:44Z
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.1
2021-10-30T09:43:57Z
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>

UserPostedImage
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2021-10-30T20:00:04Z
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.1
2021-10-30T22:40:33Z
To which version do you upgrade?
UserPostedImage
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2021-10-30T23:09:15Z
2.2.2 => v2.3.1.16
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2021-10-30T23:37:51Z
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.1
2021-10-31T00:15:15Z
Did you download the upgrade package, or the the source code from the master branch?
UserPostedImage
cbirchy87
  • cbirchy87
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2021-10-31T07:35:46Z
Used the upgrade pack