Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.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
C# 在sharepoing 2010中运行互操作COM_C#_.net_Sharepoint_Com - Fatal编程技术网

C# 在sharepoing 2010中运行互操作COM

C# 在sharepoing 2010中运行互操作COM,c#,.net,sharepoint,com,C#,.net,Sharepoint,Com,我有一个Com组件DLL,我使用Regsvr32.exe在SysWOW64中注册它 我制作了一个示例Windows应用程序来检查组件的功能,它工作得很好,我只需将平台目标更改为x86,因为如果我选择任何CPU或x64,它会引发以下异常: Retrieving the COM class factory for component with CLSID {00853A19-BD51-419B-9269-2DABE57EB61F} failed due to the following error:

我有一个Com组件DLL,我使用Regsvr32.exe在SysWOW64中注册它

我制作了一个示例Windows应用程序来检查组件的功能,它工作得很好,我只需将平台目标更改为x86,因为如果我选择任何CPU或x64,它会引发以下异常:

Retrieving the COM class factory for component with CLSID {00853A19-BD51-419B-9269-2DABE57EB61F} failed due to the following error: 80040154.
不管怎样,当我将目标平台更改为x86时,这对我来说都不是问题,但当我将该DLL与SharePoint 2010集成时,问题就出现了,因为大家都知道SharePoint必须在x64平台上下文中运行,所以再次引发相同的异常,我不知道如何解决这个问题,所以我回到我的示例应用程序,将平台目标更改为x64,以尝试产生相同的问题,现在我试图找到另一种方法来解决它,而不将平台目标更改为x86

有什么帮助吗