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

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

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

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

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

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

                                    TheGreatAndPowerfulOz wrote:

                                    Sometimes, code is easier.

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

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

                                    Yes, for simple use cases where the config never or seldomly changes. However, if you need to configure it on-the-fly or at install time, then config files are the way to go.

                                    #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

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