Ciao a tutti.

Ho questo codice:
codice:
if rs.eof then 

response.write "Nessun record disponibile

else

set fso = createobject("scripting.filesystemobject")
file_da_creare = rs("uoat") & "_"& day(date())& "-" & month(date())& "-"& year(date()) &".doc"
path_temp = server.mappath("&file_da_creare&")


end if

rs.Close
Cn.Close
Set rs = Nothing
Set Cn = Nothing
%>
che però restituisce errore nell' include file quando non ho record da estrarre.

Include file:
codice:
if rs.eof then 

response.write "Nessun record disponibile"

else

'codice per invio email

link.AttachFile path_temp <---- riga dell'errore

rs.Close
Cn.Close
Set rs = Nothing
Set Cn = Nothing
end if
L'errore segnalato è il seguente:
Error Type:
(0x80004005)
Unspecified error
/sendemail.asp, line 53
Da che dipenderà? Grazie