Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Compiled .exe file doesn't run after copying

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rzep - 07 Mar 2008 11:04 GMT
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
Jon Skeet [C# MVP] - 07 Mar 2008 11:09 GMT
> 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
[quoted text clipped - 6 lines]
>
> 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
rzep - 07 Mar 2008 11:24 GMT
> > 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
[quoted text clipped - 11 lines]
>
> Jon

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

Rzep
Jon Skeet [C# MVP] - 07 Mar 2008 11:27 GMT
<snip>

> 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
rzep - 07 Mar 2008 12:03 GMT
> <snip>
>
[quoted text clipped - 7 lines]
>
> Jon

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

Thank you again and have a nice weekend

Rzep
Eps - 07 Mar 2008 11:48 GMT
> 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).

Signature

Eps


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.