« Previous Next »

Thread: Cannot update web.config file in IIS 7.0 programatically

Last post 01-04-2009 10:10 PM by Leo Tang - MSFT. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 12-29-2008, 7:32 AM

    Cannot update web.config file in IIS 7.0 programatically

    Hello,

    I have a Web Service which I deploy in the IIS using some component from Install Shield. There are few configuration settings which I update using a component within the Web.config file after the installation is done. This works very fine with IIS 6.0, but not with IIS 7.0 in Windows Server 2008 32bit.

    Please can anyone throw some light on this as I am really stuck badly at this point.

    Thanks in advance.

    Regards

    Shashidhar J K

  • 12-29-2008, 11:40 AM In reply to

    Re: Cannot update web.config file in IIS 7.0 programatically

    shashidharjk:
    This works very fine with IIS 6.0, but not with IIS 7.0 in Windows Server 2008 32bit.

    How do you know it doesn't work?  Error messages, log entries, anything?  Which pipeline, what componet in the web.config, can you change the settings manually?

    Any information you can provide is far better than just telling us it doesn't work.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 12-30-2008, 12:49 AM In reply to

    Re: Cannot update web.config file in IIS 7.0 programatically

    Hello,

    We are using Classic  Pipeline mode.

    We are creating Application Pool and virtual directories using a C# console application.

    In the web.config we have a section called <appSettings> where we have our Web Service specific values held. These values are updated while the installation by reading from registry through Install Shield.

    There are no errors are displayed nor logged in the Event Viewer.

    We are able to update the Web.config file if we can run the component manually. 

    The updation works fine when we have this web.config file in any other path than C:\Inetpub\wwwroot through the Install Shield.

    Hope this information will give you a clear picture of the problem we are facing.

    Hoping for a positive response from you.

    Thanks and regards

    Shashidhar J K 

     

     

     

     

  • 01-04-2009, 10:10 PM In reply to

    Re: Cannot update web.config file in IIS 7.0 programatically

    Hi,

    I’d suggest you run FileMon to check the access of Web.config file to see if there are any clues about access denied error by reproducing the problem.
    You can get FileMon from below link:
    http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (4 items)
Microsoft Communities