Click to See Complete Forum and Search --> : no main method


mrvim
December 22nd, 2006, 06:33 AM
:wave:

i have developed an aspx site. the login.aspx hast no main method. if i compile the code in vs all works fine. if i use mcs i receive the following error message:

error CS5001: Program `Login.aspx.exe' does not contain a static `Main' method suitable for an entry point

i dont have and i dont need a main method there is a page_load method... how can i compile the code :confused:

cheers

mcmcom
December 22nd, 2006, 11:08 AM
it would appear your compiling the login page as its own executable? i doubt thats what you want you probably want to compile it with many other pages as a .dll for use on the web.

hth,
mcm