none
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 asp.net 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).

    Thanks,
    Devendra
    Friday, February 20, 2009 9:56 AM

Answers

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., http://www.codeproject.com/KB/cs/HowToRunPowerShell.aspx
    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=2.0.0.0, 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,
    Devendra
    Wednesday, December 30, 2009 11:28 AM