YAFLogo

eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 years ago
I'm having problems updating to YAF 2.3.1. I keep getting the error: Could not load type 'YAF.Core.YafTaskModule' from assembly 'YAF.Core'.

I've done a search here and it seems that the error is a missing yaf.core assemblt but I do have that installed and up to date. Here is my web.config file. Any ideas?

path="Sitemap.xml"

verb="*"

type="YAF.Core.Handlers.SiteMapHandler, YAF.Core"

preCondition="integratedMode" />

path="FileUploader.ashx"

verb="*"

type="YAF.Core.Handlers.FileUploader, YAF.Core"

preCondition="integratedMode" />

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago
Change line (in the web.config)

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

to

  <add name="YafTaskModule" type="YAF.Core.TaskModule, YAF.Core" />
eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 years ago
Done. Now I get: Could not load file or assembly 'YAF.Types, Version=2.2.3.0, Culture=neutral, PublicKeyToken=8b49dc47f4701f66' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 years ago
PS. I checked the properties on the types.dll file and it does show as being 2.3.1.4 but for some reason the system is seeing it as 2.2.3.0.
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago
Did You download the wrong source package?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago
Also Check if you deleted all yaf... dlls before upgrade?!
eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 years ago
No, it was the one linked on the front page and yes, everything was deleted first.
eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 years ago
Okay, finally got it to work ... I added a few lines of code to my web.config that got it going:

Now it seems the only thing that is not working is the Admin and Host dropdown lists. Any ideas?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago
Well the binding redirects would be only needed if something oudside yaf is referencing it. So you should update those instead.

Regarding the menus check the browser console. Looks like the bootstrap js was not correctly loaded

eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 years ago
Actually, I think it may be a problem with the download you provided. Just for giggles, I took the download and uploaded it to a completely new site and when I tried to run it, I got this:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'YAF.Core, Version=2.3.1.4, 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)

Source Error:

Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="YAF.SampleWebApplication.Global" Language="C#" %>

Source File: /global.asax Line: 1

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago
Looks like i forgot to recompile the solution. I updated the download package. Re-Download the release or recompile the solution
eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 years ago
Completely deleted my test site, reset it, downloaded the new version into my new test site and got this:

Could not load type 'YAF.Core.YafTaskModule' from assembly 'YAF.Core'.

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.TypeLoadException: Could not load type 'YAF.Core.YafTaskModule' from assembly 'YAF.Core'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[TypeLoadException: Could not load type 'YAF.Core.YafTaskModule' from assembly 'YAF.Core'.]

System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0

System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +71

System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +41

System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +38

System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +67

System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +39

[ConfigurationErrorsException: Could not load type 'YAF.Core.YafTaskModule' from assembly 'YAF.Core'.]

System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +370

System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit) +22

System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +41

System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +44

System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +162

System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1120

System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +84

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 type 'YAF.Core.YafTaskModule' from assembly 'YAF.Core'.]

System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10080656

System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +99

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +263

eutychus
  • eutychus
  • 100% (Exalted)
  • YAF Lover Topic Starter
5 years ago
Okay, solved that problem. You still have the TaskModule listed as YAF TaskModule in your web.config code that comes with the download.
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago

Okay, solved that problem. You still have the TaskModule listed as YAF TaskModule in your web.config code that comes with the download.

Originally Posted by: eutychus 

Thanks, i updated the download again

hadzup
  • hadzup
  • 51.8% (Neutral)
  • YAF Forumling
5 years ago
Please, can you share the entire web.config?
Users browsing this topic