简体   繁体   English

Box.V2.dll中的'System.IO.FileNotFoundException'

[英]'System.IO.FileNotFoundException' in Box.V2.dll

I was getting an exception 我有一个例外

An exception of type System.IO.FileNotFoundException occurred in Box.V2.dll but was not handled in user code Box.V2.dll中发生System.IO.FileNotFoundException类型的异常,但未在用户代码中处理

Additional information: 附加信息:

Could not load file or assembly 'System. 无法加载文件或程序集“系统”。 Runtime, Version=4.0.10.0, Culture=neutral, Public Key Token=b03f5f7f11d50a3a' or one of its dependencies. 运行时,版本= 4.0.10.0,文化=中性,公钥令牌= b03f5f7f11d50a3a'或其依赖项之一。 The system cannot find the file specified. 该系统找不到指定的文件。

This exception occurred when i was creating a client using the Box Client class. 当我使用Box Client类创建客户端时,发生了此异常。 the following is the code 以下是代码

var config = new BoxConfig(BoxClientId, BoxSecret, new Uri("http://localhost"));

var session = new OAuthSession(access_token, refresh_token, 3600, "bearer");

client = new BoxClient(config, session);

Can anyone please suggest me a solution 谁能建议我一个解决方案

Could not load file or assembly 'System. Runtime, Version=4.0.10.0

look at your References in Box.V2 project. Box.V2项目中查看您的References Seem like you missed the needed lib. 好像您错过了所需的库。

Sorry for answering, not comment. 很抱歉回答,没有评论。 Cant post comment yet. 无法发表评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM