473,405 Members | 2,167 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,405 software developers and data experts.

Problem writing to file....

I just upgraded my dev system from win 2k to win xp pro. I have a website
I'm creating and when I login to the website it writes an entry to my
C:\GoodLogin.txt file. It worked fine for win2k. In my XP machine it won't
let me write to the file anymore. The file is there and it see's it. It is
not read-only.

Any ideas? Sounds like I have to grant permission to the file or something?
I am logged into xp with an 'admin' account.

Thanks!
Nov 18 '05 #1
4 1129
It doesn't matter who YOU'RE logged in as. It matters who your ASP.Net
application is logged in as. And you need to grant that user account file
system permission to write to that file.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"VB Programmer" <gr********@go-intechN0SPAM.com> wrote in message
news:uY**************@TK2MSFTNGP09.phx.gbl...
I just upgraded my dev system from win 2k to win xp pro. I have a website
I'm creating and when I login to the website it writes an entry to my
C:\GoodLogin.txt file. It worked fine for win2k. In my XP machine it won't let me write to the file anymore. The file is there and it see's it. It is not read-only.

Any ideas? Sounds like I have to grant permission to the file or something? I am logged into xp with an 'admin' account.

Thanks!

Nov 18 '05 #2
This is true for XP pro?

If so, isn't that the "ASP.NET Machine A..." account by default? I gave it
admin rights and it still doesn't work. What is the default ASP.NET user
account?
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eQ**************@TK2MSFTNGP12.phx.gbl...
It doesn't matter who YOU'RE logged in as. It matters who your ASP.Net
application is logged in as. And you need to grant that user account file
system permission to write to that file.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"VB Programmer" <gr********@go-intechN0SPAM.com> wrote in message
news:uY**************@TK2MSFTNGP09.phx.gbl...
I just upgraded my dev system from win 2k to win xp pro. I have a website I'm creating and when I login to the website it writes an entry to my
C:\GoodLogin.txt file. It worked fine for win2k. In my XP machine it won't
let me write to the file anymore. The file is there and it see's it.

It is
not read-only.

Any ideas? Sounds like I have to grant permission to the file or

something?
I am logged into xp with an 'admin' account.

Thanks!


Nov 18 '05 #3
I fixed it.

1. Folder Options/View - I unchecked "Use Simple File Sharing"
2. I gave the ASP.NET machine account full permissions to the folder.

Thanks!

"VB Programmer" <gr********@go-intechN0SPAM.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
This is true for XP pro?

If so, isn't that the "ASP.NET Machine A..." account by default? I gave it admin rights and it still doesn't work. What is the default ASP.NET user
account?
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eQ**************@TK2MSFTNGP12.phx.gbl...
It doesn't matter who YOU'RE logged in as. It matters who your ASP.Net
application is logged in as. And you need to grant that user account file
system permission to write to that file.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"VB Programmer" <gr********@go-intechN0SPAM.com> wrote in message
news:uY**************@TK2MSFTNGP09.phx.gbl...
I just upgraded my dev system from win 2k to win xp pro. I have a

website I'm creating and when I login to the website it writes an entry to my
C:\GoodLogin.txt file. It worked fine for win2k. In my XP machine it

won't
let me write to the file anymore. The file is there and it see's it.

It
is
not read-only.

Any ideas? Sounds like I have to grant permission to the file or

something?
I am logged into xp with an 'admin' account.

Thanks!



Nov 18 '05 #4
Straight out of the box? ASPNET by default.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"VB Programmer" <gr********@go-intechN0SPAM.com> wrote in message
news:#b**************@TK2MSFTNGP11.phx.gbl...
This is true for XP pro?

If so, isn't that the "ASP.NET Machine A..." account by default? I gave it admin rights and it still doesn't work. What is the default ASP.NET user
account?
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eQ**************@TK2MSFTNGP12.phx.gbl...
It doesn't matter who YOU'RE logged in as. It matters who your ASP.Net
application is logged in as. And you need to grant that user account file
system permission to write to that file.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"VB Programmer" <gr********@go-intechN0SPAM.com> wrote in message
news:uY**************@TK2MSFTNGP09.phx.gbl...
I just upgraded my dev system from win 2k to win xp pro. I have a

website I'm creating and when I login to the website it writes an entry to my
C:\GoodLogin.txt file. It worked fine for win2k. In my XP machine it

won't
let me write to the file anymore. The file is there and it see's it.

It
is
not read-only.

Any ideas? Sounds like I have to grant permission to the file or

something?
I am logged into xp with an 'admin' account.

Thanks!



Nov 18 '05 #5

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

Similar topics

2
by: Randy Jackson | last post by:
Hello all. Okay, this seems really stupid, but it's driving me up the wall. I have a simple script I've written to log some information to a text file. Everything seems to be okay, the code...
2
by: Pierre Rouleau | last post by:
Hi all! I'm trying to extend the functionality of the file object by creating a class that derives from file. MyFile class re-implements __init__(), write(), writelines() and close() to augment...
8
by: Brandon McCombs | last post by:
This may be the wrong group but I didn't see anything for VC++ so I'm trying here. I have a C++ book by Deitel and Deitel that says I can use fstream File("data.dat", ios::in | ios::out |...
25
by: Xah Lee | last post by:
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
6
by: arne.muller | last post by:
Hello, I've come across some problems reading strucutres from binary files. Basically I've some strutures typedef struct { int i; double x; int n; double *mz;
0
by: deacon57 | last post by:
FYI - If you are a computer scientist (or geek), this post may be for you. I wanted to log any search keywords, etc that are used on my site. I created a simple program that logs search terms...
2
by: Thelonious Monk | last post by:
I have a problem where some data is being eliminated. The problem is that the data contains signed numeric fields (the low-order byte of a negative number uses the first 4 bits as a sign and...
10
by: Rahul | last post by:
Friends, My Problem is related to writing a text file from a database using .Net. in a particular string format. I have a dataset with a table, let suppose in this table there are three fields....
5
by: Neil Crighton | last post by:
I'm using the zipfile library to read a zip file in Windows, and it seems to be adding too many newlines to extracted files. I've found that for extracted text-encoded files, removing all instances...
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: 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
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
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,...
0
jinu1996
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...
0
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...
0
agi2029
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,...
0
isladogs
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...

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.