Click here to Skip to main content
15,913,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While executing I got this error:

Error is program.cs file is missing or deleted or renamed

I didn't do any changes in the program.cs file.

Someone please help me!
Posted
Updated 14-Nov-10 20:26pm
v2

This might be a problem with your namespace. Please check the namespace of your main form and the Program.cs.
 
Share this answer
 
Make sure you have a program.cs file on disk and loaded in your project.
I suspect the reason is that a Main() method should exist there. If not, then write one.
If you do have another Main() method in another class, then edit your project's properties to set the other class as the project's starting point.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900