Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1181
  • Last Modified:

error CS5001: does not have an entry point defined

Hello all,

i keep getting the following when tryong to build a c# project.

error CS5001: Program 'C:\Inetpub\wwwroot\mysite\obj\Debug\mysite.exe' does not have an entry point defined

Can you help?
0
billy_boy
Asked:
billy_boy
  • 2
  • 2
  • 2
  • +1
1 Solution
 
gripeCommented:
You need to declare a Main method in one of your classes.
0
 
gripeCommented:
See the following for an explanation:

http://www.csharphelp.com/archives/archive273.html
0
 
JigitCommented:
billy_boy, it seems that you are building a ASP.NET application in C#. Am I right?
If so, ASP.NET application should not have Main method. Set project type to Web Application in Project properties and select a web page as Start Page using right click on desired page.

HTH,
Jigit
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
billy_boyAuthor Commented:
your right jigit, but how do you change the project type to c#.net web app?
0
 
tomvergoteCommented:
right click on your project in the solution explorer, pick properties and change the output type you see there
0
 
JigitCommented:
billy_boy, thanks for accepting my answer. May I ask why only B grade? You can fiil feedback on my answer and express your thoughts. Thanks!
0
 
billy_boyAuthor Commented:
sorry mate it was late and I've been working like a dog!...i couldnt work out how to change the prject properties to a C# application, so I started again and rebuilt.....is there an easier way?
0
 
tomvergoteCommented:
Comment from tomvergote
Date: 11/25/2004 07:34AM PST

right click on your project in the solution explorer, pick properties and change the output type you see there

:)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now