fileloadexception

System.IO.FileLoadException when running C# program on a different computer

痞子三分冷 提交于 2019-12-07 16:18:10
问题 I am currently working on a C# WPF project which makes use of the MySQL.Data and System.Data.Sqlite dll as well as a couple of others. The project is a .Net 4 project which works without problems on my Development Machine. I create an MSI installer package and when I add the executable Visual Studio works out the dependencies and adds the required DLL's with the EXE. When I run the installer on my development machine everything works fine. However, when I copy the installer to a Blank Virtual

Could not load file or assembly Microsoft.Win32.Primitives, Version=4.0.0.0

Deadly 提交于 2019-12-07 07:32:41
问题 I am having problems running my web application. The project setup is ASP.NET Core web application (.NET Framework). I don't seem to get any Build error. The project doesn't just run. System.IO.FileLoadException: 'Could not load file or assembly 'Microsoft.Win32.Primitives, Version=4.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)' 回答1:

System.IO.FileLoadException when running C# program on a different computer

拈花ヽ惹草 提交于 2019-12-05 20:51:14
I am currently working on a C# WPF project which makes use of the MySQL.Data and System.Data.Sqlite dll as well as a couple of others. The project is a .Net 4 project which works without problems on my Development Machine. I create an MSI installer package and when I add the executable Visual Studio works out the dependencies and adds the required DLL's with the EXE. When I run the installer on my development machine everything works fine. However, when I copy the installer to a Blank Virtual machine with .Net Framework 3.5 and .Net Framework 4 installed the installer says that everything has

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

不问归期 提交于 2019-12-05 07:49:12
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 same problem and there is other questions and answers about this topic. But I tried many things, but

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

只谈情不闲聊 提交于 2019-11-30 20:32:24
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 foobar.Intranet.Logic.Data.UserDB.SelectByUserName(String userName) at foobar.Intranet.Logic.Info.User