C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




error CS5001


Posted Date: 03 Jun 2008    Resource Type: Errors and Solutions    Category: General
Author: Debasmit SamalMember Level: Gold    
Rating: Points: 5



Why the error CS5001 comes.
Desc : does not have an entry point defined error when compiling.

Ans :-
The most common problem is that you used a lowercase ‘m’ when defining the Main method. The correct way to implement the entry point is as follows:
class test
{
static void Main(string[] args)
{
}
}




Responses

Author: Prafulla S Shimpi    16 Sep 2008Member Level: Gold   Points : 2

This error occurs if program doesn't find static 'Main' method i.e. entry point to the program, from where program can run as an exe.
C# is case-sensitive, so 'M' should be in uppercase.

More detailed information avaialble on MSDN

http://msdn.microsoft.com/en-us/library/1y814bzs(VS.80).aspx



Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: VB.NET
Previous Resource: DllImport not working.
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use