Link to home
Start Free TrialLog in
Avatar of billy_boy
billy_boy

asked on

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?
Avatar of gripe
gripe

You need to declare a Main method in one of your classes.
See the following for an explanation:

http://www.csharphelp.com/archives/archive273.html
ASKER CERTIFIED SOLUTION
Avatar of Jigit
Jigit
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of billy_boy

ASKER

your right jigit, but how do you change the project type to c#.net web app?
right click on your project in the solution explorer, pick properties and change the output type you see there
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!
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?
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

:)