Each file on a Web server has two ways of being accessed - through a virtual path and through a physical path. The virtual path is the path one would enter into their browser's Address bar, for example:
The bold part of the URL above is referred to as the virtual path. The physical path is the actual drive, directory, and filename of a particular file on the Web server. For example, on your computer, if you run Windows 9X, your Win.ini file's physical path is C:\WINDOWS\WIN.INI (assuming you installed Windows on your C: drive).
You can obtain the virtual path of a particular ASP page by using the Request.ServerVariables collection.
will output the virtual path of the ASP page it is entered into.
"How do we translate a virtual path into a physical path?" The answer is to use Server.MapPath, a function that takes one argument, a virtual path, and returns the corresponding physical path.
If you want to obtain the physical path of the executed ASP page, you could use the PATH_INFO ServerVariable in conjunction with Server.MapPath, like so:
Once you have finished, save the test.asp file and upload it through FTP to your webspace inside your image upload directory ( i.e. images_upload).
Run the file test.asp in your browser (that is go to the url http://www.yourdomain.com/images_upload/test.asp ) .
Now change the "StrPath and StrPathShort" values, in common.asp file, with the results of the test.asp file [ without the final part: test.asp ].
If the error persists then you will need to check and if necessary change the permissions on the IIS server.