fileloadexception

Updating a DLL in a Production ASP.NET Web Site bin folder

我的未来我决定 提交于 2020-08-21 06:15:27
问题 I want to update a class library (a single DLL file) in a production web application. This web app is pre-compiled (published). I read an answer on StackOverflow (sorry, can't seem to find it anymore because the Search function does not work very well), that led me to believe that I could just paste the new DLL in the bin folder and it would be picked up without problems (this would cause the WP to recycle, which is fine with me because we do not use InProc session state). However, when I

NinjectControllerFactory FileLoadException Error

谁说胖子不能爱 提交于 2020-01-06 15:19:09
问题 I tried create just example porject and I want use Ninject.I create NinjectControllerFactory.cs like this using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Ninject; using System.Web.Routing; using Moq; using System.Linq; using SportStore.Domain.Entities; using SportStore.Domain.Abstract; using System.Collections.Generic; using SportStore.Domain.Concrete; namespace SportStore.WebUI.Infrastructure { public class

System.IO.FileLoadException: Could not load file or assembly Log4net

我只是一个虾纸丫 提交于 2020-01-02 04:03:10
问题 I added an existing project to my solution. When I run all unit tests with MSTest runner, I get the following error on a couple of tests: Message: Test method soandso threw exception: System.IO.FileLoadException: Could not load file or assembly 'log4net, Version 1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' or one of it's dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:0x80131040) I know others have had the

System.IO.FileLoadException: Could not load file or assembly Log4net

允我心安 提交于 2020-01-02 04:03:07
问题 I added an existing project to my solution. When I run all unit tests with MSTest runner, I get the following error on a couple of tests: Message: Test method soandso threw exception: System.IO.FileLoadException: Could not load file or assembly 'log4net, Version 1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' or one of it's dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:0x80131040) I know others have had the

Why do I get System.IO.FileLoadException: Could not load file or assembly, about once a week on my ASP.Net Website?

孤街醉人 提交于 2019-12-30 06:46:34
问题 I have a rather simple internal ASP.Net Website that has issues loading the Microsoft.Practices.EnterpriseLibrary.Data dll about once a week. Here is the Exception message: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied. File name: 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' at

Why do I get System.IO.FileLoadException: Could not load file or assembly, about once a week on my ASP.Net Website?

∥☆過路亽.° 提交于 2019-12-30 06:46:10
问题 I have a rather simple internal ASP.Net Website that has issues loading the Microsoft.Practices.EnterpriseLibrary.Data dll about once a week. Here is the Exception message: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied. File name: 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' at

Assembly Version numbers, signed assemblies Why do I get a FileLoadExceptions

只愿长相守 提交于 2019-12-24 00:48:27
问题 My Problem: I have a signed assembly A.dll that it versioned as 1.0.0.0 I have another assembly (lets say B.dll) that references A.dll. Once both assemblies both assemblies load fine without any problem. Now if the version for A.dll changes to 1.0.0.1 and is recompiled Does B.dll have to be recompiled? I asking because I have this exact scenario where after A.dll had it's version changed I now receive the following Exception trying to load B.dll: Unhandled Exception: System.IO

System.Net.Http NuGet package 4.3.0 reference generates System.IO.FileLoadException on System.Diagnostics.DiagnosticSource ver 4.0.0.0 reference

只谈情不闲聊 提交于 2019-12-21 07:04:53
问题 Description of the problem: A shared library "shared.dll" project references System.Net.Http NuGet package 4.3.0. The application that references "shared.dll" fails with System.IO.FileLoadException Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at System.Net

FileLoadException with new version of dll

只愿长相守 提交于 2019-12-11 16:38:08
问题 I have an application that needs to work with two versions of a dll. I figured I would just compile the app once, copy the exe to two directories, and then copy the two versions of the dlls to each of these directories. FYI, I'm not doing anything with the GAC. However, I'm getting a FileLoadException on the version with the dll it was not compiled with. In the project, I have the "Specific Version" set to false for the dll reference. But, maybe that is the wrong setting. How do I get this to

SharpSVN and C# Problem

一笑奈何 提交于 2019-12-08 16:05:13
问题 When trying to add SharpSVN to my C# project, compiling with SharpSVN related calls gives me this error: FileLoadException was Unhandled Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. What I did was add the References from the downloaded SharpSVN zip file and added the using SharpSvn; When I compile that it works fine, but when I add: string targetPath = "https://bobl/svn