Hi,
This is for my
published ASP.NET project.
I have an image that needs to be used in my application.
To draw the images onto my application I am using the following code:
Code:
Dim image = XImage.FromFile("/resources/Remortgage Quote Template.jpg")
gfx.DrawImage(image, 0, 0)
The error message I receive is:
The file 'D:\resources\Purchase Quote Template.jpg' does not exist
I have tried other path strings such as "~/resources/Remortgage Quote Template.jpg" and "../resources/Remortgage Quote Template.jpg"
I have ensured that the file has been correctly uploaded to the resources folder.
It concerns me that it is not searching through the wwwroot folder and is instead searching a D:\ drive.
Thanks
Joab