No accessible Main

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have a console application.
I have 2 or 3 classes.
I also have a class in which I have nothing other than the main function
with the follwoing signature

public shared sub Main

End Sub

I main I create other objects and so on...
but I get an error "No accessible main method with appropriate signature..."
error.
My main is public and shared and in the project properties I have selected
the class having the main as the startup object.

WHAT IS GOING WRONG???

PK
 
Wrong forum; but isn't the signature for Main is :

Public Shared Sub Mail (ByVal args() as String)

End Sub
 
ya i know wrong forum ....but this looks like the most active forum...
FYI ...main is overloaded ..there are signatures with arguments and without
.my project was corrupted I suppose...I recreated a new project and all the
pain....
dunno what went wrong...

thanks though...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top