|
Thanks for the help 
|
|
|
|
|
I created an 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 4:16 AM
|
|
|
|
|
A couple of suggetions.
Create a set up project or publish your app using click once and install on the other computersrather than just copying the exe.
If you've already made an installer, recompile it first.
If that fails - you may need to reinstall the .NET framework, but if the problem is occuring on more than one computer then it's unlikely to be a framework error.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
DaveyM69 wrote: Create a set up project or publish your app using click once and install on the other computersrather than just copying the exe.
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
DaveyM69 wrote: If that fails - you may need to reinstall the .NET framework, but if the problem is occuring on more than one computer then it's unlikely to be a framework error.
yes, the problem occurs in more than machine
I am installing .NET Framework version 1 and 2 together on the same machine
Do you think I need to unistall one of them?
foreach(Minute m in MyLife)
myExperience++;
|
|
|
|
|
Did you check the computer where you're experiencing troubles for malware/viri?
A change of file size for no obvious reason sounds very suspicious.
Not long ago I had a problem at a customer's site. One of our applications wouldn't run correctly on one computer - a keylogger or something like this had messed up the command line switches...
Running a virus scan could be worth a try.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
I've heard of problems when running v1 (with a service pack if I remember correctly) and then having v2. I seem to recall some major problems when the OS was Win98.
Unless you have a specific reason for having 1.0 or 1.1 - I'd remove all versions then install 2.0, and if needed 3.0 & 3.5 (and relevant Service Packs).
The file size change is worrying - that shouldn't be happening. Sounds virus like to me too. If that's happening on all the PCs then it may be your exe that's infected if indeed it is a virus.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
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++;
|
|
|
|
|
|
priyankJ wrote: what kind of changes I have to make in postgreSQL.
You should ask the postgreSQL people.
|
|
|
|
|
Hi all,
I have alomost 20 pannels but on the form load i have to dispay upto 3, depending on the parameter,
so here what am trying to do ... i am creating a form having all the pannels and during runtime on form load am hiding rest of the pannel apart from which one need to show, but its dosent looks good coz of space..
so my question is
1.How can i remove the space i tried with panel1.Size=new system.Drawing(200,300)
but not able to locate properly..
2.can it be done by anyother ways ?
Thank you very much
vikas da
|
|
|
|
|
> 1.but not able to locate properly
Control.Location, Control.Size and Control.Bounds are your friends...
>2.can it be done by anyother ways
hu.. what kind of way?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Super Lloyd wrote: hu.. what kind of way?
like if we have no of pannels somewhere else .. since we are knowing the names of all the pannels so at run time if can add the required pannel ..
am asking coz if i am saying pannel.hide or setting its visibility as false it will still use memory ...so why should we keep something that is not usefull ...so can you help me here ....
Thank you very much for your reply
vikas da
|
|
|
|
|
I do suggest using Hide()/Show() instead of destroying/creating the panels.
For some reason destroying/creating the panel takes a noticeable amount of time, and can really drag the application down if you have many of them.
On the other hand your panels probably don't use that much memory and show()/hide() is quite fast.
Anway, good luck!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
oke thank you very much
vikas da
|
|
|
|
|
You can create panels at runtime and add to the form's Controls collection.
That's what the code created by the form designer does.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thank you very much Guffa ... but here i am failing in my knowledge ... can you please help me here ...with some sample code ...
thank you very much ...
vikas da
|
|
|
|
|
Why dont you just dock the panels properly & then set the visible to true or false based on your parameter.
If all the panels are docked properly setting the visibility will do the trick for you
|
|
|
|
|
wooow great idea it is working fine for a sample ...let me implement this into my code ..
Thank you very much ....
vikas da
|
|
|
|
|
I have a repeater control rptrSubjects...
it contains checkbox field...chkSubjects
I want to retrieve the values of all the checked items in the checkboxes inside the repeater control...
Inorder to fill in a label with the text of all the checked checkboxes separated with comma...
|
|
|
|
|
I guess this means you're asking in the wrong forum. We have a forum for ASP.NET questions.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi,
I am trying to get printed document name and source machine name from where print command is given. I am not able to get printed document name.I would like to get printer job status using PJL.I have HP Lasertjet P2015dn Printer. Please tell me, does this printer support Job Status PJL command?. If you have any sample code.Please tell me.
I have written PJL Command like this
\x1B%-12345X@PJL USTATUS JOB = ON \r\n@PJL USTATUS DEVICE = ON \r\n\x1B%-12345X\r\n
Thanks in advance.
Regards,
Rajesh
rajesh
|
|
|
|
|
Hi everyone,
I am using VB 6.0 OCX from c# application.
It throws the folling exception after using its method.
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
What is the solution to get rid of the problem.
Thanks.
|
|
|
|
|
I would like to ask how to copy a MenuStrip's content to a ContextMenuStrip's content. In VS 2003, I can do it with :
foreach (MenuItem menu in menuTest.MenuItems)
{
contextMenu.MenuItems.Add
(menu.Index, menu.CloneMenu());
}
But how can I do it in VS 2005 ? Thnk in advance
|
|
|
|
|
VS 2005 (.net 2.0) still supports everything that VS 2003 (.net 1.1) does, so the same thing should work.
(If it doesn't, post details about the error you are getting)
Simon
|
|
|
|
|
The reason you could do this before is because .NET 1.x used the original version of a menu control. In .NET 2.+ and 3.+, all menus derive from the ToolStrip (generic for both menus/toolbars). As the other poster said, all .NET libraries are backwards compatible, however you will have to look into how to target the Menu control from .NET 1.x. My suggestion would be to try to adapt to the new MenuStrip which is sticking around with future .NET frameworks.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|