Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Getting Started.. verificationexception in sample code
 

Getting Started.. verificationexception in sample code


Hi I am trying the sample herbivore skeleton code but in the trace window I am getting this message:

System.Security.VerificationException: Operation could destabilize the runtime.
   at CSharpCreatures.SimpleHerbivore.IdleEvent(Object sender, IdleEventArgs e) in c:\source\herbie1\herbie1\class1.cs:line 120-

This is line 120:

int RandomX= OrganismRandom.Next(0, WorldWidth - 1);

I am using terrarium 1.0 with .net 2003

 Help !

    Greg

MigrationUser 1  Saturday, June 28, 2003 10:28 PM
I'm assuming you're running Terrarium 1.0.21 (which is called version 1.1 by the Terrarium developers), and that you have both the 1.0 and the 1.1 frameworks installed?  If so, then remove all your references from your bug project and add them back in.  When you re-add System and System.Drawing, don't select the ones in the .Net list.  Rather, browse for the DLLs in the 1.0 framework directory.
MigrationUser 1  Monday, June 30, 2003 2:03 AM

Thanks! That worked.

  Greg
MigrationUser 1  Monday, June 30, 2003 12:32 PM

You can use google to search for other answers

Custom Search

More Threads

• pocket taskvision + vs2005 + emulator
• PocketVision error when downloading tasks
• Please help! Need help for passing variable from a combobox
• .Net 2005
• com port
• Timer Question
• png images
• Is taskvision free?
• Unhandled Exception
• bowwow10 - how does he do it?