Wiki

Changes between Version 14 and Version 15 of Troubleshooting

Show
Ignore:
Timestamp:
05/13/13 12:15:46 (12 years ago)
Author:
hopscc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Troubleshooting

    v14 v15  
    5656 
    5757 
    58 === System.IO.!FileNotFoundException: Could not load file or assembly 'Cobra.Lang ... === 
     58=== System.IO.!FileNotFoundException: Could not load file or assembly 'Cobra.Core ... === 
    5959 
    6060When you run Cobra like so: 
     
    6464You get: 
    6565{{{ 
    66 Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Cobra.Lang ... 
     66Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Cobra.Core ... 
    6767}}} 
    68 You haven't installed Cobra. The "Snapshot" directory is only suitable for compiling the compiler and isn't otherwise directly used. Run "install-from-workspace" from the "Source" parent directory. After that, you can be in any directory, and typically will not be in the Cobra directories unless you are hacking on the compiler or in the "HowTo" or "Samples" (or maybe "Tests"). 
     68You haven't installed Cobra. The "Snapshot" directory is only suitable for compiling the compiler and isn't otherwise directly used. Run "install-from-workspace" from the "Source" parent directory. After that, you can be in any directory, and typically will not be in the Cobra directories unless you are hacking on the compiler or in the "!HowTo" or "Samples" (or maybe "Tests"). 
    6969{{{ 
    7070\PATH\TO\Cobra-VERSION\Source> install-from-workspace 
    7171}}} 
    7272 
     73The error is from the .Net runtime and is due the compiled program executing and not finding the Cobra runtime library (Cobra.Core.dll) to use. 
     74 
     75The instruction above installs the cobra RTL in the GAC where it is globally available. 
     76 
     77An alternative is to ensure that there is a copy of Cobra.Core.dll in the same directory as the executable program to be run.[[BR]] 
     78This could be manually copied from the install (or cobra build directory tree) or alternatively[[BR]] 
     79have the compiler do it for you using the cobra compiler '''-copy-core''' option when you compile your program. 
     80 
     81{{{ 
     82e.g. 
     83564 .../wkspace1/Source> ./cobra -color ../Samples/BlindWatchMaker1.cobra 
     84 
     85Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Cobra.Core, Version=0.0.2955.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. 
     86File name: 'Cobra.Core, Version=0.0.2955.1, Culture=neutral, PublicKeyToken=null 
     87' 
     88   at BlindWatchMaker1..ctor() 
     89   at MainWrapper.Main() in c:\Users\hops\src\cobra\wkspace1\Source\MainWrapper.cobra:line 3 
     90 
     91WRN: Assembly binding logging is turned OFF. 
     92To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
     93Note: There is some performance penalty associated with assembly bind failure logging. 
     94To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 
     95 
     96565 xx:...wkspace1/Source> ./cobra -color -copy-core ../Samples/BlindWatchMaker1.cobra 
     97Cumulative Selection: 
     98... 
     99Single step selection took 87 times longer than cumulative selection and *still* failed. 
     100566 xx:...wkspace1/Source> 
     101}}} 
    73102 
    74103=== System.Security.!SecurityException === 
     
    153182=== Other Problems === 
    154183 
    155 See UserSupport. 
     184See UserSupport.[[BR]] 
     185See SomeCompilerMessages 
    156186 
    157187