Virtual Server and VB.NET, in Virtual Server 2005
ASP Developer Network - Brought to you by Steve Radich and BitShop, Inc. - http://www.bitshop.com

Menu

ASPDeveloper.Net / VirtualServerFAQ.COM

Make sure you go to our home page for:

* Virtual Server 2005 FAQ
* ASP.Net 2.0 Information
* ASP.Net 2.0 Streaming Tutorials
* ASP.Net 2.0 HTML based Tutorials

Made possible by Business Internet Technology Shop (BitShop)



View :  Show duplicate posts
Virtual Server 2005

Recent Virtual Server 2005 posts

Seeking an MCT for a VS delivery
how to connect VS by Remote Desktop Connection?
Documentation for DEC/Intel 21140 advanced settings
Support drivers
Migrate physical XP computer?
VM Not Starting Automatically
Fixed v. Dynamic sized disks
Virtual Server DC
Virtual Server 2005 R2 Sp1 bata
no option to use "external network adapter"
VS Backups and UltraBac?
Problem w/Virtual Server cluster & multiple NICs
snapshot?
can not get all 4 cores utlitized vs 2005 r2 and 2003
where can one download VS2005 R2 with SP1?
Problem with SSL on the Virtual Server Administration Website
Isolated network between 2 virtual servers
Problem with network connectivity
Problem with Mouse after importing the VHD
linked drives
Add Solution

Latest Topics

Table Of Contents


Post Reply |  This is Spam! | Mark as Spam

Virtual Server and VB.NET

Source: microsoft.public.virtualserver
Sent: 04/13/2007
From: Rookie
Message:

Hopefully this will be an easy question for you guys! I have an Windows App
that is written in VB.NET 1.1. I'm trying to get a the status of Guests on a
remote host. I have the Virt Server 2005R2 development package installed. I
followed the steps included in that package to setup my project. I complied
the code and on my machine the code works great. The problem is when I
deploy the exe and required dll's to other workstations(they don't have
virtual server installed). They get the following error:

Error: 13 – QueryInterface for interface
Microsoft.VirtualServer.Interop.IVMVirtualServer failed.

They all have the "Interop.Microsoft.VirtualServer.Interop.dll" which VS2003
included in the deployment package.

Here is the code where it breaks:
myVS = myApp.GetVMVirtualServerClass(VSHServer)

VSHReturn = "Guests on " & VSHServer & "(Ver:" & myVS.Version &
")" & Environment.NewLine
'This is where it breaks

For VirtGuestCnt = 0 To myVS.VirtualMachines.Count - 1
Select Case myVS.VirtualMachines(VirtGuestCnt + 1).State
Case VMVMState.vmVMState_Running
VSHReturn &= myVS.VirtualMachines(VirtGuestCnt +
1).Name & " - Running" & Environment.NewLine
Case VMVMState.vmVMState_Paused
VSHReturn &= myVS.VirtualMachines(VirtGuestCnt +
1).Name & " - Paused" & Environment.NewLine
Case VMVMState.vmVMState_Restoring
VSHReturn &= myVS.VirtualMachines(VirtGuestCnt +
1).Name & " - Restoring" & Environment.NewLine
Case VMVMState.vmVMState_Saved
VSHReturn &= myVS.VirtualMachines(VirtGuestCnt +
1).Name & " - Saved" & Environment.NewLine
Case VMVMState.vmVMState_Saving
VSHReturn &= myVS.VirtualMachines(VirtGuestCnt +
1).Name & " - Saving" & Environment.NewLine
Case VMVMState.vmVMState_TurnedOff
VSHReturn &= myVS.VirtualMachines(VirtGuestCnt +
1).Name & " - Turned Off" & Environment.NewLine
Case VMVMState.vmVMState_TurningOff
VSHReturn &= myVS.VirtualMachines(VirtGuestCnt +
1).Name & " - Turning Off" & Environment.NewLine
Case VMVMState.vmVMState_TurningOn
VSHReturn &= myVS.VirtualMachines(VirtGuestCnt +
1).Name & " - Turning On" & Environment.NewLine
Case Else
VSHReturn &= myVS.VirtualMachines(VirtGuestCnt +
1).Name & " - Unknown State" & Environment.NewLine
End Select
Next
'MessageBox.Show("Got guests")

Please help!!!!
--
Thanks,
Jerry L



Post Reply |  This is Spam! | Mark as Spam

Related Messages


Post Reply |  This is Spam! | Mark as Spam


Table Of Contents



Other groups

 
Virtual PC (Mac)(3592) Virtual PC(12844) Virtual PC (French)(496)
Virtual Server 2005(6245)
Search
in:
Our Sponsors
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
Virtual Server 2005 Info Here!
http://www.aspdeveloper.net
rss Wiki rss Blogs rss Articles rss Image galleries rss File galleries rss Forums rss Maps rss Directories
ASP Developer Network (since 1996) - Brought to you by Steve Radich and BitShop, Inc. - http://www.bitshop.com
Copyright © 1997-2005 by BitShop, Inc. All Rights Reserved.
No content may be reproduced in any form without written permission from BitShop, Inc.
We will be honored to assist with reproduction rights on our material if you contact us.
We also can provide print articles for your magazine, private training seminars at your site, and conference presentations.

Thank you for visiting. Please bookmark our site if you found it useful!
If you wish to make a donation it will help further the development of these free resources: