c# - System.TypeLoadException while using CsharpRepl (mono shell) -


before ditch c# interpreter thought check if knows what's going wrong here. type complains is eloquera.client.dll.

c:\program files\mono-2.10.8\bin>csharp mono c# shell, type "help;"  enter statements below. csharp> loadassembly(@"c:\webapp1\webapp1\bin\webapp1.dll"); csharp> loadassembly(@"c:\webapp1\webapp1\bin\eloquera.client.dll"); csharp> using webapp1.models.data_access; csharp> using webapp1.models.persisted_classes; csharp> using eloquera.client; csharp> using system.linq.expressions; csharp> csharp> var repository = new eloquerarepository(); csharp> var result = repository.getall<custommembershipuser>(); system.typeloadexception: not load type 'eloquera.client.db' assembly  'eloquera.client, version=4.0.0.0, culture=neutral, publickeytoken=170cadcdba67 be6c'.   @ class3.host (system.object& $retval) [0x00000] in <filename unknown>:0   @ mono.csharp.evaluator.evaluate (system.string input, system.object& result,  system.boolean& result_set) [0x00000] in <filename unknown>:0   @ mono.csharpshell.evaluate (system.string input) [0x00000] in <filename unkn own>:0 csharp> csharp> csharp> 

edit: focusing in on problem type:

c:\program files\mono-2.11\bin>csharp mono c# shell, type "help;"  enter statements below. csharp> loadassembly(@"c:\webapp1\webapp1\bin\webapp1.dll"); csharp> loadassembly(@"c:\webapp1\webapp1\bin\eloquera.client.dll"); csharp> using webapp1.models.data_access; csharp> using webapp1.models.persisted_classes; csharp> using eloquera.client; csharp> using system.linq.expressions; csharp> string server = "server=localhost;password=pwd;options=none;"; csharp> console.writeline(server); server=localhost;password=pwd;options=none; csharp> db db = new db(server); (1,10): error cs0584: internal compiler error: unexpected error when loading typ e `eloquera.client.db' 

edit: upgraded eloquera install eloqueradatabase ce 4.51 .net4.0 x32 , tried again. still not working perhaps result bit more promising:

c:\program files\mono-2.10.8\bin>csharp mono c# shell, type "help;"  enter statements below. csharp> loadassembly(@"c:\webapp1\webapp1\bin\webapp1.dll"); csharp> loadassembly(@"c:\program files\eloquera\eloquera server 4.0\lib\eloquer a.client.dll"); csharp> using webapp1.models.data_access; csharp> using webapp1.models.persisted_classes; csharp> using system.linq.expressions; csharp> using eloquera.client; csharp> csharp> csharp> string server = "server=localhost;password=pwd;options=none;"; csharp> console.writeline(server); server=localhost;password=pwd;options=none; csharp> db db = new db(server); csharp> db.opendatabase("mockdb"); eloquera.client.eloqueraexception: connection server localhost on  port 43962 cannot established.  requested feature not implemented.   @ eloquera.client.db.openconnection () [0x00000] in <filename unknown>:0   @ eloquera.client.db.opendatabase (system.string dbname) [0x00000] in <filena me unknown>:0   @ class5.host (system.object& $retval) [0x00000] in <filename unknown>:0   @ mono.csharp.evaluator.evaluate (system.string input, system.object& result,  system.boolean& result_set) [0x00000] in <filename unknown>:0   @ mono.csharpshell.evaluate (system.string input) [0x00000] in <filename unkn own>:0 csharp> 

i've seen typeloadexception problems in mono 2.10.x in past.

i recommend upgrading mono 2.11.3 or newer.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -