Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

License Server 5.2.2 Throwing Exceptions
GlobalConcepts
#1 Posted : Friday, July 24, 2026 6:54:40 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 2/7/2013(UTC)
Posts: 58
Location: Germany

Thanks: 7 times
Was thanked: 6 time(s) in 6 post(s)
After 5.22 was released this week I've also tried to upgrad our License Server.
I usally just pick the content of the .zip File and copy it into the existing Directory under "inetpub".
But the new version crashed with the following error while 5.21 still would work.

Quote:

Server Error in '/' Application.
Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' 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 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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:


[FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +0
System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +52
System.Web.Http.HttpConfiguration.DefaultFormatters() +29
System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +60
System.Web.Http.GlobalConfiguration.<.cctor>b__0() +77
System.Lazy`1.CreateValue() +734
System.Lazy`1.LazyInitValue() +189
NCrunch.LicenseServer.Web.MvcApplication.Application_Start() +53

[HttpException (0x80004005): Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +546
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +171
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +255
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +347

[HttpException (0x80004005): Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +737

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4797.0


The "Newtonsof.JSON" exists but got updated from 4.5 to 13.0.x which now causes problems.
After copying the old file version from the 5.21 backup the 5.22 also works.
Remco
#2 Posted : Friday, July 24, 2026 10:35:11 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,576

Thanks: 1036 times
Was thanked: 1394 time(s) in 1293 post(s)
Thanks for the heads up here. v5.22 cleaned up the versioning for this dependency so that it was consistent. It wasn't supposed to affect the license server. Good job in finding a workaround. Note that the v5.21 license server is compatible as the licensing system hasn't changed. I'll note this down to get fixed in the next build.
1 user thanked Remco for this useful post.
GlobalConcepts on 7/24/2026(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.030 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download