Reputation: 5
I've come across which states that part of the file path cannot be found. I'm fairly new to coding, but is this mistake obvious?
I've created the same application before off a USB
Which works fine, so quite confused as to why the application on my machine isn't.
Update - thank you for the comments so far.
Upvotes: 0
Views: 911
Reputation: 329
Assuming you want the relative directory of \Images you want to change line 33 to:
filename = Path.Combine(Server.MapPath("~/Image"), fileName);
You are missing the tilde '~' to make it relative.
Upvotes: 1