How to create Group(in HPC) using ASP.NET with C# RRS feed

  • Question

  • Hi

    How can I create a new group in HPC 2008 using c# application.
    Also, how can I assign nodes to this group. All this needs to be done through ASP.NET C# application. Just wanted to know the APIs for performing these tasks(with examples).

    Friday, February 20, 2009 9:56 AM


All replies

  • The easiest way (w/o calling any api) will be call "new-hpcgroup" from your C# code.

    There are code samples to show you how to run a powershell command in C#. E.g.,
    Saturday, April 4, 2009 5:09 AM
  • I have tried using "new-hpcgroup" which is working fine with c# console application but the same piece of code is not working when I try from web application and I get the following error:

    Could not load file or assembly 'Microsoft.Ccp.Win32Helpers, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    And sometimes I get this error: Missing registry value: HKLM\Software\Microsoft\HPC\BinDir

    Thanks for your help,
    Wednesday, December 30, 2009 11:28 AM