开发者

Network Class Loader for IronRuby / Dynamic Language Runtime?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜