PhotoUpload.SaveAs(Server.MapPath("C:\\Users\\Renu\\Documents\\Visual Studio 2010\\WebSites\\matrimony\\App_Data\\images"+filename));
Here, PhotoUpload is name of a FileUpload component, filename is a simple string object. the content of PhotoUpload should be saved into the folder named "images" under App_Data folder. but after executing, I get the following error:
C:/Users/Renu/Documents/Visual Studio 2010/WebSites/matrimony/App_Data/images
Is a physical path, but a virtual path was expected. I don't know how to solve this error.