我的系统上有这个 DataLink DLL - Interop.MSDASC.dll我正在尝试像这样从 Powershell 加载它 -
[Reflection.Assembly]::LoadFile("C:\Interop.MSDASC.dll") | out-null
但是,我收到以下错误 -
Exception calling "LoadFile" with "1" argument(s): "Could not load file or assembly 'Interop.MSDASC.dll' or one of its dependencies. is not a
valid Win32 application. (Exception from HRESULT: 0x800700C1)"
At line:1 char:32
+ [Reflection.Assembly]::LoadFile <<<< ("C:\Interop.MSDASC.dll") | out-null
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
如何正确加载它?