Problem solved for me.
I had the same problem. I built it as C# Project and tried to execute the same program posted here. But had the same crash as everyone else.
Sine my machine is Windows 8, X64.
So, Right Click Solution in Solution Explorer. Select the option "Configuration Manager".
Now since it was a C# project, we have a configuration called "Any CPU".
Click that dropdown in Configuration Manager. Select "Add New" option.
I added X64 for myself. You can try adding X86 for your platform.
Run, from the Build bar select your platform X86/X64 and Release build.
Press F5 or Build and Execute button ....
cool .... it worked for me
+
You may also get an exception on :
context.Run(script);
put it inside try/catch...
try
{
catch (Exception e)
{
Reset is yours....
Hope this helps.
I had the same problem. I built it as C# Project and tried to execute the same program posted here. But had the same crash as everyone else.
Sine my machine is Windows 8, X64.
So, Right Click Solution in Solution Explorer. Select the option "Configuration Manager".
Now since it was a C# project, we have a configuration called "Any CPU".
Click that dropdown in Configuration Manager. Select "Add New" option.
I added X64 for myself. You can try adding X86 for your platform.
Run, from the Build bar select your platform X86/X64 and Release build.
Press F5 or Build and Execute button ....
cool .... it worked for me
+
You may also get an exception on :
context.Run(script);
put it inside try/catch...
try
{
context.Run(script);
}catch (Exception e)
{
Console.WriteLine(e.Message);
}Reset is yours....
Hope this helps.