1
当我阅读文件,这样的错误而读取文件
var fciNewFileFromComputer = new SP.FileCreationInformation();
fciNewFileFromComputer.Content = System.IO.File.ReadAllBytes("C:\\Documents and Settings\\User1020\\Desktop\\asd.txt");
我能够读取文件,但是当我尝试这样
fciNewFileFromComputer.Content = System.IO.File.ReadAllBytes("u4vmebirsdev01//ReportsEBISSRS//ActiveDirectoryTest.rdl");
我收到错误
网址格式不支持
我很无能,该怎么办?
它可能是在双斜杠'//'在那里试图解释为URL? – sstn
@sstn我应该删除/ /斜杠? – Chris
如果这应该表示文件共享路径(即UNC),则它需要位于前面的'\\\\'。 –