TempImage位于当前Web应用程序的根目录下。当我尝试设置图像的ImageUrl时,出现以下错误。出于某种原因,asp.net web服务器试图找到它自己当前的根目录下的Asp.NET开发服务器DirectoryNotFoundException
这就是我要做的:
<asp:image ImageUrl="~/TempImages/... />
香港专业教育学院还试图
<asp:image ImageUrl="/TempImages/... />
<asp:image ImageUrl="./TempImages/... />
<asp:image ImageUrl="TempImages/... />
返回此错误:
找不到路径的一部分'C:\ Program Files \ Common Files \ Microsoft Shared \ DevServer \ 9.0 \ TempImage
这就是我正在做的,我得到的错误找不到路径的一部分'C:\ Program Files \ Common Files \ Microsoft Shared \ DevServer \ 9.0 \ TempImage \ image.jpg – theKing 2009-06-26 04:26:27