{"action":"created","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/918","labels_url":"https://api.github.com/repos/NLog/NLog/issues/918/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/918/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/918/events","html_url":"https://github.com/NLog/NLog/issues/918","id":107279209,"number":918,"title":"Updating to 4.1.1 from 4.1.0 via NuGet Causes Errors","user":{"login":"jblacker","id":726152,"avatar_url":"https://avatars.githubusercontent.com/u/726152?v=3","gravatar_id":"","url":"https://api.github.com/users/jblacker","html_url":"https://github.com/jblacker","followers_url":"https://api.github.com/users/jblacker/followers","following_url":"https://api.github.com/users/jblacker/following{/other_user}","gists_url":"https://api.github.com/users/jblacker/gists{/gist_id}","starred_url":"https://api.github.com/users/jblacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jblacker/subscriptions","organizations_url":"https://api.github.com/users/jblacker/orgs","repos_url":"https://api.github.com/users/jblacker/repos","events_url":"https://api.github.com/users/jblacker/events{/privacy}","received_events_url":"https://api.github.com/users/jblacker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T21:10:58Z","updated_at":"2015-09-18T21:26:08Z","closed_at":null,"body":"I'm not completely sure if this is an isolated incident, but as soon as I updated from 4.1.0 to 4.1.1 via NuGet I received a \"Could not load file or assembly 'NLog' or one of its dependencies\" error message.  I do have the NLog.Web package installed (this is a ASP.NET MVC application).  I attempted to remove all NLog packages.  Reinstall all of them, only have the main NLog package, and even attempted to revert to the 4.1.0 package without NLog.Web, but alas nothing has seemed to resolve it.  Any idea what may cause this, or is this potentially an issue with how it's currently loaded on NuGet?  Everything was working swimmingly prior to the update.\r\n\r\nHere's the full Message:\r\n```\r\nServer Error in '/' Application.\r\n\r\nCould not load file or assembly 'NLog' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\n\r\nDescription: 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. \r\n\r\nException Details: System.IO.FileLoadException: Could not load file or assembly 'NLog' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\n\r\nSource Error: \r\n\r\nAn 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.\r\n\r\nAssembly Load Trace: The following information can be helpful to determine why the assembly 'NLog' could not be loaded.\r\n\r\n\r\n=== Pre-bind state information ===\r\nLOG: DisplayName = NLog\r\n (Partial)\r\nWRN: Partial binding information was supplied for an assembly:\r\nWRN: Assembly Name: NLog | Domain ID: 17\r\nWRN: A partial bind occurs when only part of the assembly display name is provided.\r\nWRN: This might result in the binder loading an incorrect assembly.\r\nWRN: It is recommended to provide a fully specified textual identity for the assembly,\r\nWRN: that consists of the simple name, version, culture, and public key token.\r\nWRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.\r\nLOG: Appbase = file:///C:/Users/jblacker/Development/DigiscribePCS/DigiscribePCS/\r\nLOG: Initial PrivatePath = C:\\Users\\jblacker\\Development\\DigiscribePCS\\DigiscribePCS\\bin\r\nCalling assembly : (Unknown).\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: Using application configuration file: C:\\Users\\jblacker\\Development\\DigiscribePCS\\DigiscribePCS\\web.config\r\nLOG: Using host configuration file: C:\\Users\\jblacker\\Documents\\IISExpress\\config\\aspnet.config\r\nLOG: Using machine configuration file from C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\config\\machine.config.\r\nLOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).\r\nLOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/vs/590cb163/b09c6c64/NLog.DLL.\r\nLOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/vs/590cb163/b09c6c64/NLog/NLog.DLL.\r\nLOG: Attempting download of new URL file:///C:/Users/jblacker/Development/DigiscribePCS/DigiscribePCS/bin/NLog.DLL.\r\nLOG: Using application configuration file: C:\\Users\\jblacker\\Development\\DigiscribePCS\\DigiscribePCS\\web.config\r\nLOG: Using host configuration file: C:\\Users\\jblacker\\Documents\\IISExpress\\config\\aspnet.config\r\nLOG: Using machine configuration file from C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\config\\machine.config.\r\nLOG: Redirect found in application configuration file: 4.1.0.0 redirected to 4.1.1.0.\r\nLOG: Post-policy reference: NLog, Version=4.1.1.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c\r\nLOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/vs/590cb163/b09c6c64/NLog.DLL.\r\nLOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/vs/590cb163/b09c6c64/NLog/NLog.DLL.\r\nLOG: Attempting download of new URL file:///C:/Users/jblacker/Development/DigiscribePCS/DigiscribePCS/bin/NLog.DLL.\r\nWRN: Comparing the assembly name resulted in the mismatch: Build Number\r\nERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.\r\n\r\nStack Trace: \r\n\r\n\r\n[FileLoadException: Could not load file or assembly 'NLog' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]\r\n\r\n[FileLoadException: Could not load file or assembly 'NLog, Version=4.1.1.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]\r\n   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0\r\n   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210\r\n   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242\r\n   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17\r\n   System.Reflection.Assembly.Load(String assemblyString) +35\r\n   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122\r\n\r\n[ConfigurationErrorsException: Could not load file or assembly 'NLog, Version=4.1.1.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]\r\n   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +12496980\r\n   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +499\r\n   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +131\r\n   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +331\r\n   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +148\r\n   System.Web.Compilation.BuildManager.ExecutePreAppStart() +172\r\n   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151\r\n\r\n[HttpException (0x80004005): Could not load file or assembly 'NLog, Version=4.1.1.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]\r\n   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12618692\r\n   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159\r\n   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12458309\r\n```"},"comment":{"url":"https://api.github.com/repos/NLog/NLog/issues/comments/141572980","html_url":"https://github.com/NLog/NLog/issues/918#issuecomment-141572980","issue_url":"https://api.github.com/repos/NLog/NLog/issues/918","id":141572980,"user":{"login":"304NotModified","id":5808377,"avatar_url":"https://avatars.githubusercontent.com/u/5808377?v=3","gravatar_id":"","url":"https://api.github.com/users/304NotModified","html_url":"https://github.com/304NotModified","followers_url":"https://api.github.com/users/304NotModified/followers","following_url":"https://api.github.com/users/304NotModified/following{/other_user}","gists_url":"https://api.github.com/users/304NotModified/gists{/gist_id}","starred_url":"https://api.github.com/users/304NotModified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/304NotModified/subscriptions","organizations_url":"https://api.github.com/users/304NotModified/orgs","repos_url":"https://api.github.com/users/304NotModified/repos","events_url":"https://api.github.com/users/304NotModified/events{/privacy}","received_events_url":"https://api.github.com/users/304NotModified/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T21:26:08Z","updated_at":"2015-09-18T21:26:08Z","body":"Yes it's too bad somethings we cannot prevent easily. The problem is  described at http://nlog-project.org/2015/09/12/nlog-4-1-1-has-been-released.html\r\n\r\nTl;dr\r\nRemove  `<bindingRedirect>` from your `.config`"}}