Basic Permissions Problem HELP !!!

  • Thread starter Thread starter Dougie
  • Start date Start date
D

Dougie

I've built a web service that accesses a XML file and writes to it. The
methods are correct, but I have a permissions problem when writing to the
file. Can anyone help me? I'm using IIS with Visual Studio on XP Pro.

I'd greatly appreciate any help, I'm supposed to hand the project in
tomorrow.

Doug.
 
It could be many things, but since you didn't mention your setup, I'm assuming you probably haven't gone past using the aspnet account to access local files. So I would say to check this XML file and make sure the aspnet account has write permissions on it. If you're in a crunch just give "everyone" full-control permissions on it :-) But that isn't recommended...
 
How can I change the ASP account to access my file ??

Thanks.


It could be many things, but since you didn't mention your setup, I'm
assuming you probably haven't gone past using the aspnet account to access
local files. So I would say to check this XML file and make sure the aspnet
account has write permissions on it. If you're in a crunch just give
"everyone" full-control permissions on it :-) But that isn't recommended...
 
put this in web.config
<identity impersonate="true" userName="somedomainuser" password="somepassword" />
put a domain username/password that would have access to this file.
 
Thanks very much, I *greatly * appreciate it.

Doug.


put this in web.config
<identity impersonate="true" userName="somedomainuser"
password="somepassword" />
put a domain username/password that would have access to this file.
 
Back
Top