在SharePoint上64位的32位二进制文​​件,试图用不正确的格式加载程序 [英] 32bit binaries on sharepoint 64bit, An attempt was made to load a program with an incorrect format

查看:185
本文介绍了在SharePoint上64位的32位二进制文​​件,试图用不正确的格式加载程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多的SharePoint Web部件等所有这一切都被编译为任何CPU,他们在32位的SharePoint运行良好,但移动到Windows Server 2008在64位导致以下错误:

  

这是试图用不正确的格式加载程序。 (从HRESULT异常:0x8007000B)

这是我的阅读,他们都应该工作正常?

解决方案
  1. 在64位进程无法加载32位DLL,反之亦然。
  2. 在IIS是在64位硬件的64位程序。它可以配置单独的 应用程序池运行32位,但...
  3. 的Sharepoint是最有可能运行64位。

因此​​,你的组件及其所有相关组件和DLL必须运行64位。

请注意标记为任何CPU将在64位硬件的64位运行的.NET程序集。任何原生的DLL,但是,将需要本地编译为64位。

I have a lot of sharepoint web parts etc all of which are compiled for any cpu, they run fine on 32bit sharepoint but moving to server 2008 in 64bit causes the following error:

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

From my reading they should all work fine?

解决方案

  1. 64-bit processes cannot load 32-bit DLLs and vice versa.
  2. IIS is a 64-bit process on 64-bit hardware. It's possible to configure individual application pools to run 32-bit, but ...
  3. Sharepoint is most likely to be running 64-bit.

Therefore, your assemblies and all of their dependent assemblies and DLLs will have to run 64-bit.

Note that .NET assemblies that are marked as "Any CPU" will run as 64-bit on 64-bit hardware. Any native DLLs, however, will need to be compiled natively as 64-bit.

这篇关于在SharePoint上64位的32位二进制文​​件,试图用不正确的格式加载程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆