Last post Dec 29, 2010 07:01 AM by manuiet
Dec 28, 2010 08:49 AM|manuiet|LINK
I have to open a folder in my application, I have specified its path in a process -
The window will open in Visual studio but not opened in when I tried to create a virtual directory on IIS.
Any help will be highly appreciated.
Dec 28, 2010 09:00 AM|sachingusain|LINK
Its because the Cassini Web Server runs under your user account (which could have admin rights) where as ASP.NET worker process runs under restricted user rights account "Network Service".
If you want to access a folder in there then you have to grant additional rights to this user or else configure IIS to run under a different account that has privileges to access that folder.
Dec 28, 2010 09:41 AM|manuiet|LINK
Will u please tell me that which user I have to give permissions.. its aspnet user ??
Dec 28, 2010 10:06 AM|sachingusain|LINK
Best approach would be to create a new user and then impersonate it while running ASP.NET.
I am suggesting this because if you grant access to Network Service user then you are elevating the privileges of this user. This may open doors for security holes.
Dec 29, 2010 07:01 AM|manuiet|LINK
For achieving the above functionality I implemented another approach, I used a hyperlink to open this doc instead of opening a new window (I am not using Process.Start any more). It works perfectly fine.