SGEN: Mixed mode assembly is built against version ‘v2.0.50727’…

I found while building an VB application in Visual Studio 2012, in release mode for the first time, that I was confronted with cryptic build error; SGEN: 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. After trawling through some Google [...]

By |2016-03-01T15:18:00+00:00June 7th, 2013|.Net Framework, Bugs, Tips, Visual Studio, XML|0 Comments

Binding the WPF WebBrowser Source Property

In an MVVM application I am currently creating, I had the need to embed the WPF WebBrowser control and quickly discovered that the Source Property is not a dependancy object, and so cannot be bound. I quickly search around on StackOverflow.com and found a neat solution in c#; http://stackoverflow.com/a/265648/1305169 The VB Version of which is; [...]

Unable to open Database .SQL Files in Visual Studio 2012 Update 1 and onwards

This morning I attempted to open a .SQL file in my Visual Studio 2012 Update 2 installation, and was faced with the following Message Box; Clicking the “Learn more…” link took me to a “Page Not Found” page, which wasn’t very handy. A quick search on StackOverflow and I found; http://stackoverflow.com/questions/15798422/what-about-sql-server-data-tools-for-vs2012-being-incompatible-with-sql-server-2 With a helpful answer [...]

WPF – Programmatically Adding Buttons the MVVM Way

I recently came across a requirement to Programmatically Add Buttons to a WPF View in my MVVM based app. Obviously this is not entirely trivial as each Button must contain the correct Bindings to interact with the underlying ViewModel. The way I tackled this was to use an ItemsControl, with a Canvas Control in the [...]

By |2013-03-26T17:46:00+00:00March 26th, 2013|.Net Framework, Binding, MVVM, VB.net, WPF|0 Comments