473,320 Members | 1,914 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,320 software developers and data experts.

File System Object - not deleting file

I am using the File System Object to create server side cookies and part of
the Function that I am writing deletes a file but I am getting a permissions
denied error on that line of code.

I am using Integrated security only on this site but how do I get the
IUSER_Machinename account to work with Integrated Security?

- Lisa
Jun 6 '06 #1
3 1375

"Lise" <li***@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
I am using the File System Object to create server side cookies and part of the Function that I am writing deletes a file but I am getting a permissions denied error on that line of code.
Not entirely sure what a 'Server side cookie' is however I doubt that's
relevant
I am using Integrated security only on this site but how do I get the
IUSER_Machinename account to work with Integrated Security?

You can't IUSR_MachineName is the used to create a security token under
which the request runs when accessed anonymously. When using integrated
security the account provided by the client is used to generate the security
context.

Can you not give Domain Users the appropriate access to the file or the
folder where it resides?
- Lisa

Jun 6 '06 #2
Hi Anthony .. Thanks for the reply ..

I have given "Everyone" Full control on that directory and even tried the
parent directory as well.
I'm thinking that since I'm using the FSO to create the text file, it's
being created by the IUSER_account (even though I'm using integrated
security) .. and then it's trying to delete the file as the domain user
accesing the page .. and maybe something isn't working properly there??

- L

"Anthony Jones" <An*@yadayadayada.com> wrote in message
news:uw**************@TK2MSFTNGP04.phx.gbl...

"Lise" <li***@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
I am using the File System Object to create server side cookies and part of
the Function that I am writing deletes a file but I am getting a

permissions
denied error on that line of code.


Not entirely sure what a 'Server side cookie' is however I doubt that's
relevant

I am using Integrated security only on this site but how do I get the
IUSER_Machinename account to work with Integrated Security?


You can't IUSR_MachineName is the used to create a security token under
which the request runs when accessed anonymously. When using integrated
security the account provided by the client is used to generate the

security context.

Can you not give Domain Users the appropriate access to the file or the
folder where it resides?
- Lisa


Jun 8 '06 #3
> I have given "Everyone" Full control on that directory

I strongly recommend undoing that...

You have to pick IUSR_machineName explicitly when applying permissions.
This account is not automatically included in "Everyone" IIRC.

www.winternals.com has some great file access monitoring tools that will
help you figure out what user(s) is trying to delete the file, then we can
all stop guessing.

A
Jun 8 '06 #4

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

Similar topics

4
by: Mark | last post by:
Not sure this is the right place for this questions, but here goes: I get an error message when deleting an table from a Access database. The code is as follows and the error message is after...
3
by: kris.dorey | last post by:
Hi, Ive got the following code which seems ok but when the user runs the function for a second time I get an error message stating that the mdb is in use by another process. There is still an...
11
by: Steve Hoyer | last post by:
I am trying to deploy my first asp.net app to our webserver (2K server, IIS 5) My start page comes up and you can get to the subsequent pages that are tied into our sql server (2K). Each page...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
0
by: Bandit | last post by:
I'm populating a gridview (called docList) with document info from a network folder like so: Sub Show_Files(ByVal inputDir As String) Dim strFileNamePath As String = inputDir Dim dirInfo As...
3
by: Joe | last post by:
Hi, I have written a webpage that allows a user to delete files in asp.net with I am having a small problem. To access this page a user has to login via login.aspx page. After successful...
6
by: Don | last post by:
I'm having problems working with a streamwriter object. After closing the streamwriter and setting it to Nothing, I try to delete the file it was writing to, but I always get the following error...
2
by: SiouxieQ | last post by:
Hi there, I'm using the code below to try to delete a name from a list of names in a file. Unfortunately it doesn't quite do what I want it to. Instead of looking for the name in the...
4
by: linhardt | last post by:
I'm trying to upgrade my .NET 1.1 app from .NET 1.1 to .NET 2.0. I was having trouble upgrading from WSE 2.0 to WSE 3.0 because my app uses endpoints. I read somewhere that I can run .NET 2.0...
4
by: cmdolcet69 | last post by:
I have the below code that calls a function to delete a file that i added to a listview node. What happens is that that file doesn;t delete. Please help me out. I have included the event handler...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.