I am trying to save a file to one of the folders in the webserver, where the asp.net files are deployed. On my dev pc, I used Environment.CurrentDirecotory and Directory.CurrentDirectory. I get the following values

"C:\\Program Files\\Microsoft Visual Studio 8\\Common7\\IDE"



I assume this will not be the value when the code is executed on the webserver. Originally, I thought the return path is where the aspx file was located and the correct path is something like this..."../folder/file.txt"


How do I get the correct folder path on the server or how about to approach the problem?

thanks..