Problem writing to file....

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

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!
 
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.
 
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?
 
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!
 
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.
 
Back
Top