x64 OS vs x86 project

Aug 17, 2012 at 1:33 PM

Hello.

I get an UnexpectedException, when I run

var backupComponents = AlphaShadow
.VssClient
.Implementation
.CreateVssBackupComponents();
backupComponents.InitializeForBackup(null);

My OS is x64, and the project is x86.

What can be the problem? Can I make my code work?

Many thanks in advance.

Coordinator
Aug 17, 2012 at 4:31 PM

There are some stuff mentioned about using VSS as an x86 application on an x64 OS over on MSDN, but the basic conclusion I drew from it is that this does not work. So make your application x64 on an x64 system and things ought  to work better,

Aug 17, 2012 at 5:31 PM
decaf wrote:

There are some stuff mentioned about using VSS as an x86 application on an x64 OS over on MSDN

Thank you! Could you share the link, please?

Sadly, I can't make it "x64 on an x64 system". Maybe there is some workaround?

Coordinator
Aug 17, 2012 at 5:56 PM

To qoute from MSDN:

Windows Server 2003 and Windows XP:  Running 32-bit VSS requesters under WOW64 is supported, but not for system-state backups. Running 32-bit VSS providers and writers under WOW64 is not supported. Support for running 32-bit requesters under WOW64 was removed in Windows Vista and subsequent versions.

So you cannot run a VSS requester under WOW64 (i.e. a 32-bit application running on a 64-bit system) on a Windows version later than Windows XP.

Aug 20, 2012 at 6:12 AM

Thank you!