web setup project + security changes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthi84
    Contributor
    • Dec 2006
    • 270

    web setup project + security changes

    Hi Experts,

    I have developed a web application using asp.net with c# 2.0. I have created an installer with VS 2005 and its working fine. My code has an option to update the database connection settings from a web page. My problem here is when i use an installer the files are installed to a virtual directory under default root directory of the IIS where the virtual directory has no rights for the ASPNET account to edit the file. So it throws an error stating that the permission to the web.config file is denied.

    I need a solution to add this user to the virtual directory with full rights at the time of installation. I am looking forward for your solutions.

    Thanks & Regards,
    Karthi
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    You could either user impersonation in your code...you can let the user enter admin mane and password ... Or you could develop a windows application to update the web config ...

    Comment

    Working...