Click to See Complete Forum and Search --> : Error on saving files


dummyagain
December 18th, 2006, 10:05 PM
i got an errors of System.Web.HttpException: 'C:\Forum\upload\csv\Book1.csc' is not a valid virtual path

source of error is
fileUpEx.PostedFile.SaveAs(Server.MapPath(SaveLocation));

Thank you

karim_medusa
December 19th, 2006, 08:50 AM
Hi,

i think the value of SaveLocation is Wrong , for vitual path you should not use drive name
take a look at http://www.4guysfromrolla.com/webtech/121799-1.shtml