Compiled .exe file doesn't run after copying

R

rzep

Hi,

I have a problem with compiled .exe file. I use Visual Studio Pro
2008. I have c# windows forms project (for .NET 3.5). I compile
project and it runs without any problem from bin/release catalog.

When I copy it to other folder (local disk, for example) I can't run
it. The same if I copy it to local disk on other computer.

But build still run from compilation path

Do you know what is a source of problem?

Best regards

Rzep
 
J

Jon Skeet [C# MVP]

I have a problem with compiled .exe file. I use Visual Studio Pro
2008. I have c# windows forms project (for .NET 3.5). I compile
project and it runs without any problem from bin/release catalog.

When I copy it to other folder (local disk, for example) I can't run
it. The same if I copy it to local disk on other computer.

But build still run from compilation path

Do you know what is a source of problem?

"I can't run it" is a pretty general description. Could you give us
more information? What actually happens when you try?

Jon
 
R

rzep

"I can't run it" is a pretty general description. Could you give us
more information? What actually happens when you try?

Jon

When I click on it I got hourglass cursor for a moment and then
nothing.

Rzep
 
J

Jon Skeet [C# MVP]

When I click on it I got hourglass cursor for a moment and then
nothing.

I suggest you put some logging in your application to show where it
gets to - make it write to a file.

Also look at the event log to see if there's anything in there.

Jon
 
E

Eps

rzep said:
When I click on it I got hourglass cursor for a moment and then
nothing.

Rzep

Jon's suggestion about logging is a good one and is the best way to find
out whats going on.

As a shot in the dark though, could it be somesort of missing resource
?, I know i have run in to problems where I have not copied config files
(or had old config values with incorrect data).
 
R

rzep

I suggest you put some logging in your application to show where it
gets to - make it write to a file.

Also look at the event log to see if there's anything in there.

Jon

Thank you, I forgot about event viewer :-(. I found error :)

Thank you again and have a nice weekend

Rzep
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top