Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

Smart mailer was working fine but a sudden error..

Posted 03 Nov 2004 12:52:51
1
has voted
03 Nov 2004 12:52:51 piet kees posted:
I have a template mailing application setup and everthing was working fine. Suddenly i got this error...

Server.MapPath() error 'ASP 0171 : 80004005'

Missing Path

/ScriptLibrary/incSmartMailer.asp, line 1025

The Path parameter must be specified for the MapPath method.


Whats the dilly...??? Thanx in advance...


Corstiaan

Replies

Replied 03 Nov 2004 23:38:22
03 Nov 2004 23:38:22 Rene Bandsma replied:
Hi Corstiaan,

the ServerMapPath() replaces the full path of you website location e.g. "c:\inetpub\wwwroot\". The error looks to me like your path does not exsist anymore. Maybe you (or your host) has changed something in their directory structure.

If not post the <b>relevant</b> (so do not paste all) code back so we can check line 1025 in your application.
Replied 03 Nov 2004 23:42:51
03 Nov 2004 23:42:51 piet kees replied:
Here's my code...

Public Sub done()
debug "Done...&lt;br/&gt;"
if progressBar &lt;&gt; "" then
if m_fso.FileExists(Server.MapPath(progressFilePath) & "/" & Session.SessionId) then
m_fso.DeleteFile(Server.MapPath(progressFilePath) & "/" & Session.SessionId)
end if
end if
End Sub

Thanx

Corstiaan
Replied 04 Nov 2004 11:27:35
04 Nov 2004 11:27:35 Rene Bandsma replied:
Looks like you havent't inserted the Include file (incSmartMailer.asp) in your ScriptLibrary path or that there is not path called "progressFilePath" / "Session.SessionId". THose are not real paths but I thing DIM strings defined elsewhere in the code like:

DIM progessFilePath = "pathToProgress".
Replied 15 Nov 2004 17:22:36
15 Nov 2004 17:22:36 myke black replied:
I would recommend adding a couple of lines of code to make sure that the path variable exists before attempting to use server.mappath, i.e.

Public Sub done()
debug "Done...&lt;br/&gt;"
if progressBar &lt;&gt; "" then
if progressFilePath &lt;&gt; "" then
if m_fso.FileExists(Server.MapPath(progressFilePath) & "/" & Session.SessionId) then
m_fso.DeleteFile(Server.MapPath(progressFilePath) & "/" & Session.SessionId)
end if
else
response.write("could not send mail - progressFilePath is not defined."
end if
end if

End Sub

Reply to this topic