Object reference not set to an instance of an object.

Oct 11, 2012 at 3:22 AM
Edited Oct 11, 2012 at 3:23 AM

Hi, I am getting this error from an Admin command prompt.  Am I doing something wrong?

C:\Utils\HVBackup>HVBackup.exe -a -o \\BACKUP\Volume_1\vmbackups
Cloudbase HyperVBackup 1.0 beta1
Copyright (C) 2012 Cloudbase Solutions Srl
http://www.cloudbasesolutions.com

Backing up all VMs on this server
Initializing VSS
Error: Object reference not set to an instance of an object.
   at Cloudbase.Titan.HyperV.Backup.BackupManager.BackupSubset(IDictionary`2 vmNamesMapSubset, String backupOutputPath, String backupOutputFormat) in c:\Devel\HyperVBackup\HyperVBackup\BackupManager.cs:line 117
   at Cloudbase.Titan.HyperV.Backup.BackupManager.VSSBackup(IEnumerable`1 vmNames, VMNameType nameType, String backupOutputPath, String backupOutputFormat, Boolean singleSnapshot) in c:\Devel\HyperVBackup\HyperVBackup\BackupManager.cs:line 87
   at Cloudbase.Titan.HyperV.Backup.CLI.Program.Main(String[] args) in c:\Devel\HyperVBackup\HyperVBackupApp\Program.cs:line 129

Feb 15, 2013 at 8:22 AM
Hi,

I have the same problem on Windows 8 Professional and Hyper-V.

Any help?

Thanks,

Ratko
Jun 16, 2013 at 7:44 PM
Same issue as above, running on Windows Server 2008 Standard w/ SP1 (NOT R2)
Sep 6, 2013 at 4:09 PM
Hi,

I have the same problem on Windows 8 Professional and Hyper-V.

Any ideas ?

Thanks

John
Oct 28, 2013 at 8:07 AM
Hi,
I have the same problem too,

anyone find something?

Thanks,

Beppe
Nov 7, 2013 at 1:08 PM
Same here with server 2012 R2. Although the error is different:
PS C:\HVBackup> .\hvbackup -a -o H:\
Cloudbase HyperVBackup 1.0 beta1
Copyright (C) 2012 Cloudbase Solutions Srl
http://www.cloudbasesolutions.com

Backing up all VMs on this server
Initializing VSS
Error: Object reference not set to an instance of an object.
   at Cloudbase.Titan.HyperV.Backup.BackupManager.BackupSubset(IDictionary`2 vmNamesMapSubset, String backupOutputPath,
String backupOutputFormat, Int32 compressionLevel)
   at Cloudbase.Titan.HyperV.Backup.BackupManager.VSSBackup(IEnumerable`1 vmNames, VMNameType nameType, String backupOut
putPath, String backupOutputFormat, Boolean singleSnapshot, Int32 compressionLevel)
   at Cloudbase.Titan.HyperV.Backup.CLI.Program.Main(String[] args)
Nov 8, 2013 at 7:52 AM
I had the same issue and the following KB fix my issue
2008 R2

http://support.microsoft.com/kb/959962/en-gb
Nov 8, 2013 at 12:58 PM
Mine got solved after restarting the Hyper-V Virtual Machine Management service.
Jul 24, 2014 at 11:20 PM
For me the problem turned out to be that I had upgraded a hard drive to one with the newer 4K bytes per sector specification, which the Volume Shadow Copy Service, (that HVBackup uses,) doesn't support on Windows Server 2008 R2.

See the article here: http://support.microsoft.com/kb/2510009