Magic: Application runs sometimes and fails sometimes
-
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
-
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
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. :)
-
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. :)
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++;
-
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++;
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.
-
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
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++;
-
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++;
:wtf: This doesn't concern you? Wow.
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
:wtf: This doesn't concern you? Wow.
Mark Salsbery Microsoft MVP - Visual C++ :java:
??????!!!!!!
foreach(Minute m in MyLife) myExperience++;