Link to home
Start Free TrialLog in
Avatar of ImaCircularSaw
ImaCircularSawFlag for United Kingdom of Great Britain and Northern Ireland

asked on

does not contain a static 'Main' method suitable for an entry point

Hi All,

I left visual studio on over night and a project that was building is no longer working.  I get the following error:

"Program 'C:\<PATH>\PhoneApplication\obj\Debug\PhoneApplication.exe' does not contain a static 'Main' method suitable for an entry point"


Here is the begining of my form1.cs file:

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Data.SqlClient;
using System.Data.Sql;


namespace PhoneApplication
{
    public partial class Form1 : Form
    {

        #region Set Variables

        //OM Commands
        public string strChdnrc = "";
        public string strChtrfc = "";
        public string strCalf0 = "";
        public string strCalf1 = "";
        public string strAllComm = "";

        //Input variables
        public string strFirstname = "";
        public string strSurname = "";
        public string strFloorPort = "";

Open in new window


Does anyone know how this might be fixed?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of bartvd
bartvd
Flag of Netherlands 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
Are the properties on the file set to Compile ?
Avatar of ImaCircularSaw

ASKER

The program.cs file had been removed from the project.

Thanks!