By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,617 Members | 1,708 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,617 IT Pros & Developers. It's quick & easy.

Granting a webservice writing permission

P: n/a
Hi

Some background: working with VS 2005 + Win2003 + IIS6.

I have a webservice that creates (if the directory doesn't exist the
webservice creates it) a directory "Temp" under the webservice local
directory (usualy c:\inetpub\wwwroot\<service name>\Temp)

I'm able to create the directory but when I try to write to it I get
premission error. for solving this I allow "Full Control" to IIS_WPG
(right clock, properties, secutiry...)

I would like to add this premission right after I create the directory
within the webservice code.

The code is writte in C#.

Any ideas ?

Gilad.

Aug 22 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"gi*********@gmail.com" <gi*********@gmail.comwrites:
I would like to add this premission right after I create the directory
within the webservice code.
I'm afraid you can't grant you more privileges than you already have. I
suppose, all you could do is create the directory beforehand and assign
the permissions manually.

I's also suggest you put the working directory outside of the wwwroot,
to avoid security implications with maybe the directory being available
via HTTP from the Web.

Best regards,
Martin
Aug 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.