error guardar fichero
Publicado por Racsus (37 intervenciones) el 10/04/2008 12:27:10
Hola
Cuando ejecuto el siguiente código me da un error de no se puede mostrar la página, intento capturar el error para ver cual es el problema pero sigue dandome el error no se puede mostrar la página:
dim fs,tfile
set fs=Server.CreateObject("Scripting.FileSystemObject")
if instr(request.ServerVariables("PATH_INFO"),"/ibergest")>0 then
On error resume next
set tfile=fs.CreateTextFile(request.serverVariables("APPL_PHYSICAL_PATH") & "ibergestwebibergestwebdatos" & sFichero)
if err.number < > 0 then
response.write(err.description)
response.end
end if
else
On error resume next
set tfile=fs.CreateTextFile("c:inetpubwwwrootwebibergestwebdatos" & sFichero)
if err.number < > 0 then
response.write(err.description)
response.end
end if
end if
la carpeta c:inetpubwwwrootwebibergestwebdatos, tiene permisos de lectura/escritura para el usuario anonimo y para todos los usuarios. El antivirus está desactivado, las librerias registradas, no se donde puede estar el error...
Saludos, Oscar
Cuando ejecuto el siguiente código me da un error de no se puede mostrar la página, intento capturar el error para ver cual es el problema pero sigue dandome el error no se puede mostrar la página:
dim fs,tfile
set fs=Server.CreateObject("Scripting.FileSystemObject")
if instr(request.ServerVariables("PATH_INFO"),"/ibergest")>0 then
On error resume next
set tfile=fs.CreateTextFile(request.serverVariables("APPL_PHYSICAL_PATH") & "ibergestwebibergestwebdatos" & sFichero)
if err.number < > 0 then
response.write(err.description)
response.end
end if
else
On error resume next
set tfile=fs.CreateTextFile("c:inetpubwwwrootwebibergestwebdatos" & sFichero)
if err.number < > 0 then
response.write(err.description)
response.end
end if
end if
la carpeta c:inetpubwwwrootwebibergestwebdatos, tiene permisos de lectura/escritura para el usuario anonimo y para todos los usuarios. El antivirus está desactivado, las librerias registradas, no se donde puede estar el error...
Saludos, Oscar
Valora esta pregunta


0