我有一个我用C ++项目构建的DLL。我间接在Silverlight项目中引用了这个dll(我的意思是,web项目引用了一个C#项目,后者又使用了这个dll)。 现在,每当我构建我的Silverlight应用程序时,我都会得到这个
Error 1 The "CreateRiaClientFilesTask" task failed unexpectedly.
System.Web.HttpException (0x80004005): Could not load file or assembly 'MyDll' or one of its dependencies. An attempt was made to load a program with an incorrect format. ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'MyDll' or one of its dependencies. An attempt was made to load a program with an incorrect format. ---> System.BadImageFormatException: Could not load file or assembly 'MyDll' or one of its dependencies. An attempt was made to load a program with an incorrect format.
我的silverlight web项目引用其他C#项目没有任何问题。如果我删除对C ++ DLL的引用,一切似乎都没问题。
我厌倦了两种不同的选择
(Am Silverlight 5)
有人可以帮我理解发生了什么吗?
由于 ķ