System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Could not load file or assembly ‘System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ 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 ‘System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ 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.
Assembly Load Trace: The following information can be helpful to determine why the assembly ‘System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///H:/TamweemWebsite/TamweemWebsite/
LOG: Initial PrivatePath = H:\TamweemWebsite\TamweemWebsite\bin
Calling assembly : Serilog.Sinks.Map, Version=1.0.2.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10.
LOG: This bind starts in default load context.
LOG: Using application configuration file: H:\TamweemWebsite\TamweemWebsite\web.config
LOG: Using host configuration file: C:\Users\subhakar\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: System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: Attempting download of new URL file:///C:/Users/subhakar/AppData/Local/Temp/Temporary ASP.NET Files/vs/1d486135/da02d15c/System.Runtime.DLL.
LOG: Attempting download of new URL file:///C:/Users/subhakar/AppData/Local/Temp/Temporary ASP.NET Files/vs/1d486135/da02d15c/System.Runtime/System.Runtime.DLL.
LOG: Attempting download of new URL file:///H:/TamweemWebsite/TamweemWebsite/bin/System.Runtime.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Major Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
Stack Trace:
[FileLoadException: Could not load file or assembly ‘System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Umbraco.Core.Logging.Serilog.<>c__DisplayClass3_0.b__0(LoggerSinkConfiguration asyncConfiguration) +0
Serilog.Configuration.LoggerSinkConfiguration.Wrap(LoggerSinkConfiguration loggerSinkConfiguration, Func2 wrapSink, Action
1 configureWrappedSink, LogEventLevel restrictedToMinimumLevel, LoggingLevelSwitch levelSwitch) +164
Serilog.LoggerConfigurationAsyncExtensions.Async(LoggerSinkConfiguration loggerSinkConfiguration, Action1 configure, IAsyncLogEventSinkMonitor monitor, Int32 bufferSize, Boolean blockWhenFull) +91 Umbraco.Core.Logging.Serilog.LoggerConfigExtensions.File(LoggerSinkConfiguration configuration, ITextFormatter formatter, String path, LogEventLevel restrictedToMinimumLevel, LoggingLevelSwitch levelSwitch, Nullable
1 fileSizeLimitBytes, Nullable1 flushToDiskInterval, RollingInterval rollingInterval, Boolean rollOnFileSizeLimit, Nullable
1 retainedFileCountLimit, Encoding encoding) +190
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments) +168
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture) +105
Serilog.Settings.KeyValuePairs.KeyValuePairSettings.ApplyDirectives(List1 directives, IList
1 configurationMethods, Object loggerConfigMethod, IReadOnlyDictionary2 declaredSwitches) +401 Serilog.Settings.KeyValuePairs.KeyValuePairSettings.Configure(LoggerConfiguration loggerConfiguration) +1813 Serilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings) +20 Serilog.Configuration.LoggerSettingsConfiguration.KeyValuePairs(IEnumerable
1 settings) +199
Serilog.Settings.AppSettings.AppSettingsSettings.Configure(LoggerConfiguration loggerConfiguration) +527
Serilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings) +20
Serilog.AppSettingsLoggerConfigurationExtensions.AppSettings(LoggerSettingsConfiguration settingConfiguration, String settingPrefix, String filePath) +112
Umbraco.Core.Logging.Serilog.LoggerConfigExtensions.ReadFromConfigFile(LoggerConfiguration logConfig) +70
Umbraco.Core.Logging.Serilog.SerilogLogger.CreateWithDefaultConfiguration() +40
Umbraco.Web.UmbracoApplication.GetRuntime() +13
Umbraco.Web.UmbracoApplicationBase.HandleApplicationStart(Object sender, EventArgs evargs) +28
Umbraco.Web.UmbracoApplicationBase.Application_Start(Object sender, EventArgs evargs) +34
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +475
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo handlers) +118
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo handlers, IntPtr appContext, HttpContext context) +176
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +220
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +659
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +189
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/107903-systemruntime-version-5000-culture-neutral-publickeytoken-b03f5f7f11d50a3a