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. General Programming
  3. .NET (Core and Framework)
  4. Magic: Application runs sometimes and fails sometimes

Magic: Application runs sometimes and fails sometimes

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdatabasehelpquestionannouncement
7 Posts 4 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 Offline
    M Offline
    Muhammad Gouda
    wrote on last edited by
    #1

    I created C# application that connects to MS Access Database I compiled, built, and ran the application, and everything went well Then I copied the *.exe file to another folder and other computers I ran it many times with no problems But, sometimes it does not work and displays the message (Unable to find a version of the runtime to run this application) And this problem is not solved till I rebuild the source code again I rebuild and run for 10s of times and the problem appears again What is the source of such aproblem, and what is the true solution

    foreach(Minute m in MyLife) myExperience++;

    modified on Monday, July 28, 2008 3:32 AM

    O M 2 Replies Last reply
    0
    • M Muhammad Gouda

      I created C# application that connects to MS Access Database I compiled, built, and ran the application, and everything went well Then I copied the *.exe file to another folder and other computers I ran it many times with no problems But, sometimes it does not work and displays the message (Unable to find a version of the runtime to run this application) And this problem is not solved till I rebuild the source code again I rebuild and run for 10s of times and the problem appears again What is the source of such aproblem, and what is the true solution

      foreach(Minute m in MyLife) myExperience++;

      modified on Monday, July 28, 2008 3:32 AM

      O Offline
      O Offline
      Oshtri Deka
      wrote on last edited by
      #2

      When you are not sure if client computer has necessary all .dll's, runtimes etc. installed, you should make setup project for your application. In setup project you can deal with prerequisites. This is highly unlikely, but stranger things happened to me, do you have some .dll's in your bin directory? Perhaps you forgot to copy them. Edit: I've read your personal info after I've posted my answer, so please excuse me for patronizing tone; as I've said, stranger things had happened to me and to my local Gandalfs. :)

      M 1 Reply Last reply
      0
      • O Oshtri Deka

        When you are not sure if client computer has necessary all .dll's, runtimes etc. installed, you should make setup project for your application. In setup project you can deal with prerequisites. This is highly unlikely, but stranger things happened to me, do you have some .dll's in your bin directory? Perhaps you forgot to copy them. Edit: I've read your personal info after I've posted my answer, so please excuse me for patronizing tone; as I've said, stranger things had happened to me and to my local Gandalfs. :)

        M Offline
        M Offline
        Muhammad Gouda
        wrote on last edited by
        #3

        First of all, thanks for your reply I post this qustion along time ago with no response

        Oshtri Deka wrote:

        do you have some .dll's in your bin directory? Perhaps you forgot to copy them.

        you will be surprized when you know that this problem occurs with the executable file even while running from the bin directory itself another thing I recently noticed, is that th file size changes when it runs proberly its size is 452 kb when it fails, its size becomes 484 kb

        Oshtri Deka wrote:

        so please excuse me for patronizing tone; as I've said, stranger things had happened to me and to my local Gandalfs.

        Do not mention it, thanks for your thoughtfullness and help :-D

        foreach(Minute m in MyLife) myExperience++;

        L 1 Reply Last reply
        0
        • M Muhammad Gouda

          First of all, thanks for your reply I post this qustion along time ago with no response

          Oshtri Deka wrote:

          do you have some .dll's in your bin directory? Perhaps you forgot to copy them.

          you will be surprized when you know that this problem occurs with the executable file even while running from the bin directory itself another thing I recently noticed, is that th file size changes when it runs proberly its size is 452 kb when it fails, its size becomes 484 kb

          Oshtri Deka wrote:

          so please excuse me for patronizing tone; as I've said, stranger things had happened to me and to my local Gandalfs.

          Do not mention it, thanks for your thoughtfullness and help :-D

          foreach(Minute m in MyLife) myExperience++;

          L Offline
          L Offline
          Lutoslaw
          wrote on last edited by
          #4

          Mohammed Gouda wrote:

          when it runs proberly its size is 452 kb when it fails, its size becomes 484 kb

          Scan a target computer with an antivirus software (e.g. free Avast[^]).

          Greetings - Gajatko Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.

          1 Reply Last reply
          0
          • M Muhammad Gouda

            I created C# application that connects to MS Access Database I compiled, built, and ran the application, and everything went well Then I copied the *.exe file to another folder and other computers I ran it many times with no problems But, sometimes it does not work and displays the message (Unable to find a version of the runtime to run this application) And this problem is not solved till I rebuild the source code again I rebuild and run for 10s of times and the problem appears again What is the source of such aproblem, and what is the true solution

            foreach(Minute m in MyLife) myExperience++;

            modified on Monday, July 28, 2008 3:32 AM

            M Offline
            M Offline
            Muhammad Gouda
            wrote on last edited by
            #5

            It seems to be really a virus activity, in spite of I scanned my machine and got none infected files But, I discovered the problem source The executable file is opened somehow and some bytes are appended making it unusable. So, the simple solution I did is .... ... I put the file in the READ ONLY access mode Now, everything works well Thanks to all participants

            foreach(Minute m in MyLife) myExperience++;

            M 1 Reply Last reply
            0
            • M Muhammad Gouda

              It seems to be really a virus activity, in spite of I scanned my machine and got none infected files But, I discovered the problem source The executable file is opened somehow and some bytes are appended making it unusable. So, the simple solution I did is .... ... I put the file in the READ ONLY access mode Now, everything works well Thanks to all participants

              foreach(Minute m in MyLife) myExperience++;

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              :wtf: This doesn't concern you? Wow.

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              M 1 Reply Last reply
              0
              • M Mark Salsbery

                :wtf: This doesn't concern you? Wow.

                Mark Salsbery Microsoft MVP - Visual C++ :java:

                M Offline
                M Offline
                Muhammad Gouda
                wrote on last edited by
                #7

                ??????!!!!!!

                foreach(Minute m in MyLife) myExperience++;

                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