开发者

Network Class Loader for IronRuby / Dynamic Language Runtime?

开发者 https://www.devze.com 2023-04-04 04:12 出处:网络
As it is now, I can load a local file: engine.ExecuteFile(\"c:/myclass.rb\"); But the DLR throws an exception with this:

As it is now, I can load a local file:

engine.ExecuteFile("c:/myclass.rb");

But the DLR throws an exception with this:

 engine.ExecuteFile("ftp://localhost/myclass.rb");

And I'm sure that if it can't even do this, then it probably can't load classes over the network automatically either.

Does anyon开发者_开发问答e know how to have the DLR (Dynamic Language Runtime) load classes over the network?


That is correct - it can only load files from a path resolvable via "standard file open" calls - so a path starting with ftp:// does not conform to that definition... for further reference see MSDN for example http://blogs.msdn.com/b/seshadripv/archive/2008/07/28/various-ways-to-execute-script-using-the-dlr-hosting-api.aspx and http://dlr.codeplex.com/wikipage?title=Docs%20and%20specs&referringTitle=Documentation

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号