I'm using IIS 5.1 under win XP Pro SP1.
I'm trying to delete a file using FileSystemObjec t
Set fso = CreateObject("S cripting.FileSy stemObject")
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 4 1535 http://www.aspfaq.com/show.asp?id=2180
Ray at work
"SYR" <sy******@liber tysurf.fr> wrote in message
news:94******** *************** **@posting.goog le.com... I'm using IIS 5.1 under win XP Pro SP1. I'm trying to delete a file using FileSystemObjec t
Set fso = CreateObject("S cripting.FileSy stemObject") 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
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******@liber tysurf.fr> wrote in message
news:94******** *************** **@posting.goog le.com... I'm using IIS 5.1 under win XP Pro SP1. I'm trying to delete a file using FileSystemObjec t
Set fso = CreateObject("S cripting.FileSy stemObject") 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
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******@liber tysurf.fr> wrote in message
news:94******** *************** **@posting.goog le.com... I'm using IIS 5.1 under win XP Pro SP1. I'm trying to delete a file using FileSystemObjec t
Set fso = CreateObject("S cripting.FileSy stemObject") 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
Thanks a lot... How could i think my antivirus cause my ASP scripts crash ! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 problem. The program may crash
unexpectedly while writing to the file. If so, my program should
detect this during startup, and then (during startup) probably delete the
data added to the file and redo the writing operation.
|
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 for very long periods of time. Say 72 hours
or more.
|
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 delete a character at each end of a line.
car = fgetc(myFile);
while (car != EOF) {
|
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 problem: my vb.net program has problems with UNC. If the UNC
server is restarted or goes off-line, my VB.net program crashes. The code
for UNC access to the file is included below and is put in the tick event of
a form timer control running every...
|
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;
while(...)
{
list = new char ;
strncpy(list, c_TempFilename, Stringlength);
| |
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))
{
System.IO.FileInfo oFI = new System.IO.FileInfo(ofile);
|
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, even after the
first process is finished with it, except in the case where the first
process crashes. In pseudo code..
* Open file with exclusive lock
* Process file - failure will throw exception, skipping 'Remove
|
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 errorCode, String str)
at System.IO.FileStream.WriteCore(Byte buffer, Int32 offset,
Int32 count)
at System.IO.FileStream.FlushWrite()
|
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); }
};
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |