Previous Next

Thread: Win 2000 IIS 5 not reading web.config

Last post 03-18-2008 3:27 PM by carlsonad. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 03-18-2008, 12:03 PM

    • carlsonad
    • Not Ranked
    • Joined on 06-20-2007, 4:33 PM
    • MN
    • Posts 3
    • carlsonad

    Win 2000 IIS 5 not reading web.config

    I have a customer that is running IIS 5 on windows 2000.

    We have installed our web application on their server and for what ever reason asp.net does not appear to be able to read the app settings in our web.config in our virtual directory.

    It does not appear to be able to read the web.config file at all, because if i put a bunch of garbage in the web.config file the site still runs.  Also, if i move the app settings into the system web.config our site reads the settings just fine.

    Has any one else run into this issue?

     Thanks,

    Aaron

  • 03-18-2008, 12:51 PM In reply to

    Re: Win 2000 IIS 5 not reading web.config

    First, IIS 5.0 doesn't read the web.config, or even care that you have one.  That's ASP.NET and IIS 7.  Second, how do you know it doesn't read it?  Or that you're even working with the correct file?  Try changing something that should change the behavior of the application.  And try the forums at www.asp.net for help.  Same login as here.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 03-18-2008, 3:21 PM In reply to

    • carlsonad
    • Not Ranked
    • Joined on 06-20-2007, 4:33 PM
    • MN
    • Posts 3
    • carlsonad

    Re: Win 2000 IIS 5 not reading web.config

    carlsonad:

    We have installed our web application on their server and for what ever reason asp.net does not appear to be able to read the app settings in our web.config in our virtual directory.

     

    I am aware that IIS 5.0 does not care about the web.config, but I agree the title of the post is misleading. 

    In any case, I know that It is not reading the web.config because if I put a bunch of garbage (invalid xml) in local web.config asp.net does not throw and exception and I am able to navigate the site.  Also, I am able to move the appSettings into the machine web.config (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config) and the website is able to read the custom appSettings which also leads me to the same conclusion.

    Thanks,

     Aaron

  • 03-18-2008, 3:27 PM In reply to

    • carlsonad
    • Not Ranked
    • Joined on 06-20-2007, 4:33 PM
    • MN
    • Posts 3
    • carlsonad

    Re: Win 2000 IIS 5 not reading web.config

    They got it figured out.

    Apperently they installed IIS to a drive other then C and the "Local Path" on the "Home Directory" tab of the default website was pointing to the C drive and not the drive they installed to.  They fixed that and now every thing is working.

    Thanks for the brain cycles!

    Aaron.

Page 1 of 1 (4 items)
Page view counter