Asp.NET Development Server DirectoryNotFoundException -
Tempimage is located under the root directory of the current web app when I try to set the imageUrl of an image then down to me Error is encountered. For some reason the ASP.NET Web server is trying to detect the directory under its current root
This is what I am trying to do:
& lt; Asp: image ImageUrl = "~ / TempImages / ... />
Ive also tried
& asp: Image ImageUrl = "/ TempImages / ... /> & Lt; Asp: image ImageUrl = "./tempimages / ... /> & lt; asp: Image ImageUrl =" TempImages / ... />
Returns to this error:
No part of the path could be found: 'C: \ Program Files \ Normal Files \ Microsoft \ Shared \ DevServer \ 9.0 \ TempImage
Just specify if the image is in the root of the current application:
& Lt; Asp: image image url = "~ / imagename.jpg" runat = "server" />
Comments
Post a Comment