Why do I get MEF errors in Compose and in Visual Studio's Output window that say

"An attempt was made to load a program with an incorrect format."

asked 12 Sep '10, 05:25

BSalita's gravatar image

BSalita
276131417
accept rate: 22%

edited 12 Sep '10, 05:26


This is due to mixing x86 and x64 assemblies. Apparently MEF doesn't handle mixed mode. The solution is to go into Visual Studio's Configuration Manager and create profiles for x86 for both SoapBox and your app. Then recompile all. There's an advantage to using x86 for some Visual Studio languages, such as VB.Net, because x86 has edit-and-continue feature whereas x64 does not.

link

answered 12 Sep '10, 05:26

BSalita's gravatar image

BSalita
276131417
accept rate: 22%

edited 12 Sep '10, 05:29

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×2
×2
×1
×1

Asked: 12 Sep '10, 05:25

Seen: 2,269 times

Last updated: 12 Sep '10, 05:29

powered by OSQA