View Single Post
  #9 (permalink)  
Old January 28th, 2008, 06:36 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi hdpark,

You may need to map UserFiles to a physical path first using Server.MapPath. E.g.:

FileUpload1.SaveAs(Server.MapPath("/UserFiles/") & FileUpload1.FileName)

If that doesn't help, can you post the exact error message? I doubt it's just "is not rooted"...

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.