ConverterStorageParamsVolumeCloningParams syntax in dot net

Hi, I need to use the sdk to create a p2v of a physical machine but only cloning the c: volume work, so I used the sample net dot, which is done for vs 2005 with visual c# 2005.

So I added this code:

ConverterStorageParams converterStorageParams = new ConverterStorageParams();
converterStorageParams.cloningMode = "volumeBasedCloning";
ConverterComputerSpec computerSpec = new ConverterComputerSpec();
computerSpec.location = Common.BuildLiveSourceLocation (_sourceName, _sourceUsername, _sourcePassword,
_sourceOsType, false, "");
ComputerInfo ConverterComputerInfo = _converterServer._converterService.ConverterQuery (_converterServer._converterServerContent.queryManager, computerSpec);
for (int diskcount = 0; diskcount < computerInfo.osInfo.logicalVolumeInfo.Length; diskcount ++)
{
If (computerInfo.osInfo.logicalVolumeInfo [diskcount] .mountPoint [0] == 'C:')
{
ConverterStorageParamsVolumeCloningParams volume;
volume = new ConverterStorageParamsVolumeCloningParams();
volume. Resize = false;
volume.sourceVolumeId = computerInfo.osInfo.logicalVolumeInfo [diskcount] .volumeId;
ConverterStorageParamsTargetDiskParams targetdisk;
targetdisk = new ConverterStorageParamsTargetDiskParams();
targetdisk.volumesToClone = volume;
converterStorageParams.targetDiskParams [0] = targetdisk;
}

}
cloningParams.storageParams = converterStorageParams;

When I use this syntax vc # tell me I can't implicitly convert ConverterStorageParamsVolumeCloningParams [ConverterStorageParamsVolumeCloningParams]

so I searched the web and tried using the syntax used in this post:

https://communities.VMware.com/thread/282496?start=0 & tstart = 0

but vc # rising within me that it is a bad table statement and I have to put the foot on the object type.

Unfortunately when I put the foot on the vc object type # tells me this type of table do not contain a property resize or sourcevolumeID.

I use little in the circle, then someone can tell me the proper syntax for this code works?

Hello

one thing I see is:

converterStorageParams.targetDiskParams is an array and must be created in the table form before you can assign items, for example:

converterStorageParams.targetDiskParams = new ConverterStorageParamsTargetDiskParams [1];

converterStorageParams.targetDiskParams [0] = targetdisk;

or shorter:

converterStorageParams.targetDiskParams = new ConverterStorageParamsTargetDiskParams [] {targetdisk};

Also ConverterStorageParamsTargetDiskParams is a base class, you must actually use ConverterStorageParamsManagedTargetDiskParams or ConverterStorageParamsHostedTargetDiskParams (despite the fact that the latter is not add anything)

Similar to targetdisk.volumesToClone - this is an array and should be created as such, for example

targetdisk.volumesToClone = new [] {volume} ConverterStorageParamsVolumeCloningParams;

HTH

Plamen

Tags: VMware

Similar Questions

  • Container of DOT NET when relocating FP opening of secondary

    Hello all,.

    In my application, I wanted to load a VI that contains LabVIEW and Dot NET controls in a secondary and clicking on a button (say out), I have to remove the secondary and to open the Panel before the VI which was shown which was loaded in the secondary. But when I do that the containers Dot NET gets moved. I don't understand why this is happening. Please give your suggestions about this behavior and is it possible to fix this.

    PS: I have attached pictures so that the sample project explaining this behavior

    Thanks in advance,

    Sree.

    I did a lot of work with containers of .net and is not ONLY unique to the sub-panels.  I think that the problems come from the origin of the windows and scrollbars and dispatchers can affect the offset of a .net object as well.  A few ideas to help are to eliminate the scroll bars in the secondary, if you don't display them when it is inserted in the secondary, to avoid changes to the scroll bar.

    If it's not working for you, you're just programmatically to set the position of the .net container in your secondary, with an event, or remotely with VI server once it gets attached to ensure that it is in the right position.  Lot of ways sof to fix it, unfortunately they are all manual.

    It can also help position 0,0 .net containers (origin) so more easily control the movement and positioning.

    Hope it helps you to find a solution.

  • Dot net Frame work 2.0 SP2 and 3.5 Sp1 failed with error 0 x 80070643

    Can you please help me out with the solution for Dot net Frame work 2.0 SP2 and 3.5 Sp1 failures that occur frequently.

    We tried with the dotnet uninstall and update with the last, but still the questions are on the same machine when we have updated with the latest patches released from Microsoft.we use WSUS 3.0 to update patches from microsoft in desktop computers

    Error code : Installation failure: Windows failed to install the following update with error 0 x 80070643:

    Please help with a permanent solution.

    http://support.Microsoft.com/kb/976982

  • Family and dot net framework 3.5 sp1 update Setup error

    Hi all

    my system is windows vista 32 bit sp1.whenever I use windows update to install
    IMP updates dot net framework 3.5 sp1 and update family gives x error 0643.
    After crossing the suggestion given for this error to microsoft, I tried to
    manually install, but it gives error with desc set. and connect you as below. Help, please:

    Description:
    Microsoft .NET Framework 3.5 SP1 has encountered a problem during installation.  Setup did not complete successfully.

    Signature of the problem:
    Problem event name: VisualStudio8Setup
    Signature of the 01:35101 problem
    Signature of the problem 02: 3.5.30729.01_ORCAS_X86_NET
    Signature of the problem 03: CBS
    Signature of the problem 04: INST
    Signature of the problem 05: F
    Signature of the problem 06: gencomp750, {61040379-156d-4ece-b126-ea395a3b2
    Signature of the problem 07: BASERET_UNKNOWN
    Signature of the 08 problem: -.
    Signature of the 09 :-2145124330 problem
    Signature of the problem 10: WUSA
    The system version: 6.0.6001.2.1.0.768.3
    Locale ID: 1033

    More information about the problem:
    LCID: 1033

    Read our privacy statement:
    http://go.Microsoft.com/fwlink/?LinkId=50163&clcid=0x0409

    Error log:
    [06/23/12, 23: 57:04] Microsoft .NET Framework 2.0SP1 (CBS): [2] Failed to fetch of installation file in CBaseComponent::PreInstall()
    [06/23/12, 23: 57:04] setup.exe: ISetupComponent::Pre/Post/Install() [2] failed in ISetupManager::InternalInstallManager() with HRESULT-2147467260.
    [06/23/12, 23: 57:04] setup.exe: CSetupManager::RunInstallPhase() [2] - call to install/Pre/Post for InstallComponents failed
    [06/23/12, 23: 57:04] setup.exe: [2] CSetupManager::RunInstallPhaseAndCheckResults() - RunInstallPhase() returns a NULL piActionResults value
    [06/23/12, 23: 57:04] setup.exe: [2] CSetupManager::RunInstallFromList() - RunInstallPhaseAndCheckResults failed [2]
    [06/23/12, 23: 57:05] setup.exe: [2] ISetupManager::RunInstallLists (IP_PREINSTALL failed in ISetupManager::RunInstallFromThread()
    [06/23/12, 23: 57:05] setup.exe: ISetupManager::RunInstallFromThread() [2] failed in ISetupManager::RunInstall()
    [06/23/12, 23: 57:05] setup.exe: CSetupManager::Run() [2] - call to RunInstall() failed
    [06/23/12, 23: 57:05] WapUI: DepCheck [2] indicates Microsoft .NET Framework 2.0SP1 (CBS) is not installed.
    [06/23/12, 23: 57:05] WapUI: DepCheck [2] indicates Microsoft .NET Framework 3.0SP1 (CBS) was not attempted to be installed.
    [06/23/12, 23: 57:05] WapUI: DepCheck [2] indicates Microsoft .NET Framework 3.5 'package' was not attempted to be installed.
    [06/24/12, 00:23:55] Microsoft .NET Framework 2.0SP1 (CBS): [2] error: Installation for the Microsoft .NET Framework 2.0SP1 (CBS) component failure. MSI returned error-2145124330 code
    [06/24/12, 00:24:11] WapUI: DepCheck [2] indicates Microsoft .NET Framework 2.0SP1 (CBS) is not installed.

    In fact, I have recovery error CTOERROR.flg while installing windows dvd recovery discs and the fix - it asks to restart windows that if I do it asks me to reinstall windows bcz higher error.

    I am manually installingb through the planned introduction in the link that you shared... when I got the above error...

    Have you checked for hard drive failure?

    http://h10025.www1.HP.com/ewfrf/wc/document?LC=en&DLC=en&cc=us&DocName=bph05701&product=12455#N173

    Re: ctoerror.flg

    Incomplete recovery

    One solution was to remove all xxxx and repartition the hard disk

    http://h30434.www3.HP.com/T5/notebook-operating-systems-and/dv4-models-recovery-incomplete-failure-duplicable-problem/m-p/173139

    Order a DVD of Windows Vista SP2

    http://Windows.Microsoft.com/en-us/Windows-Vista/learn-how-to-install-Windows-Vista-Service-Pack-2-SP2

  • Dot Net framewrk unhandled exception - cannot anchor balloon

    During the connection, after a few minutes, a Dot Net framework exception occurs indicating that he cannot anchor a balloon to the place = 1215 X, Y = 913.  The window says click on continue and the attempt of wll application to ignore the error, click on exit, the application closes immediately.

    I would like to solve what is the cause, because it really seems to slow down the PC.

    Click details and look for the name of the application and remove with the Panel of control-> programs and offers "a programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • How to install dot net framework 3.5 without an internet connection in Windows 8 Professional 64-bit

    Please help I am having the problem to install dot net framework 3.5 in my PC. I do not have a fast internet connection s I can't download it from the internet. Please help me by using DISM was also flop because it showed me that an error always comes after 68.5% completion...

    Please help me I have a lot of problems because many things are not working due to net framework 3.5...

    .NET framework is already included in Windows 8.

    Enable (turn on or off features) Windows 8 Net Framework 3.5 (included .NET 2.0 and 3.0)

    http://blogs.technet.com/b/Aviraj/archive/2012/08/04/Windows-8-enable-NET-Framework-3-5-includes-NET-2-0-and-3-0-i-e-NetFx3-feature-in-online-amp-offline-mode.aspx

    J W Stuart: http://www.pagestart.com

  • SURFACE-CANNOT INSTALL DOT NET FRAMEWORK 3.5

    I AM TRYING TO INSTALL DOT NET FRAMEWORK 3.5 FROM THE WINDOWS I PROPOSE KEEP 0X800F081F ERROR.  I TRIED EVERYTHING ONLINE, AND NOTHING WORKS.

    Hi Cheryl,

    For you help I would be grateful if you could answer the following questions:

    (1) have you made any changes to the computer before the show?

    (2) what measures you have profiled to solve the problem?

    There is an article in the Microsoft Knowledge Base, which provides methods to solve this problem. I suggest go you to the link to fix the problem.

    You have performed the steps in this article?

    If not, I suggest you to follow the steps in troubleshooting section and check,

    Error codes when you try to install the .NET Framework 3.5 in Windows 8 or Windows Server 2012

    http://support.Microsoft.com/kb/2734782

    You can also check this link for more information:

    Installation of .NET Framework 3.5 on Windows 8

    http://msdn.Microsoft.com/en-us/library/hh506443.aspx

    If you need help with Windows, please let us know we will be happy to help you.

  • Using dot net 3.5 in windows 8 pro

    How can I use dot net 3.5 in windows 8 pro please suggest

    See:

    How to install .NET Framework 3.5 in Windows 8 or 8.1?

  • Is the request failed in dot net (Foglight) applications

    Hi all

    -I can see column APPEARANCE with values "APPLICATION HONOR" in the dot NET request page (please see screenshots). I just wanted to know the reason. Appreciate a response, please let me know if this is a problem of configuration and what could be the resolution for this.

    Hello

    Looks like the problem is that "an insufficient number of arguments were provided for the procedure or function HCINMYSR_mkt.dbo.uf_Get_Target_Discount. Take a look in the HCINMYSR_mkt database for the code "uf_Get_Target_Discount". Seems to me that 5 parameters are passed to this - that is what she wants?

    Kind regards

    Darren

  • Compliabiality of DOT NET graphical Interfaces (GUI) with Java

    Hello
    Right now, I'm about to start the GUI in Java learning.
    I have gained all the basic knowledge of Java enough to learn GUI.

    My Questions are:
    (1) in a first time learning Java GUI, is it really necessary to learn AWT before learning Java Swing framework?

    (2) I heard that VISUAL STUDIO of Dot Net Framework supports advanced of GUI facilities and rich watch that we use to build graphic interfaces that must operate in Java Applications, so that Java Gui done, can the .net GUI library classes?

    Also is this really true?

    Tejaswi.B wrote:
    .. is it really necessary to learn AWT before learning Java Swing framework?

    No, but noted there are many (no) components of AWT that could be used in Swing interfaces. Fonts, sizes, layouts...

    This being said, follow the link provided Darryl and you will find the tutorial covers these classes (or almost) as if they were Swing.

    (2) I heard that VISUAL STUDIO of Dot Net Framework supports advanced GUI facilities and rich look than that of Java Gui...

    Where did you hear that?

    As far as I understand, there are a few components provided in .NET that are not in the swing, such as (I don't know how it's called) a "list of switch" where there are two lists side by side with buttons to move items from one list to the other. These components are possible from other components in the swing. I guess that Swing developers felt that these components were rarely required to justify the addition of a specific component for them.

    You can also go on SwingX (https://swingx.dev.java.net/), which is based on the swing to provide additional components.

  • name of the dot net class with variant

    Hello, I'm having a problem with .NET and Labview and I am sure that you will be able to help me.

    I have several dll in dotNET with their class name and I need to get the name of the class programmatically. All references of dotNET go inside a variant and I can see in the name of her variant of the name of the class, so I would read the name of variant and then through a case structure make a Variant to the data programmatically. I can't find a way to get the variant name, but I don't know there is a way to get it. I'll post some screenshots which may better explain my goal (sorry but I'm still not a Labview expert + dotNET). A class is called SHF 615 A, one is named SHF 614 A

    Thanks in advance for the help!


  • Can I remove asp dot net 2.0 on an exchange server 2010

    I have a client with an exchange server 2010, and they are required to have a completed quarterly PCI scan. Last quarter of what they narrowly but this time around the issue needs to be resolved.

    90780 - Microsoft ASP.NETValidateRequest filters bypass the Cross-Site Scripting VulnerabilityCVE-2008-3842, CVE-2008-3843

    Comment by ASV:

    There is no fix available for now; Please consider implementingmitigating controls (firewall, traffic filtering, etc.) to answer these questions. For

    specific information about how to restore these questions please consult the technical report below.

    I thought that if I unregister the net 2.0 from the owa site would correct this problem.

    In the point only remove net 4.0 is installed.   When I browse the C:\Windows\Microsoft.NET\Framework\ I see

    14/06/2011 16:32

    v1.0.3705

    2009-07-13 23:20

    v1.1.4322

    27/06/2012 12:26

    v2.0.50727

    14/06/2011 14:32

    v3.0

    14/06/2011 16:32

    v3.5

    19/08/2012-13:30

    v4.0.30319

    In IIS

    Default Web site, aspnet_client, system_web 2_0_50727 & 4.0.30319 reside here with nothing in the files when viewed.

    There is no server expert here, this is a user forum.  Check out the TechNet forums, this is where you find people from server.

  • Dot Net 3.5 update failure

    I am trying to upgrade my computer with .net 3.5 service pack.  The installation fails, giving me the error code 643.  What should I do?

    Description of the Patch registration cleanup tool
    http://support.Microsoft.com/kb/976220

    When installing updates using Windows update or Microsoft Update you may receive error 80070643 0 x or 0 x 643 (23 Oct-09)
    http://support.Microsoft.com/kb/976982

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • try to download dot net framework v2 and he keeps trying to download without success

    Have installed v4 framework.  When you try to download some programs I download v2.  I keep trying to download

    but it won't take.

    https://SkyDrive.live.com/?CID=d7389b68b3a275ad&RESID=D7389B68B3A275AD! 120 & id = % D7389B68B3A275AD 21120

    link to my skydrive, download all four parts and run them in order. A lot of your time,

    Remove and reinstall net framework, and then go to microsoft update do a scan of priority and install and reboot as required.

  • Error 1935. An error occurred during the installation of Assembly component installed dot net Framework 1.1

    title of the Moose: tried to fix netframework 1.1 after a virus destroyed all .exe files.

    Downloaded dotnetfx, dotnetredis, and NDP10_sp and nothing has worked. Received 19 2802 error messages. Final error was 1935. .installion of the Assembly... custommarshaller s.version = 1.0.5000.0... hresult 0x8002802f.  I tried hresult and he showed me to install MS Office.  I don't have MS Office on computer.

    Hi PatrickMcLeod,

    What is you receive the exact error message?

    Method 1: You can see the steps outlined in the article below, which deals with a similar question

    You receive an "Error 1935" error message when you use the Windows Installer Netfx.msi package to install .NET Framework 1.1

    http://support.Microsoft.com/kb/839547

    Method 2:  You can see the steps outlined in the article below

    Error 1935 when installing the .NET Framework

    http://support.Microsoft.com/kb/308096

    Important: method 3 and 4 show you how to change the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base.
    How to back up and restore the registry in Windows

    Method 3: You can see the steps mentioned in the article below

    How to troubleshoot installation issues of the Microsoft.NET Framework 1.1 in Windows XP or Windows 2000

    http://support.Microsoft.com/kb/824643

    Method 4: Also check out the link below to fix the problem of .exe file

    You are unable to start a program with the .exe Extension

    http://support.Microsoft.com/kb/310585

Maybe you are looking for