FileNotFoundException when trying out script
Posted: Mon May 03, 2010 11:11 am
I tried to familiarise myself with the language by running the sample scripts.
Any file I run throws a FileNotFoundException. This is the output I get, maybe it's helpful:
Here's the content of a.cobra:
I'm probably doing something wrong, but I can't spot what it is.
Any file I run throws a FileNotFoundException. This is the output I get, maybe it's helpful:
- Code: Select all
F:\Documents and Settings\john\Desktop\Cobra-2010-04-02\Cobra-2010-04-02\Source\Snapshot>cobra "f:\Documents and Settings
\john\Desktop\c\a.cobra"
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Cobra.Lang, Version=0.8.0.1, Cult
ure=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Cobra.Lang, Version=0.8.0.1, Culture=neutral, PublicKeyToken=null'
at John.Main()
at MainWrapper.Main()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Here's the content of a.cobra:
- Code: Select all
class John
def main
print "Hello"
I'm probably doing something wrong, but I can't spot what it is.