Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Am I the only C# develeoper who HATES web config files....?

Am I the only C# develeoper who HATES web config files....?

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studioquestion
56 Posts 28 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D David Radcliffe 0

    These files are a pain to work with, are full of meaningless gibberish, and we are expected to add this guff without any support from Visual Studio... Does anyone know every section and item that a web config file can hold?

    W Offline
    W Offline
    Wearwolf
    wrote on last edited by
    #46

    IIS Configuration Reference : The Official Microsoft IIS Site[^]

    1 Reply Last reply
    0
    • L Lost User

      Try keeping up with INI files. :-\

      When you are dead, you won't even know that you are dead. It's a pain only felt by others. Same thing when you are stupid.

      T Offline
      T Offline
      TNCaver
      wrote on last edited by
      #47

      .ini files, specific to each application, make a lot more sense than one big registry. If an INI file gets screwed, only one app is screwed. If the registry gets screwed, your whole OS is screwed. If they get too big, then a good INI-specific editing tool is needed, but it's still easier to maintain and understand than the registry. MS should have abandoned the registry long ago.

      If you think 'goto' is evil, try writing an Assembly program without JMP.

      K 1 Reply Last reply
      0
      • T TNCaver

        .ini files, specific to each application, make a lot more sense than one big registry. If an INI file gets screwed, only one app is screwed. If the registry gets screwed, your whole OS is screwed. If they get too big, then a good INI-specific editing tool is needed, but it's still easier to maintain and understand than the registry. MS should have abandoned the registry long ago.

        If you think 'goto' is evil, try writing an Assembly program without JMP.

        K Offline
        K Offline
        Kirk 10389821
        wrote on last edited by
        #48

        At one time, there was win.ini / system.ini Shove EVERYTHING IN THERE. == Crash == Okay, every app gets it's own INI file, we have learned apps require more data than can be properly stored in an INI file (was it like 16K)? == Boom == We have a SINGLE registry. It can grow as needed, put everything in there! (Ignore the 3 minute login, roaming profiles (OMG) and other stuff) == Bang == So now we have Registry for SOME Things, INI Files for other things, and config files for other things. and MANY require some combination of all of them! In the end, property bags (some kind of complex XML/JSON configuration file is what is required). They should be application specific, and WELL-DOCUMENTED by the VENDOR. And how you add your own stuff should be VERY VERY CLEAR. I hope we get there... Before I retire.

        T J 2 Replies Last reply
        0
        • D Daniel Pfeffer

          Bring back JCL!

          If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

          K Offline
          K Offline
          Kirk 10389821
          wrote on last edited by
          #49

          The Java Command Line?

          1 Reply Last reply
          0
          • K Kirk 10389821

            At one time, there was win.ini / system.ini Shove EVERYTHING IN THERE. == Crash == Okay, every app gets it's own INI file, we have learned apps require more data than can be properly stored in an INI file (was it like 16K)? == Boom == We have a SINGLE registry. It can grow as needed, put everything in there! (Ignore the 3 minute login, roaming profiles (OMG) and other stuff) == Bang == So now we have Registry for SOME Things, INI Files for other things, and config files for other things. and MANY require some combination of all of them! In the end, property bags (some kind of complex XML/JSON configuration file is what is required). They should be application specific, and WELL-DOCUMENTED by the VENDOR. And how you add your own stuff should be VERY VERY CLEAR. I hope we get there... Before I retire.

            T Offline
            T Offline
            TNCaver
            wrote on last edited by
            #50

            Kirk 10389821 wrote:

            I hope we get there... Before I retire.

            A beautiful plan, but I'm not holding my breath for MS to give up on the registry. With any luck I'll retire in 7 years. I can probably suffer with the status quo that long.

            If you think 'goto' is evil, try writing an Assembly program without JMP.

            1 Reply Last reply
            0
            • D David Radcliffe 0

              These files are a pain to work with, are full of meaningless gibberish, and we are expected to add this guff without any support from Visual Studio... Does anyone know every section and item that a web config file can hold?

              P Offline
              P Offline
              Peter Adam
              wrote on last edited by
              #51

              Remember, these configuration thingies, including dependency injection and other modern architectures, are for turning your glorious compiled language into BASIC. Not even into Visual BASIC.

              1 Reply Last reply
              0
              • P PeejayAdams

                In a word: no.

                98.4% of statistics are made up on the spot.

                C Offline
                C Offline
                Charles Programmer
                wrote on last edited by
                #52

                BINGO! Finally someone who understands how to answer a question. Thank you, kind Sir.

                1 Reply Last reply
                0
                • K Kirk 10389821

                  At one time, there was win.ini / system.ini Shove EVERYTHING IN THERE. == Crash == Okay, every app gets it's own INI file, we have learned apps require more data than can be properly stored in an INI file (was it like 16K)? == Boom == We have a SINGLE registry. It can grow as needed, put everything in there! (Ignore the 3 minute login, roaming profiles (OMG) and other stuff) == Bang == So now we have Registry for SOME Things, INI Files for other things, and config files for other things. and MANY require some combination of all of them! In the end, property bags (some kind of complex XML/JSON configuration file is what is required). They should be application specific, and WELL-DOCUMENTED by the VENDOR. And how you add your own stuff should be VERY VERY CLEAR. I hope we get there... Before I retire.

                  J Offline
                  J Offline
                  Josh_T
                  wrote on last edited by
                  #53

                  This reminds me of the time that CCP (Developer of the MMO Eve Online) accidentally deleted the boot.ini file from windows systems during a major update. Those were the days!

                  1 Reply Last reply
                  0
                  • D David Radcliffe 0

                    These files are a pain to work with, are full of meaningless gibberish, and we are expected to add this guff without any support from Visual Studio... Does anyone know every section and item that a web config file can hold?

                    T Offline
                    T Offline
                    thewazz
                    wrote on last edited by
                    #54

                    another link: GitHub - h5bp/server-configs-iis: IIS Web.Config Boilerplates[^]

                    1 Reply Last reply
                    0
                    • D David Radcliffe 0

                      These files are a pain to work with, are full of meaningless gibberish, and we are expected to add this guff without any support from Visual Studio... Does anyone know every section and item that a web config file can hold?

                      R Offline
                      R Offline
                      RugbyLeague
                      wrote on last edited by
                      #55

                      I hate config files of any description

                      1 Reply Last reply
                      0
                      • D David Radcliffe 0

                        These files are a pain to work with, are full of meaningless gibberish, and we are expected to add this guff without any support from Visual Studio... Does anyone know every section and item that a web config file can hold?

                        T Offline
                        T Offline
                        thund3rstruck
                        wrote on last edited by
                        #56

                        You think the default web app web.config files are bad in their vanilla form, just wait until you have to deploy into a secure environment. The Web.config is just one link in an inheritance chain that flows down from %WinDir%\System32\intetsrv\config\Applicationhost.config through each application directory to your web site's directory. You haven't lived until you've had to walk every config file in this chain to find the one that has a duplicate ISAPIRestriction or Authentication tag definition (this breaks the entire IIS worker process).

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups