.net - Could not load file or assembly -
i'm not able execute code in application domain in linqpad:
void main() { appdomain.createdomain("ad").docallback(() => { console.writeline("test"); }); } i different file not found exception each time execute code:
could not load file or assembly 'query_gclnfu, version=0.0.0.0, culture=neutral, publickeytoken=null' or 1 of dependencies.
could not load file or assembly 'query_blixbs, version=0.0.0.0, culture=neutral, publickeytoken=null' or 1 of dependencies.
i'm clueless...
linqpad runs code in app domain via simple sandboxing api, , means you'll run permission issues if create domain using appdomain.createdomain.
linqpad offers helper method create app domain right permissions , assembly resolution handlers set up:
util.createappdomain ("ad").docallback(() => { console.writeline("test"); }); this run without error, although won't see "test" appear in output window because new app domain won't have console output redirected. following work, though:
util.createappdomain ("ad").docallback(() => messagebox.show ("test"));
Comments
Post a Comment