Changes between Version 14 and Version 15 of Troubleshooting
- Timestamp:
- 05/13/13 12:15:46 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Troubleshooting
v14 v15 56 56 57 57 58 === System.IO.!FileNotFoundException: Could not load file or assembly 'Cobra. Lang... ===58 === System.IO.!FileNotFoundException: Could not load file or assembly 'Cobra.Core ... === 59 59 60 60 When you run Cobra like so: … … 64 64 You get: 65 65 {{{ 66 Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Cobra. Lang...66 Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Cobra.Core ... 67 67 }}} 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").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"). 69 69 {{{ 70 70 \PATH\TO\Cobra-VERSION\Source> install-from-workspace 71 71 }}} 72 72 73 The 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 75 The instruction above installs the cobra RTL in the GAC where it is globally available. 76 77 An 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]] 78 This could be manually copied from the install (or cobra build directory tree) or alternatively[[BR]] 79 have the compiler do it for you using the cobra compiler '''-copy-core''' option when you compile your program. 80 81 {{{ 82 e.g. 83 564 .../wkspace1/Source> ./cobra -color ../Samples/BlindWatchMaker1.cobra 84 85 Unhandled 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. 86 File 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 91 WRN: Assembly binding logging is turned OFF. 92 To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 93 Note: There is some performance penalty associated with assembly bind failure logging. 94 To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 95 96 565 xx:...wkspace1/Source> ./cobra -color -copy-core ../Samples/BlindWatchMaker1.cobra 97 Cumulative Selection: 98 ... 99 Single step selection took 87 times longer than cumulative selection and *still* failed. 100 566 xx:...wkspace1/Source> 101 }}} 73 102 74 103 === System.Security.!SecurityException === … … 153 182 === Other Problems === 154 183 155 See UserSupport. 184 See UserSupport.[[BR]] 185 See SomeCompilerMessages 156 186 157 187