开发者

FileNotFoundException and file path

Exception:

Could not load file or assembly 'file:///C:\Program%20Files\Microsoft%20Visual%20Studio%209.0\Common7\IDE\Projects\SourceCode_TradeProcessor_branch\BIN\FxGate\LoaderService\Plugins\FixExchangeProvider\FixExchangeProvider.dll' or one of its dependencies. The system cannot find the file specified.

code:

parserPlugin = Assembly.LoadFrom(_transport.Path);

The filepath exists. Is i开发者_Go百科t because of path format or what?


"...or one of its dependencies". Check if the dll's your assembly references are in the same folder.


Maybe:

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

would work better?


My guess would be permissions, if the user the program's running under doesn't even have permission to see what's in the folder it'll have to assume the file's not there.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜