我一直在尝试按照说明安装Windows SDK附带的示例VSS硬件提供程序。不幸的是,COM拒绝注册DLL,给出了以下输出:
Unregistering the existing application...
- Create the catalog object
- Get the Applications collection
- Populate...
- Search for VssSampleProvider application...
- Saving changes...
Done.
Creating a new COM+ application:
- Creating the catalog object
- Get the Applications collection
- Populate...
- Add new application object
- Set app name = VssSampleProvider
- Set app description = VSS HW Sample Provider
- Set app access check = true
- Set encrypted COM communication = true
- Set secure references = true
- Set impersonation = false
- Save changes...
- Create Windows service running as Local System
- Add the DLL component
ERROR:
- Error code: -2146368511 [0x80110401]
- Exit code: 113
- Description:
- Source:
- Help file:
- Help context: 0
- COM+ Errors detected: (2)
* (COM+ ERROR 0) on C:\VssSampleProvider\VssSampleProvider.dll
ErrorCode: -2146368486 [0x8011041A]
MajorRef: C:\VssSampleProvider\VssSampleProvider.dll
MinorRef: invalid
* (COM+ ERROR 1) on SampleProvider
ErrorCode: -2146368486 [0x8011041A]
MajorRef: {423BBC78-9B20-4BBE-A967-B63EC43BC7F3}
MinorRef: invalid
这与此线程中描述的问题相同:
http://www.osronline.com/showthread.cfm?link=185213
我尝试过使用x86和x64两种机器,但都没有区别。任何提示或建议都是非常受欢迎的。
发布于 2013-08-27 20:10:03
我最终设法解决了这个问题。原来你只能在windows服务器发行版上安装硬件提供程序,我使用的是普通的Windows 7。API调用请参见MSDN页面:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa381923(v=vs.85).aspx
在windows server 2012机器上编译64位并使用64位工具和SDK,它似乎可以正常工作。
发布于 2014-08-04 16:23:06
这需要msvcr110.dll和msvcp110.dll。这些文件附带了“Visual C++ Redistributable Packages”。你可以在下面的链接中获得最新的'Visual C++ Redistributable Packages‘。http://www.microsoft.com/en-in/download/details.aspx?id=40784
https://stackoverflow.com/questions/18384896
复制相似问题