COM error in Virtual server 2005
Hi ALL,
i am writing a C# code for manageing the microsoft virtual server r2 i got COM exception saying: Either a required impersonation level was not provided, or the provided impersonation level is invalid. (Exception from HRESULT: 0x80070542)
code is like this
string VMFolderPath = @"C:\VirtualServer\VHDTest";
VMVirtualServer objVirtualServer = new VMVirtualServer();
//Create a new VM
objVirtualServer.CreateVirtualMachine("VHD Test VM", VMFolderPath);
Through error at CreateVirtualMachine("VHD Test VM", VMFolderPath)
Either a required impersonation level was not provided, or the provided impersonation level is invalid. (Exception from HRESULT: 0x80070542
can enybody help me it's urgent
thanks in advance
|