Granting a webservice writing permission

G

gilad.kapel

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

Martin Carpella

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
 

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

Top