473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

file delete crashes server

SYR
I'm using IIS 5.1 under win XP Pro SP1.
I'm trying to delete a file using FileSystemObject

Set fso = CreateObject("Scripting.FileSystemObject")
fichier=server.MapPath("/photos/" & dir & "/" & nom
If fso.FileExists(fichier)) Then
response.write("fichier existe")
fso.DeleteFile(fichier)
end if

this code seems correct, but when the server executes it, the server
"crashes" i.e. : internet explorer still reaching the page (white
screen), and nothing appens. I have to kill dllhost.exe an restart the
web service...

Does anyone have an idea ?

Thanks,
beb
Jul 19 '05 #1
4 1504
http://www.aspfaq.com/show.asp?id=2180

Ray at work

"SYR" <sy******@libertysurf.fr> wrote in message
news:94*************************@posting.google.co m...
I'm using IIS 5.1 under win XP Pro SP1.
I'm trying to delete a file using FileSystemObject

Set fso = CreateObject("Scripting.FileSystemObject")
fichier=server.MapPath("/photos/" & dir & "/" & nom
If fso.FileExists(fichier)) Then
response.write("fichier existe")
fso.DeleteFile(fichier)
end if

this code seems correct, but when the server executes it, the server
"crashes" i.e. : internet explorer still reaching the page (white
screen), and nothing appens. I have to kill dllhost.exe an restart the
web service...

Does anyone have an idea ?

Thanks,
beb

Jul 19 '05 #2
NAV script blocking perhaps?
Search www.aspfaq.com for FSO, lots of good stuff for troubleshooting there.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"SYR" <sy******@libertysurf.fr> wrote in message
news:94*************************@posting.google.co m...
I'm using IIS 5.1 under win XP Pro SP1.
I'm trying to delete a file using FileSystemObject

Set fso = CreateObject("Scripting.FileSystemObject")
fichier=server.MapPath("/photos/" & dir & "/" & nom
If fso.FileExists(fichier)) Then
response.write("fichier existe")
fso.DeleteFile(fichier)
end if

this code seems correct, but when the server executes it, the server
"crashes" i.e. : internet explorer still reaching the page (white
screen), and nothing appens. I have to kill dllhost.exe an restart the
web service...

Does anyone have an idea ?

Thanks,
beb

Jul 19 '05 #3
Just a guess, but, I'd say it's because of;

fichier=server.MapPath("/photos/" & dir & "/" & nom
If fso.FileExists(fichier)) Then

It should be;

fichier=server.MapPath("/photos/" & dir & "/" & nom)
If fso.FileExists(fichier) Then

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
SYR <sy******@libertysurf.fr> wrote in message
news:94*************************@posting.google.co m...
I'm using IIS 5.1 under win XP Pro SP1.
I'm trying to delete a file using FileSystemObject

Set fso = CreateObject("Scripting.FileSystemObject")
fichier=server.MapPath("/photos/" & dir & "/" & nom
If fso.FileExists(fichier)) Then
response.write("fichier existe")
fso.DeleteFile(fichier)
end if

this code seems correct, but when the server executes it, the server
"crashes" i.e. : internet explorer still reaching the page (white
screen), and nothing appens. I have to kill dllhost.exe an restart the
web service...

Does anyone have an idea ?

Thanks,
beb

Jul 19 '05 #4
SYR
Thanks a lot... How could i think my antivirus cause my ASP scripts crash !
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
by: Joseph | last post by:
Hi I'm writing a commercial program which must be reliable. It has to do some basic reading and writing to and from files on the hard disk, and also to a floppy. I have foreseen a potential...
3
by: J Poirier | last post by:
Hi All, I'm hoping that someone might have some pointers or examples on how to proceed with a solution to the following problem: A test application, which produces a trace file, is being run...
26
by: S!mb | last post by:
Hi all, I'm currently developping a tool to convert texts files between linux, windows and mac. the end of a line is coded by 2 characters in windows, and only one in unix & mac. So I have to...
8
by: Sarah | last post by:
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network drive resource (S:\Path\FileName). Here is my...
13
by: Nemo | last post by:
Hello Folks, I need to manipulate a list of char strings as follows, but when I want to delete the pointer created with new at the end, delete operator crashes, any idea? char* list;...
2
by: MSDN | last post by:
Hello, I have the following code below that does not work for me because the directory has millions of files. foreach (string ofile in System.IO.Directory.GetFiles(strMyDir)) { ...
5
by: pgdown | last post by:
Hi, I have several processes accessing files from one folder, but only one process should ever access each file. Once one process has the file, no other process should be allowed to access it,...
0
by: jeevankodali | last post by:
Hi I have a multi threaded ftp server. 2 days back it threw an exception: System.IO.IOException: The specified network name is no longer available. at System.IO.__Error.WinIOError(Int32...
8
by: Rahul | last post by:
Please read the following code class Test{ public: void * operator new (size_t t) { return malloc(t); } void operator delete (void *p) { free(p); } };
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.