Wiki

Changes between Version 11 and Version 12 of Troubleshooting

Show
Ignore:
Timestamp:
02/12/11 05:40:00 (7 years ago)
Author:
Charles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Troubleshooting

    v11 v12  
    4949 
    5050Also note that you can "cd C:\Windows\Microsoft.NET\Framework64\v2.0.50727" and then enter "ldr64 setwow" to force .NET programs to run as 32-bit. You can enter "ldr64 set64" to switch back. 
     51 
     52 
     53=== Metadata file "Foo.dll" could not be found === 
     54 
     55When you compile, you get the error: 
     56{{{ 
     57error: Metadata file "System.Xml.Linq.dll" could not be found 
     58}}} 
     59 
     60This can be a mismatch between .NET versions, such as the version Cobra is running on vs. the version the DLL in question was written against. The current solution is to explicitly point to the appropriate back-end C# compiler. Suppose you are accessing a .NET 3.5 DLL, the solution might then be one of these: 
     61{{{ 
     62cobra -c -d -native-compiler:C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe  foo.cobra 
     63cobra -c -d -native-compiler:C:\Windows\Microsoft.NET\Framework64\v3.5\csc.exe  foo.cobra 
     64}}} 
    5165 
    5266