mscorlib.dll中发生未处理的“System.IO.IOException”类型的异常目录名称无效

时间:2016-09-23 09:56:04

标签: c# sql .net

我正在尝试将CS​​V文件导入SQL Server数据库。但是当我选择文件时,它会在1) MapFeedback: address-no longer exists test Message: Error: Timeout - Async callback was not invoked within the timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. Stack: Error: Timeout - Async callback was not invoked within the timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. at tryOnTimeout (timers.js:224:11) at Timer.listOnTimeout (timers.js:198:5) 1 spec, 1 failure Finished in 30.831 seconds [15:18:24] I/launcher - 0 instance(s) of WebDriver still running [15:18:24] I/launcher - chrome #01 failed 1 test(s) [15:18:24] I/launcher - overall: 1 failed spec(s) Closing report [15:18:24] E/launcher - Process exited with error code 1 处中断并显示错误消息:

  

mscorlib.dll中出现未处理的“System.IO.IOException”类型异常目录名无效。

(请注意“目录名称无效”。 已被翻译成荷兰语“De mapnaam is ongeldig。”)

var AllFiles = new DirectoryInfo(CSVpath).GetFiles() ;

1 个答案:

答案 0 :(得分:0)

我很确定此行引发了异常

var AllFiles = new DirectoryInfo(CSVpath).GetFiles() ;

围绕try catch语句包装它总是一件好事。 但是,由于异常消息表明路径不正确,因此它不存在或语法错误。