Granting a webservice writing permission

  • Thread starter Thread starter gilad.kapel
  • Start date Start date
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.
 
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
 
Back
Top