006~ASP 0172~Invalid Path

Published by

Posted on December 07, 2007

“006~ASP 0172~Invalid Path~The Path parameter for the MapPath method must be a virtual path. A physical path was used.

—————

virtual path means the url address exclude the domain name parts, for instance, the url of www.abc.com/forum/admin/index.php would be /forum/admin.
physical path means from local drive name + path to resourse data, for instance, as your code written in above post.
since then, have a change the Server.MapPath(physical path) statement to Server.MapPath(virtual path).