1

例外:

无法加载文件或程序集 'file:///C:\Program%20Files\Microsoft%20Visual%20Studio%209.0\Common7\IDE\Projects\SourceCode_TradeProcessor_branch\BIN\FxGate\LoaderService\Plugins\FixExchangeProvider\FixExchangeProvider.dll' 或它的依赖项之一。该系统找不到指定的文件。

代码:

parserPlugin = Assembly.LoadFrom(_transport.Path);

文件路径存在。是因为路径格式还是什么?

4

3 回答 3

4

“......或其依赖项之一”。检查 dll 的您的程序集引用是否在同一个文件夹中。

于 2011-01-25T09:42:30.410 回答
1

也许:

parserPlugin = Assembly.LoadFrom(new Uri(_transport.Path).LocalPath);

会更好吗?

于 2011-01-25T09:44:42.733 回答
1

我的猜测是权限,如果运行程序的用户甚至没有权限查看文件夹中的内容,则必须假设该文件不存在。

于 2011-01-25T09:45:10.900 回答