The Community is now in read-only mode to prepare for the launch of the new Flexera Community. During this time, you will be unable to register, log in, or access customer resources. Click here for more information.
After upgrading a FlexNet Manager Suite beacon to the 2020 R2.2 (16.2) release, agent logging may show HTTP 500 "internal server error" failures when attempting to upload and download data from the beacon.
For example:
[08/03/2021 10:38:58 (N, 0)] {4108} Downloading “http://beacon/ManageSoftDL/Policies/Merged/_domain/Machine/hostname.npl?machinename=hostname&ipaddress=10.23.45.67” to “C:\Windows\TEMP\NDL29503.npl” [08/03/2021 10:38:58 (G, 0)] {4108} Download failure: Error 0xE05001F4: 500 Internal Server Error [08/03/2021 10:38:58 (U, 0)] {4108} ERROR: Error (s107m857) [08/03/2021 10:38:58 (U, 0)] {4108} ---------------- [08/03/2021 10:38:58 (U, 0)] {4108} The web server or proxy from which ManageSoft is attempting to retrieve the application returned the following HTTP error message: Error 0xE05001F4: 500 Internal Server Error Contact your network administrator or the originating site's Webmaster for assistance. [08/03/2021 10:38:58 (N, 0)] {4108} Download FAILED for “http://beacon/ManageSoftDL/Policies/Merged/_domain/Machine/hostname.npl?machinename=hostname&ipaddress=10.23.45.67”
To further qualify this problem, logon to the beacon and browse to http://localhost/ManageSoftDL. A beacon affected by this problem will display a page reporting an error like either of the following:
Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies.
The Application event log on the beacon will also show errors like the following:
Process information: Process ID: 5428 Process name: w3wp.exe Account name: IIS APPPOOL\Flexera Beacon Exception information: Exception type: HttpException Exception message: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.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) at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)Could not load file or assembly 'Newtonsoft.Json, Version=6.0.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) at System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor() at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() at System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config) at System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) at System.Web.Http.GlobalConfiguration.<CreateConfiguration>b__0() at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Lazy`1.get_Value() at System.Web.Http.GlobalConfiguration.get_Configuration() at Flexera.Beacon.IISWeb.Global.Application_Start(Object sender, EventArgs e)
This problem occurs because the beacon upgrade process may not merge new assembly bindings into the beacon's web.config file.
Modify the C:\Program Files (x86)\Flexera Software\Inventory Beacon\DotNet\Web.config file on the beacon and replace the lines within the <assemblyBinding> element with the following:
<dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31BF3856AD364E35" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Http" publicKeyToken="31BF3856AD364E35" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-5.2.0.0" newVersion="5.2.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" /> </dependentAssembly>
After editing this file, restart Microsoft Internet Information Services (IIS) and the Beacon Engine Windows service.
This issue has been fixed in the following FlexNet Manager Suite releases: 2020 R2.3 / Apr 2021 (Cloud), 2021 R1 (On Premises)
Master issue ID: IOJ-2183358
Also known as: FNML-73099
Aug 16, 2021 02:28 AM - edited Jun 12, 2022 03:52 AM
@mcavanagh @ChrisG Hello, I just recently upgraded our beacons to 17.1.0, and we are now getting this error mentioned above when trying to test. Is this solution still correct? The version we are on for the cloud is FlexNet Manager Suite 2021 R1.2
https://scflexp01.proghsz.com/ManageSoftDL/test https://scflexp01.proghsz.com/ManageSoftRL/test And see if we can download the npl file manually as well. https://scflexp01.proghsz.com/ManageSoftDL/Policies/Merged/prog1.com_domain/Machine/nvi202110151405.npl
@shill2 - if you are seeing similar error messages when you do the suggested diagnostic steps then it is likely that an update to your Web.config file is required. I'm not sure whether the exact details specified in this article will apply to the version that you have - you could work it out by doing a clean install of the beacon software and checking the contents of the Web.config file that gets installed. You could do that an on existing beacon by uninstalling the beacon software, ensuring the C:\Program Files (x86)\Flexera Software\Inventory Beacon\DotNet\Web.config file does not exist, and re-installing the software.
This issue seems to have resurfaced with Beacon version 20.1.0.13. I had issue with policy downloads from ManageSoftDL after auto-upgrading the beacon. Completely reinstalling and reinstalling the Beacon using this version did not work (including deleting entire Inventory Beacon install folder having web.config and ManageSoftDL & RL pages from IIS).
I removed the Beacon completely as above and installed version 19.0.0.11 and the issue was fixed.
Yes, BeaconInstaller21.0.0.8.exe and I get the same error:
Server Error in '/ManageSoftDL' Application.
Could not load file or assembly 'Newtonsoft.Json, Version=6.0.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)
To fix this error in 2023R2, set newVersion correctly.
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
In D:\Program Files (x86)\Flexera Software\Inventory Beacon\DotNet\web.config