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 and found a neat solution in c#; 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; 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,, WPF|0 Comments