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 75 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 Dave Kreskowiak

    Nope! Most definitely not the only one. Though, I did just get done writing an interpreter that executes fairly simple scripts written in XML.

    System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject

    Click this: Asking questions is a skill. Seriously, do it.
    Dave Kreskowiak

    T Offline
    T Offline
    TheGreatAndPowerfulOz
    wrote on last edited by
    #31

    Dave Kreskowiak wrote:

    executes fairly simple scripts written in XML.

    Why? Why not use XSLT? :rolleyes:

    #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

    D 1 Reply Last reply
    0
    • T TheGreatAndPowerfulOz

      Dave Kreskowiak wrote:

      executes fairly simple scripts written in XML.

      Why? Why not use XSLT? :rolleyes:

      #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #32

      Because writing the XSD was bad enough! :-D

      System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      T 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Because writing the XSD was bad enough! :-D

        System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject

        Click this: Asking questions is a skill. Seriously, do it.
        Dave Kreskowiak

        T Offline
        T Offline
        TheGreatAndPowerfulOz
        wrote on last edited by
        #33

        Ugh! Forsooth!

        #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          It's a lot simpler to understand than Powershell, especially for people who don't have a coding background.

          System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject

          Click this: Asking questions is a skill. Seriously, do it.
          Dave Kreskowiak

          T Offline
          T Offline
          TheGreatAndPowerfulOz
          wrote on last edited by
          #34

          Maybe you could share your little scripting language with an article on CP? Please?

          #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

          D 1 Reply Last reply
          0
          • Sander RosselS Sander Rossel

            I am too young to even know what you're talking about... :~

            Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly

            D Offline
            D Offline
            Daniel Pfeffer
            wrote on last edited by
            #35

            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

            Sander RosselS M S 3 Replies Last reply
            0
            • T TheGreatAndPowerfulOz

              Maybe you could share your little scripting language with an article on CP? Please?

              #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #36

              I don't know if I can get that written. I've got about a years worth of code to write and now have to do it inside of 4 months. :sigh:

              System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject

              Click this: Asking questions is a skill. Seriously, do it.
              Dave Kreskowiak

              T 1 Reply Last reply
              0
              • D Dave Kreskowiak

                I don't know if I can get that written. I've got about a years worth of code to write and now have to do it inside of 4 months. :sigh:

                System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject

                Click this: Asking questions is a skill. Seriously, do it.
                Dave Kreskowiak

                T Offline
                T Offline
                TheGreatAndPowerfulOz
                wrote on last edited by
                #37

                :rose::java:

                #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                1 Reply Last reply
                0
                • R raddevus

                  Or take a look at applicationHost.config (c:\windows\system32\inetsrv\config\) (machine level IIS config) Then, you'll feel like your web.config is small. It's all relative. :laugh: Here's a snippet to help you feel better:

                  M Offline
                  M Offline
                  Marc Clifton
                  wrote on last edited by
                  #38

                  raddevus wrote:

                  Or take a look at applicationHost.config

                  Oh, my eyes! My poor eyes! Point taken. ;) Marc

                  Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                  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

                    Sander RosselS Offline
                    Sander RosselS Offline
                    Sander Rossel
                    wrote on last edited by
                    #39

                    Sounds good, let the experts handle our web config files so I never have to edit them again! :laugh:

                    Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly

                    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
                      trantrum
                      wrote on last edited by
                      #40

                      Totally agree!

                      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

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