Problems with filesystemobject under ASP on WinXP Pro
Hi,
I'm having problems creating a text file using the filesystemobject. It works quite happily testing to see if a folder exists so I'm assuming here that it is a permissions problem. I've tried giving the IUSR_WORKSTATION user rights to read / write etc., using both the Internet Information Server snap-in and also using the normal expolorer and clicking the directory and properties and setting the security.
Question is...
Am I doing this for the correct user and any other suggestions ?!
It used to work fine on a previous install under Win2K. I'm just wondering if MS have tightened security anywhere that's stopping me doing what I want to do.
cheers
Andy
[email protected]
www.palomex.com
Interactive Website Design and Development
Peter J. Boettcher posted this at 14:54 — 14th December 2001.
They have: 812 posts
Joined: Feb 2000
You're using the right account, the account IIS uses always starts with "IUSR_" then the name of the machine. It might help if we had the exact error message. If you want to narrow the problem try creating a folder inside the web, give it write permissions (using Internet Services Manager), then try creating a folder there using FSO.
If it still doesn't work try giving the IUSR account "full control" permission on that folder.
PJ | Are we there yet?
pjboettcher.com
andymac posted this at 16:11 — 14th December 2001.
They have: 14 posts
Joined: Dec 2001
Hi,
The problem is that there isn't an error message. It just hangs. Doing methods such as fileexists work fine, so the user account has permissions to see the directory, but when you try and do something that involves write permissions, it just hangs there and does nothing. You don't even get an ASP script timeout. Then to get it to work again, you sometimes have to restart IIS.
I've given the IUSR_WORKSTATION admin rights and it still doesn't work !
Cheers
Andy
[email protected]
www.palomex.com
Interactive Website Design and Development
Peter J. Boettcher posted this at 16:18 — 14th December 2001.
They have: 812 posts
Joined: Feb 2000
Hmm. Did you add IIS after the fact or did you install it when XP was installed? Maybe it wasn't installed correctly, or somehow its gotten munched. Can you remove and reinstall IIS? Maybe the file you're trying to write to is currently in use?
PJ | Are we there yet?
pjboettcher.com
andymac posted this at 16:22 — 14th December 2001.
They have: 14 posts
Joined: Dec 2001
Hi,
Please correct me if I'm wrong, but you can't install IIS as part of a standard XP installation. I've always had to do it "after the fact" by adding / removing windows components.
I think I'll un-install it and re-install. At least that way, I know what I'm doing.
I've had a huge load of problems debugging with IIS installed on a server as well - just doesn't want to play and the MS documentation tells me to enable a DCOM component that isn't actually installed on my server ! (Small business server). This is why I've gone back to using IIS on my XP workstation rather than 2K server.
I'll let you know what happens when I re-install IIS.
The file I'm trying to write doesn't exist, so that shouldn't be a problem.
cheers
Andy
[email protected]
www.palomex.com
Interactive Website Design and Development
andymac posted this at 20:36 — 14th December 2001.
They have: 14 posts
Joined: Dec 2001
Update...
Uninstalled IIS and reinstalled IIS and still no joy...
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.