Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从硬盘驱动器上的任何位置读取“file11.dat” ,但它不起作用。
紧随其后的是如下所示的错误。
ERROR :: Could not find file 'C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\file11.dat'.
如果我将文件放在指定的上述位置,它不会给我错误。请帮忙!
采用
Server.MapPath("location");
它将从您的解决方案文件夹本身中获取文件