Archive for the ‘ASP’ Category
Server.MapPath() error ‘ASP 0173 : 80004005′
Thursday, July 16th, 2009
I had a problem today with Server.MapPath() while trying to check for images using a relative path. I got the following error:
Server.MapPath() error 'ASP 0173 : 80004005'
My code being;
Dim fs
Set fs = Server.CreateObject("Scripting.FileSystemObject")
If fs.FileExists(Server.MapPath("http://localhost/images/myimage.jpg")) Then
'do something
Else
'do something else
End If
Basically I needed to pass virtual path in my app. So I had to remove 'http://localhost' and it worked! :)… Continue reading