Basic Permissions Problem HELP !!!

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.
 
R

Raterus

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...
 
D

Dougie

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...
 
R

Raterus

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

Dougie

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top