Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Silverlight-C++;dll错误图像格式异常_Silverlight_Silverlight 4.0_Badimageformatexception - Fatal编程技术网

Silverlight-C++;dll错误图像格式异常

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

我有一个从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 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的引用,一切似乎都很好

我厌倦了两种不同的选择

  • 我构建了32位和64位的c++dll,但错误没有改变
  • 在构建c++dll时,我将.net配置文件更改为客户端版本,但仍然没有更改
  • (银光5号上午10时)

    有人能帮我理解发生了什么事吗

    谢谢
    很抱歉迟到了。下一次可以吗