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. Other Discussions
  3. The Weird and The Wonderful
  4. What the clusterf*ck?

What the clusterf*ck?

Scheduled Pinned Locked Moved The Weird and The Wonderful
helpsalesquestionworkspace
7 Posts 6 Posters 0 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.
  • B Offline
    B Offline
    Bernhard Hiller
    wrote on last edited by
    #1

    A colleague tried to install a Windows service at a customer site. The installation failed with an error in side by side configuration. But what was the actual problem? In the application configuration file, an entry in appSettings started with

    < add key=

    The service was to be started at the end of the installation, and failed. Oh thank you, Microsoft! Even a single space character between the opening bracket and the keyword causes an application startup failure. And next, ther error message ("side by side configuration") is so useful here. Two WTFs in one place. Can you top that?

    R S M D 4 Replies Last reply
    0
    • B Bernhard Hiller

      A colleague tried to install a Windows service at a customer site. The installation failed with an error in side by side configuration. But what was the actual problem? In the application configuration file, an entry in appSettings started with

      < add key=

      The service was to be started at the end of the installation, and failed. Oh thank you, Microsoft! Even a single space character between the opening bracket and the keyword causes an application startup failure. And next, ther error message ("side by side configuration") is so useful here. Two WTFs in one place. Can you top that?

      R Offline
      R Offline
      Rob Philpott
      wrote on last edited by
      #2

      Ah yes, but the app.config is an xml file and what you have there is not XML.

      Regards, Rob Philpott.

      R 1 Reply Last reply
      0
      • B Bernhard Hiller

        A colleague tried to install a Windows service at a customer site. The installation failed with an error in side by side configuration. But what was the actual problem? In the application configuration file, an entry in appSettings started with

        < add key=

        The service was to be started at the end of the installation, and failed. Oh thank you, Microsoft! Even a single space character between the opening bracket and the keyword causes an application startup failure. And next, ther error message ("side by side configuration") is so useful here. Two WTFs in one place. Can you top that?

        S Offline
        S Offline
        Sentenryu
        wrote on last edited by
        #3

        0. Complain to W3C about that. that's Invalid XML. 1. Learn the terms associated with .net development, (start here http://msdn.microsoft.com/en-us/library/aa376307.aspx[^], hint: your error has to do with this:

        Quote:

        Applications and administrators can update assembly configuration on either a global or per-application configuration basis after deployment. For example, an application can be updated to use a side-by-side assembly that includes an update without having to reinstall the application.

        means that the error could have been on the machine.config file.)

        1 Reply Last reply
        0
        • B Bernhard Hiller

          A colleague tried to install a Windows service at a customer site. The installation failed with an error in side by side configuration. But what was the actual problem? In the application configuration file, an entry in appSettings started with

          < add key=

          The service was to be started at the end of the installation, and failed. Oh thank you, Microsoft! Even a single space character between the opening bracket and the keyword causes an application startup failure. And next, ther error message ("side by side configuration") is so useful here. Two WTFs in one place. Can you top that?

          M Offline
          M Offline
          Marco Bertschi
          wrote on last edited by
          #4

          A config file shall be valid XML, and what you have there isn't valid XML. While I understand the WTF, I wonder if MS can do a good job, even while they follow standards they get mocked upon.

          The console is a black place

          1 Reply Last reply
          0
          • B Bernhard Hiller

            A colleague tried to install a Windows service at a customer site. The installation failed with an error in side by side configuration. But what was the actual problem? In the application configuration file, an entry in appSettings started with

            < add key=

            The service was to be started at the end of the installation, and failed. Oh thank you, Microsoft! Even a single space character between the opening bracket and the keyword causes an application startup failure. And next, ther error message ("side by side configuration") is so useful here. Two WTFs in one place. Can you top that?

            D Offline
            D Offline
            DJ van Wyk
            wrote on last edited by
            #5

            Wait until you start working with json in something like MongoDB. A linefeed after the last closing bracket is a serious offence which is next to impossible to discover.

            My plan is to live forever ... so far so good

            1 Reply Last reply
            0
            • R Rob Philpott

              Ah yes, but the app.config is an xml file and what you have there is not XML.

              Regards, Rob Philpott.

              R Offline
              R Offline
              Rob Grainger
              wrote on last edited by
              #6

              Amazing how many people can repeat the same mistake. The original post stated that an entry starts with

              < add key=

              ans somehow everyone manages to determine that is invalid XML. As its incomplete, that's impossible to determine. If the error is, as stated, caused by the space between the '<' that that is the start of a valid XML element, and should parse successfully (XML is quite liberal in allowing whitespace), in which case Microsoft have actually failed to implement the standard and that is, indeed, a WTF. If that was the whole element, obviously it should fail - in which case the error message should state the XML is malformed, rather than try and infer anything about the user's intention. (Edited to correct prose)

              "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

              R 1 Reply Last reply
              0
              • R Rob Grainger

                Amazing how many people can repeat the same mistake. The original post stated that an entry starts with

                < add key=

                ans somehow everyone manages to determine that is invalid XML. As its incomplete, that's impossible to determine. If the error is, as stated, caused by the space between the '<' that that is the start of a valid XML element, and should parse successfully (XML is quite liberal in allowing whitespace), in which case Microsoft have actually failed to implement the standard and that is, indeed, a WTF. If that was the whole element, obviously it should fail - in which case the error message should state the XML is malformed, rather than try and infer anything about the user's intention. (Edited to correct prose)

                "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                R Offline
                R Offline
                Rob Grainger
                wrote on last edited by
                #7

                Before anyone else points it out - I just checked the standard and XML (unusually) does not allow a space there.

                "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                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