Hi,
I'm pretty new to VMWare VIX and C#, and am trying to decide the best appraoch to automating some workstation tasks. As far as I've read I seem to have a few options:
1. Use 'pure' VixCOM (steep learning curve)
2. Use a wrapper like VixWrapper or VixCOMWrapper.
My problem is that I have tried using VixWrapper, (attached as VixWrapper.cs), but am getting silly errors such as 'Object referance not set to instance of an Object' - I shudder as I ask this question, can someone take a look at my code and tell me what's up - I come from a Java backaground and as far as I'm concerned, I'm initialising the VixWrapper Object.
My code is attached as Program.cs
Every time I try to run it I get the error:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
It occurs on the line I call vix.open(pathToVM);
Thanks,
Jimmy