.NET - Context.Init throws exception when used with dependency injecetion

,

I think we found out a fix to the issue. Though I am still a bit confused as to why it threw the exception in this part of the application.

I went to
Tools > Options > Projects and Solutions > Web Projects
and checked
Use the 64 bit version of IIS Express for web sites and projects

This just worked and I am not really sure why.
Found this fix here: https://stackoverflow.com/questions/5229310/system-badimageformatexception-could-not-load-file-or-assembly

Not even sure if it was an error with Solace per se, just happened to be where this occurred maybe?