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 Daniel Pfeffer

    For those who are not (yet...) old farts, JCL was the Job Control Language used to set job parameters on IBM mainframes. It had a few variants, and so many options that most people got an expert to prepare the cards for them, and then re-used them for every job.

    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

    M Offline
    M Offline
    MikeTheFid
    wrote on last edited by
    #41

    In the early 1980's I was a "Customer Engineer" and I wrote a CLIST (later REXX) program on TSO that gathered option choices and produced and submitted the JCL. Damn near drove me insane. I didn't end up in the funny farm but I can see from my window.

    Cheers, Mike Fidler "I intend to live forever - so far, so good." Steven Wright "I almost had a psychic girlfriend but she left me before we met." Also Steven Wright "I'm addicted to placebos. I could quit, but it wouldn't matter." Steven Wright yet again.

    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?

      A Offline
      A Offline
      Adam ONeil Travelers Rest SC
      wrote on last edited by
      #42

      I certainly don't mind the idea of them (e.g. place to put connection strings and other straightforward config stuff), but I agree they are mysterious and verbose in other areas.

      1 Reply Last reply
      0
      • D Daniel Pfeffer

        For those who are not (yet...) old farts, JCL was the Job Control Language used to set job parameters on IBM mainframes. It had a few variants, and so many options that most people got an expert to prepare the cards for them, and then re-used them for every job.

        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

        S Offline
        S Offline
        svella
        wrote on last edited by
        #43

        When I interned at IBM back in 1985, there was a room full of "Computer Operator"s staffed 24x7, whose primary job was to monitor looking for jobs that didn't run because of an error in the JCL used to submit it and then try to fix the JCL and resubmit. They kept very busy. The wife of one of my mentors there was the manager of that team.

        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?

          M Offline
          M Offline
          mixfede
          wrote on last edited by
          #44

          Why ?? But me its ok

          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?

            M Offline
            M Offline
            mixfede
            wrote on last edited by
            #45

            Why ?? For me its ok

            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?

              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