I have a WPF / MVVM Light application targeting .net 4.6 and Dapper 1.50.4 I am using Visual Studio Pro 2017 to develop the application
This application was working, but I got a new computer and moved the development of this application to the new computer. When I try to run this application on my new computer I get the following error:
System.IO.FileLoadException: 'Could not load file or assembly 'Dapper, Version=126.96.36.199, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)'
The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified. Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll Running under executable C:\Users\jorda\...\bin\Debug\FTC_Application.exe --- A detailed error log follows. === Pre-bind state information === LOG: DisplayName = System.Windows, Version=188.8.131.52, Culture=neutral, PublicKeyToken=7cec85d7bea7798e (Fully-specified) LOG: Appbase = file:///C:/Users/jorda/.../bin/Debug/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = FTC_Application.exe Calling assembly : GalaSoft.MvvmLight, Version=184.108.40.20626, Culture=neutral, PublicKeyToken=e7570ab207bcb616. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Users\jorda\...\bin\Debug\FTC_Application.exe.Config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. LOG: Post-policy reference: System.Windows, Version=220.127.116.11, Culture=neutral, PublicKeyToken=7cec85d7bea7798e LOG: GAC Lookup was unsuccessful. LOG: Attempting download of new URL file:///C:/Users/jorda/.../bin/Debug/System.Windows.DLL. LOG: Attempting download of new URL file:///C:/Users/jorda/.../bin/Debug/System.Windows/System.Windows.DLL. LOG: Attempting download of new URL file:///C:/Users/jorda/.../bin/Debug/System.Windows.EXE. LOG: Attempting download of new URL file:///C:/Users/jorda/.../bin/Debug/System.Windows/System.Windows.EXE. LOG: All probing URLs attempted and failed.
Something is clearly related to moving this solution to another computer, but I am not sure where to track it down.
Can someone help me figure out why I am getting this error when calling dapper in my project, or help me fix it?
thanks in advance
So I did not realize that there is a Strongly-Named and non named version of dapper. Truth is I did not know a lot about signed assemblies.