473,385 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Unable to run .exe C# file built in VS2010

Hello!!!

I can't execute any .exe C# file that I've made.

For example I write the most simple code:

--------------------------------------------------
Expand|Select|Wrap|Line Numbers
  1. Hide   Copy Code
  2. using System;
  3. namespace ConsoleApplication2
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.                  Console.WriteLine("HELLO WORLD");
  11.                  Console.ReadKey();
  12.         }
  13.     }
  14. }
---------------------------------------------------

then I debug the file and it works.
But when i go to the .exe directly and try to execute it then it just keep "thinking" and does nothing!

I go to the Task Manager and the process is running BUT if i try to finish it it does nothing!

PLEASE HELP!
Mar 26 '16 #1
1 1816
madankarmukta
308 256MB
Could u please try to clean the bin folder and rebuild the application.
Mar 27 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ReidarT | last post by:
I have a copyfile x y and built this to a exe-file.' When I run the exe-file built in the bin-directory and copy it to other machines I get an errormessage concerning security policy. I don't...
1
by: rfroli | last post by:
Hi, After installing Windows SP2, I receive an internal compiler on a pch file when trying to compile a C++ project on VS.Net 2003. The pch file was built before the installation of SP2.
7
by: TLM | last post by:
I am trying to build a web application that will contain links to files on a users local computer. I am assuming that the files will be in a known location and can display in a browser window. ...
3
by: =?Utf-8?B?TGV3aXMgTW90ZW4=?= | last post by:
Hello. We are having a problem here trying to compile C# applications. Only one developer has a problem where they attempt to compile the application and the compiler complains about being out of...
0
by: andrew78 | last post by:
Hello everybody, I am working with VS2010 for about 4 month now. After the RC candidate I purchased the professional version. In the near future i want to write programs which should run on Windows7...
1
by: Hicham Belkhadi | last post by:
Hello everybody, I'm building a website in vs2010, i generate usercontrols (aspx and ascx pages), if i run the website i get the error : unable to cast object of type 'ASP.ProjectName_master' to...
0
by: bluesathish | last post by:
Dear All, I've developed one report file using VS2010, but in the report.rdlc file i can't able to keep the headers in the table while scrolling to the next page. Eventhough i've enabled the...
0
by: Murali Chouhan | last post by:
Hi, I am new to C++ .NET programming, i am trying to import a Fortran dll to my existing windows forms project (VS2010, C++) I was able to build the solution successfully, but whenever i try to...
5
Paul Johnson
by: Paul Johnson | last post by:
Hi, I have an ASP.NET project which relies on a database. I can do just about anything to the database except add tables. When I try to do that, I get the error The specified module could not...
2
by: alice11 | last post by:
vs2010 c++ shows a message "this project is out of date" when i hit f5, ask if i want to build it? when i press yes i get thhe message "there were build errors" and " the system cannot find the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.