I am adding Exceptionless to my WebForms application via nuget. The application compiles but I get a runtime error when visiting a page:
Could not load file or assembly 'Exceptionless.Portable, Version=3.1.1416.0, Culture=neutral, PublicKeyToken=fc181f0a46f65747' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
The issue is 3.1.1416.0
. It shouldn't be trying to load this version as I am currently using version 3.2.1424.0
. I've checked web.config and no runtime reassignment exists.
My web.config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="exceptionless" type="Exceptionless.ExceptionlessSection, Exceptionless.Extras" />
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
</configSections>
....
<exceptionless apiKey="***********" enabled="true" />
....
<system.webServer>
<modules>
<add name="ExceptionlessModule" type="Exceptionless.Web.ExceptionlessModule, Exceptionless.Web" />
</modules>
</system.webServer>
</configuration>
Where is my application picking up 3.1.1416.0
from?
- Checked
web.config
(see above) - Checked versions of all Exceptionless References Assemblies:
Exceptionless.Extras
,Exceptionless.Portable
,Exceptionless.Web
. All are at version3.2.1424.0
. - Checked IISExpress configuration files
applicationhost.config
,redirection.config
,aspnet.config
- Done a "Search in Files" (*.*) for version number - nothing!
Assembly Load Trace is as follows (which as you can see refers only to the incorrect assembly version:
=== Pre-bind state information ===
LOG: DisplayName = Exceptionless.Portable, Version=3.1.1416.0, Culture=neutral, PublicKeyToken=fc181f0a46f65747
(Fully-specified)
LOG: Appbase = file:///C:/TFS/DALS/Main/Source/Core/StaffPages/
LOG: Initial PrivatePath = C:\TFS\DALS\Main\Source\Core\StaffPages\bin
Calling assembly : DerbyLib, Version=2.2.5855.29039, Culture=neutral, PublicKeyToken=cfdbfaae31cae294.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\TFS\DALS\Main\Source\Core\StaffPages\web.config
LOG: Using host configuration file: C:\Users\Chris\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Exceptionless.Portable, Version=3.1.1416.0, Culture=neutral, PublicKeyToken=fc181f0a46f65747
LOG: Attempting download of new URL file:///C:/Users/Chris/AppData/Local/Temp/Temporary ASP.NET Files/vs/ec9388cd/d1727d5c/Exceptionless.Portable.DLL.
LOG: Attempting download of new URL file:///C:/Users/Chris/AppData/Local/Temp/Temporary ASP.NET Files/vs/ec9388cd/d1727d5c/Exceptionless.Portable/Exceptionless.Portable.DLL.
LOG: Attempting download of new URL file:///C:/TFS/DALS/Main/Source/Core/StaffPages/bin/Exceptionless.Portable.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
Any thoughts? Thanks.