Engineering teams can learn from Human Factors in Aviation.Making Linux Samba shares visible to Windows hosts after WannaCry.International Women’s Day: Why Equity Matters.Programmatically clearing the ASP.Net cache for Web Forms and MVC pages.Migrating Diary of a Ninja to Azure Websites and SQL Azure.Sorrow and Elation – Why Reflection Isn't Always Your Friend.Html.AntiForgeryToken – Balancing Security with Usability.Who said building Visual Studio Extensions was hard?.Run Sonic.exe however you like (i use the visual studio extra’s way as outlined here) and your done! Related posts: The library used by subsonic is stored in the same folder as the sonic.exe, if you originally used the Subsonic 2.1 Installer this will but the library in one of the following locations (if not it will be in the folder you put it in):Ĭ:\Program Files (x86)\Subsonic\SubCommander\Īll you need to do is replace the file with the one from the 64bit version of the build folder in the zip you downloaded. Your first step should be to go and download a copy of the 1.0.60 build of the library.Īt the time of writing it can be found here and you want to get the SQLite-1.0.60.0-binaries.zip: This makes the fix a simple one: simply replace the version in your sonic.exe folder with a 64bit one. Well the issue in this instance is the fact that the version that is packaged with Subsonic is a 32bit version. To turn this feature off, remove the registry value. Note: There is some performance penalty associated with assembly bind failure logging. To enable assembly bind failure logging, set the registry value (DWORD) to 1. WRN: Assembly binding logging is turned OFF. ERROR: Trying to execute generateĮrror Message: System.BadImageFormatException: Could not load file or assembly ', Version=1.0.60.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies.Īn attempt was made to load a program with an incorrect format.įile name: ', Version=1.0.60.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'Īt ()Īt () in 902Īt () in 789Īt (String args) in 90 This works great in most instances, however if your library contains a reference to a library that is built specifically for only one and your library loads in a different platform to the one required by the reference, an exception will be thrown. Net libraries, if you don’t specify a single platform, by default Visual Studio will build for both. Now as anyone who builds for both 64bit and 32bit will tell you with. Subsonic does this by using the fantastic library that can be found – more specifically it uses the 32bit version 1.0.60 of the library. Subsonic is awesome because of the fact that it supports quite a few database types and SQLite is one of them. Subsonic’s sonic.exe was building my DAL perfectly on all my SQL databases but i have one lightweight service that uses a SQLite database for its persistence. So there i was happily coding away, loving my oober quick build times and that overall new machine feel when i hit upon this snag. While attempting to generate a new data layer for a SQLite database using Subsonic i received nothing but errors – Another simple fix which I'll show you in this post. Everything has run perfectly smoothly until i hit one weird little issue. Well this week i started work on my new development machine – a 64bit Windows 7 machine mmmm tasty.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |