I'm trying to save a file on the server and I keep getting:
The SaveAs method is configured to require a rooted path, and the path '~\ImportFolder\chrome.dll' is not rooted.
However I created the folder in Visual Studio and it exist on the disk. What makes a path rooted?
HttpPostedFileBase file = Request.Files[i];
string path = Constants.importFolder;
path = Path.Combine(path, file.FileName);
Server.MapPath(path);
file.SaveAs(path);