Can't register VSS Provider COM+ dll object on x64  
Author Message
Idan Avisar





PostPosted: 64-Bit .NET Framework Development., Can't register VSS Provider COM+ dll object on x64 Top

I have a pair of binaries that implement the VSS Requestor (an executable) and Provider (a dll).
The Volume Shadow Copy Service (VSS) is a set of COM interfaces that implements a framework to allow volume backups to be performed while applications on a system continue to write to the volumes. (taken from
http://www.hide-link.com/ )

The requestor initiates the process, the vss framework then loads the provider.

Everything works fine on an x86 platform. We now wish to have it run on x64 as well (aka AMD64, WOW64. Not IA64).

The executable itself runs w/o any problems on the x64. However, the dll doesn't register properly. The registration is done using the script register_app.vbs that is supplied with windows SDK.
The following line in the script fails:

Dim cat

cat = CreateObject("COMAdmin.COMAdminCatalog")
...
cat.InstallComponent ProviderName, ProviderDLL , "", ""


The error output is:
Creating a new COM+ application:
- Creating the catalog object
- Get the Applications collection
- Populate...
- Add new application object
- Set app name = MyVssProvider
- Set app description = My VSS 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: (4)
* (COM+ ERROR 0) on C:\MyVssProvider\MyVssProvider.dll
ErrorCode: -2146368460 [0x80110434]
MajorRef:
C:\MyVssProvider\MyVssProvider.dll
MinorRef: <invalid>
* (COM+ ERROR 1) on
C:\MyVssProvider\MyVssProvider.dll
ErrorCode: -2146368486 [0x8011041A]
MajorRef:
C:\MyVssProvider\MyVssProvider.dll
MinorRef: <invalid>
* (COM+ ERROR 2) on CompReg
ErrorCode: -2146368486 [0x8011041A]
MajorRef: {E9C6785B-5FB5-43FB-B139-3F2298F912F2}
MinorRef: <invalid>
* (COM+ ERROR 3) on MyProvider
ErrorCode: -2146368486 [0x8011041A]
MajorRef: {F46BAEBE-8F89-4A04-A7A0-2C300E63DCB2}
MinorRef: <invalid>
installation completed with bad exit code 113



What's the problem Is it necessary to recompile the project in 64 bit (I've been trying that unsuccessfully too...)

Thanks,
Idan



.NET Development6