• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 431
  • Last Modified:

VS 2002 Sub Main

Error tells me I do not have a Sub Main().
I don't want one.  So how do I change this and just set a startup page?
0
earlofroberts
Asked:
earlofroberts
  • 4
  • 3
1 Solution
 
CsharpCommented:
can you post exact errpr message
0
 
earlofrobertsAuthor Commented:
This project does not have a valid Sub Main
0
 
Bob LearnedCommented:
Wow!!  2002?  If you don't select a startup form, then you need Sub Main.  To select a startup form, right-click on the project properties in Solution Explorer.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
earlofrobertsAuthor Commented:
I have done that.  It doesn't give me any form alternatives and it won't accept one I type in.  BTW, this is a web app.
0
 
Bob LearnedCommented:
Can you attach a .png screen shot of the web application properties from right-clicking on the project in the Solution Explorer?  I never used 2002, and I know that it was a significantly different than the 2005 version that I use.
0
 
earlofrobertsAuthor Commented:
screen shot
Screenshot.png
0
 
Bob LearnedCommented:
If you attach an image directly, then you can see the image in the browser.  

If you look at the project properties, you can see that this is a Windows Application, and not a web site.  How did you create this project?  

Example:
     File | New | Project | Visual Basic | Web | ASP.NET Web Application
0
 
earlofrobertsAuthor Commented:
Thanks for catching that.  I'll recreate it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now