Silverlight-C++;dll错误图像格式异常
我有一个从C++项目构建的dll。我在Silverlight项目中间接引用了这个dll(我的意思是,web项目引用了一个C#项目,而C#项目又使用了这个dll)。 现在,每次我构建Silverlight应用程序时,我都会得到这个Silverlight-C++;dll错误图像格式异常,silverlight,silverlight-4.0,badimageformatexception,Silverlight,Silverlight 4.0,Badimageformatexception,我有一个从C++项目构建的dll。我在Silverlight项目中间接引用了这个dll(我的意思是,web项目引用了一个C#项目,而C#项目又使用了这个dll)。 现在,每次我构建Silverlight应用程序时,我都会得到这个 Error 1 The "CreateRiaClientFilesTask" task failed unexpectedly. System.Web.HttpException (0x80004005): Could not load file or
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的引用,一切似乎都很好
我厌倦了两种不同的选择
很抱歉迟到了。下一次可以吗