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?

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

    You're going to propose a better alternative?

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

    R D 2 Replies Last reply
    0
    • M Marc Clifton

      web.config is child's play compared to WCF binding configuration options. X| 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

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #9

      :thumbsup:

      There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.

      1 Reply Last reply
      0
      • L Lost User

        David Radcliffe wrote:

        Does anyone know every section and item that a web config file can hold?

        You can create and add your own custom sections, so I guess the answer to that question is 'no' :) Have you tried appsettings.json yet?

        Now is it bad enough that you let somebody else kick your butts without you trying to do it to each other? Now if we're all talking about the same man, and I think we are... it appears he's got a rather growing collection of our bikes.

        D Offline
        D Offline
        Dan Neely
        wrote on last edited by
        #10

        I'm not sure how replacing a <> delimited tag soup with a {} delimited tag soup that doesn't allow comments is supposed to be an improvement. :rolleyes:

        Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

        L 1 Reply Last reply
        0
        • D Dan Neely

          I'm not sure how replacing a <> delimited tag soup with a {} delimited tag soup that doesn't allow comments is supposed to be an improvement. :rolleyes:

          Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #11

          I agree.. it's fine for simple stuff, much like XML was. When you've got 200+ lines of config json to look through, it's not so easy.. :~

          Now is it bad enough that you let somebody else kick your butts without you trying to do it to each other? Now if we're all talking about the same man, and I think we are... it appears he's got a rather growing collection of our bikes.

          1 Reply Last reply
          0
          • M Marc Clifton

            web.config is child's play compared to WCF binding configuration options. X| 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

            E Offline
            E Offline
            Eytukan
            wrote on last edited by
            #12

            :D lol

            Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

            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?

              E Offline
              E Offline
              Ehsan Sajjad
              wrote on last edited by
              #13

              I don't see any reason why a c# developer would hate web.config or app.config as they provide the flexibility to change the configuration level things without rebuilding and redeploying the application. They are quite useful in my opinion. :)

              1 Reply Last reply
              0
              • M Marc Clifton

                web.config is child's play compared to WCF binding configuration options. X| 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

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

                How dare you bring up such a vile topic. :rolleyes: Gives me the heebie jeebies.

                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

                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
                  TheGreatAndPowerfulOz
                  wrote on last edited by
                  #15

                  Sometimes, code is easier.

                  #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

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

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

                    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

                    R T 2 Replies Last reply
                    0
                    • M Marc Clifton

                      web.config is child's play compared to WCF binding configuration options. X| 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

                      R Offline
                      R Offline
                      raddevus
                      wrote on last edited by
                      #17

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

                        D Offline
                        D Offline
                        David Radcliffe 0
                        wrote on last edited by
                        #18

                        Ok, to clarify. The web/app config files of themselves are ok. Better than Registry entries ;) Working with them, however, is a pain. There's very little intellisense, and finding out what you need to add is difficult. Yes, I am proposing something better - Visual Studio should have a GUI tool to create these files, with drop-down menus of choices, check-boxes for true/false options, etc.

                        1 Reply Last reply
                        0
                        • Sander RosselS Sander Rossel

                          You're going to propose a better alternative?

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

                          R Offline
                          R Offline
                          raddevus
                          wrote on last edited by
                          #19

                          Sander Rossel wrote:

                          You're going to propose a better alternative?

                          Yes, if you're going to bring up a problem to the forum, then you need to provide your solution too. :laugh:

                          1 Reply Last reply
                          0
                          • T TheGreatAndPowerfulOz

                            Sometimes, code is easier.

                            #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

                            R Offline
                            R Offline
                            raddevus
                            wrote on last edited by
                            #20

                            TheGreatAndPowerfulOz wrote:

                            Sometimes, code is easier.

                            I see the italics. But are you saying, "forget config files, let's use hard-coded" values?" :)

                            T 1 Reply Last reply
                            0
                            • 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

                              R Offline
                              R Offline
                              raddevus
                              wrote on last edited by
                              #21

                              Dave Kreskowiak wrote:

                              executes fairly simple scripts written in XML

                              Oh, a DSL[^]?

                              D 1 Reply Last reply
                              0
                              • Sander RosselS Sander Rossel

                                You're going to propose a better alternative?

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

                                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

                                Sander RosselS K 2 Replies Last reply
                                0
                                • R raddevus

                                  Dave Kreskowiak wrote:

                                  executes fairly simple scripts written in XML

                                  Oh, a DSL[^]?

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

                                  Yep. It's for a wrapper we use in all of our packaged software we deploy. Since we have to support 8 different platforms, it makes packaging and deploying software a bit ... complicated. Script support makes life a whole lot easier. Using an XML-based solution made parsing and syntax checking a piece of cake and I had to bang out a solution quickly. This also makes it easy for our QA and deployment tools to parse and check too.

                                  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

                                  R 1 Reply Last reply
                                  0
                                  • D Dave Kreskowiak

                                    Yep. It's for a wrapper we use in all of our packaged software we deploy. Since we have to support 8 different platforms, it makes packaging and deploying software a bit ... complicated. Script support makes life a whole lot easier. Using an XML-based solution made parsing and syntax checking a piece of cake and I had to bang out a solution quickly. This also makes it easy for our QA and deployment tools to parse and check too.

                                    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

                                    R Offline
                                    R Offline
                                    raddevus
                                    wrote on last edited by
                                    #24

                                    Interesting. Thanks for sharing. Sounds like one of the better uses of XML.

                                    D 1 Reply Last reply
                                    0
                                    • F F ES Sitecore

                                      Lucky you weren't around when we were using the Registry....

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #25

                                      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.

                                      F T 2 Replies 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.

                                        F Offline
                                        F Offline
                                        F ES Sitecore
                                        wrote on last edited by
                                        #26

                                        You're telling me about INI files? I've installed OS/2....

                                        L 1 Reply Last reply
                                        0
                                        • F F ES Sitecore

                                          You're telling me about INI files? I've installed OS/2....

                                          L Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #27

                                          OS/2? OS/2!?! For goodness sake why? Is it a punishment or something? :wtf:

                                          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.

                                          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