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. .NET is Hell (subtitle: An error message from Microsoft)

.NET is Hell (subtitle: An error message from Microsoft)

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharpdotnetcomsecuritytesting
19 Posts 15 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.
  • M MacSpudster

    void ReadTheAbovePost(object sender, EventArgs e)
    {
    if (theObvious(ThankYouForPointingOutTheObvoius, "Thank You For Pointing Out The Obvious."))
    return;
    }

    bool theObvious(bool condition, string cluedIn)
    {
    if (condition) { MessageBox.Show(cluedIn, "Thx");
    return condition;
    }

    A Offline
    A Offline
    adriancs
    wrote on last edited by
    #4

    override bool theObvious(bool condition, string cluedIn)
    {
    if (condition)
    MessageBox.Show(cluedIn, "Thx");
    else
    {
    // ??
    }
    return condition;
    }

    D 1 Reply Last reply
    0
    • A adriancs

      override bool theObvious(bool condition, string cluedIn)
      {
      if (condition)
      MessageBox.Show(cluedIn, "Thx");
      else
      {
      // ??
      }
      return condition;
      }

      D Offline
      D Offline
      dojohansen
      wrote on last edited by
      #5

      CS007: theObvious cannot be overridden; theObvious is not virtual; theObvious is private.

      J 1 Reply Last reply
      0
      • D dojohansen

        CS007: theObvious cannot be overridden; theObvious is not virtual; theObvious is private.

        J Offline
        J Offline
        John Atten
        wrote on last edited by
        #6

        Funny!

        1 Reply Last reply
        0
        • M MacSpudster

          I get an email whenever there's an error on my webapps. We recently initiated a service to do Red-Siren testing; e.g., testing for any security issues. Got an error message today. Of most interest, and danged funny at that, is the unedited, verbatim "Error Message" from Microsoft's lovely .NET Framework ... (emphasis added) URL: https : / / www.RedactedWebSite.com /SomeWebApp/ThatLoginPage.aspx?ReturnUrl=%2fSomeWebApp%2fDefault.aspx%3faction%3dppr&action=ppr%3CScript%20%3Ealert(%22HelloSIG%22)%3C/Script%3E Error Date: [redacted] Error Message: A potentially dangerous Request.QueryString value was detected from the client (action="ppr<Script >alert("Hell..." Albeit a little late (going on 7+ years of .NET programming...), thanks for the warning Microsoft!

          K Offline
          K Offline
          kdmote
          wrote on last edited by
          #7

          I encountered one once that amused me so much I taped a screenshot of it on my office door. It consisted of nothing but an exclamation point icon and the two words: "Catastrophic Failure"

          R G 2 Replies Last reply
          0
          • K kdmote

            I encountered one once that amused me so much I taped a screenshot of it on my office door. It consisted of nothing but an exclamation point icon and the two words: "Catastrophic Failure"

            R Offline
            R Offline
            RafagaX
            wrote on last edited by
            #8

            Well, it can't be clearer, Everything is wrong! time to run like a headless chicken! :laugh:

            CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

            1 Reply Last reply
            0
            • M MacSpudster

              I get an email whenever there's an error on my webapps. We recently initiated a service to do Red-Siren testing; e.g., testing for any security issues. Got an error message today. Of most interest, and danged funny at that, is the unedited, verbatim "Error Message" from Microsoft's lovely .NET Framework ... (emphasis added) URL: https : / / www.RedactedWebSite.com /SomeWebApp/ThatLoginPage.aspx?ReturnUrl=%2fSomeWebApp%2fDefault.aspx%3faction%3dppr&action=ppr%3CScript%20%3Ealert(%22HelloSIG%22)%3C/Script%3E Error Date: [redacted] Error Message: A potentially dangerous Request.QueryString value was detected from the client (action="ppr<Script >alert("Hell..." Albeit a little late (going on 7+ years of .NET programming...), thanks for the warning Microsoft!

              A Offline
              A Offline
              AlexMaximovic
              wrote on last edited by
              #9

              I once got an error message from a 3rd party component: "Don't know what to do" Seriously?!

              1 Reply Last reply
              0
              • K kdmote

                I encountered one once that amused me so much I taped a screenshot of it on my office door. It consisted of nothing but an exclamation point icon and the two words: "Catastrophic Failure"

                G Offline
                G Offline
                greldak
                wrote on last edited by
                #10

                My favourite from Microsoft has to be "There has been an error" I've also seen reports of one thats just a blank dialog box without even an OK button to make it go away!

                1 Reply Last reply
                0
                • M MacSpudster

                  I get an email whenever there's an error on my webapps. We recently initiated a service to do Red-Siren testing; e.g., testing for any security issues. Got an error message today. Of most interest, and danged funny at that, is the unedited, verbatim "Error Message" from Microsoft's lovely .NET Framework ... (emphasis added) URL: https : / / www.RedactedWebSite.com /SomeWebApp/ThatLoginPage.aspx?ReturnUrl=%2fSomeWebApp%2fDefault.aspx%3faction%3dppr&action=ppr%3CScript%20%3Ealert(%22HelloSIG%22)%3C/Script%3E Error Date: [redacted] Error Message: A potentially dangerous Request.QueryString value was detected from the client (action="ppr<Script >alert("Hell..." Albeit a little late (going on 7+ years of .NET programming...), thanks for the warning Microsoft!

                  D Offline
                  D Offline
                  David de Leeuw
                  wrote on last edited by
                  #11

                  This is easy. I am staring at (VB.NET): A call to PInvoke function 'exam123-DB!exam123.Exam123F::Sleep' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

                  Richard DeemingR 1 Reply Last reply
                  0
                  • M MacSpudster

                    I get an email whenever there's an error on my webapps. We recently initiated a service to do Red-Siren testing; e.g., testing for any security issues. Got an error message today. Of most interest, and danged funny at that, is the unedited, verbatim "Error Message" from Microsoft's lovely .NET Framework ... (emphasis added) URL: https : / / www.RedactedWebSite.com /SomeWebApp/ThatLoginPage.aspx?ReturnUrl=%2fSomeWebApp%2fDefault.aspx%3faction%3dppr&action=ppr%3CScript%20%3Ealert(%22HelloSIG%22)%3C/Script%3E Error Date: [redacted] Error Message: A potentially dangerous Request.QueryString value was detected from the client (action="ppr<Script >alert("Hell..." Albeit a little late (going on 7+ years of .NET programming...), thanks for the warning Microsoft!

                    T Offline
                    T Offline
                    Thornik
                    wrote on last edited by
                    #12

                    Biggest error I ever seen is "Your Windows is successfully installed". Yes, it was MY fault. :))

                    S 1 Reply Last reply
                    0
                    • M MacSpudster

                      void ReadTheAbovePost(object sender, EventArgs e)
                      {
                      if (theObvious(ThankYouForPointingOutTheObvoius, "Thank You For Pointing Out The Obvious."))
                      return;
                      }

                      bool theObvious(bool condition, string cluedIn)
                      {
                      if (condition) { MessageBox.Show(cluedIn, "Thx");
                      return condition;
                      }

                      A Offline
                      A Offline
                      alexander ypema
                      wrote on last edited by
                      #13

                      I personally really hate the error GDI throws whenever anything goes wrong. "A generic error has occured in GDI+". Like, 'You don't say' much?

                      1 Reply Last reply
                      0
                      • M MacSpudster

                        I get an email whenever there's an error on my webapps. We recently initiated a service to do Red-Siren testing; e.g., testing for any security issues. Got an error message today. Of most interest, and danged funny at that, is the unedited, verbatim "Error Message" from Microsoft's lovely .NET Framework ... (emphasis added) URL: https : / / www.RedactedWebSite.com /SomeWebApp/ThatLoginPage.aspx?ReturnUrl=%2fSomeWebApp%2fDefault.aspx%3faction%3dppr&action=ppr%3CScript%20%3Ealert(%22HelloSIG%22)%3C/Script%3E Error Date: [redacted] Error Message: A potentially dangerous Request.QueryString value was detected from the client (action="ppr<Script >alert("Hell..." Albeit a little late (going on 7+ years of .NET programming...), thanks for the warning Microsoft!

                        A Offline
                        A Offline
                        alexander ypema
                        wrote on last edited by
                        #14

                        I personally really hate the error GDI throws whenever anything goes wrong. "A generic error has occured in GDI+". Like, 'You don't say' much?

                        1 Reply Last reply
                        0
                        • M MacSpudster

                          I get an email whenever there's an error on my webapps. We recently initiated a service to do Red-Siren testing; e.g., testing for any security issues. Got an error message today. Of most interest, and danged funny at that, is the unedited, verbatim "Error Message" from Microsoft's lovely .NET Framework ... (emphasis added) URL: https : / / www.RedactedWebSite.com /SomeWebApp/ThatLoginPage.aspx?ReturnUrl=%2fSomeWebApp%2fDefault.aspx%3faction%3dppr&action=ppr%3CScript%20%3Ealert(%22HelloSIG%22)%3C/Script%3E Error Date: [redacted] Error Message: A potentially dangerous Request.QueryString value was detected from the client (action="ppr<Script >alert("Hell..." Albeit a little late (going on 7+ years of .NET programming...), thanks for the warning Microsoft!

                          B Offline
                          B Offline
                          Brendon1234
                          wrote on last edited by
                          #15

                          "Nullable object must have a value" No further comment required.

                          S 1 Reply Last reply
                          0
                          • D David de Leeuw

                            This is easy. I am staring at (VB.NET): A call to PInvoke function 'exam123-DB!exam123.Exam123F::Sleep' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

                            Richard DeemingR Offline
                            Richard DeemingR Offline
                            Richard Deeming
                            wrote on last edited by
                            #16

                            That's a perfectly reasonable error message:

                            • It's aimed at developers, so it can assume you'll know, or be able to find out, what managed, unmanaged and PInvoke mean;
                            • It tells you what's wrong; (your PInvoke method signature)
                            • It tells you where the problem is; (the import of exam123-DB!exam123.Exam123F::Sleep)
                            • It tells you how to fix it; (correct the signature)

                            It can't do much more for you, since unmanaged methods don't have enough metadata for the compiler to tell you what the correct signature should be.


                            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                            "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                            1 Reply Last reply
                            0
                            • T Thornik

                              Biggest error I ever seen is "Your Windows is successfully installed". Yes, it was MY fault. :))

                              S Offline
                              S Offline
                              Stefan_Lang
                              wrote on last edited by
                              #17

                              Have you considered fixing yourself? ;P

                              T 1 Reply Last reply
                              0
                              • B Brendon1234

                                "Nullable object must have a value" No further comment required.

                                S Offline
                                S Offline
                                Stefan_Lang
                                wrote on last edited by
                                #18

                                Must have been written by a developer after checking his bank account ;)

                                1 Reply Last reply
                                0
                                • S Stefan_Lang

                                  Have you considered fixing yourself? ;P

                                  T Offline
                                  T Offline
                                  Thornik
                                  wrote on last edited by
                                  #19

                                  Tried many times - with OS/2, Linux, FreeBSD, QNX... hell knows how I hate ugly Windows but still have to use it. Now I'm developer, hooked on .NET;

                                  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