I have tried to make a chatting application using ASP.Net.
Following are the names of the files :
1. default.aspx - The first page where the login ID/Passwords are to be entered
2. Chat.aspx - Here the chatting is done
3. rs.js - RemoteScripting Java script
4. Global.asax
5. ChatEngine.cs - controls the chatting

//this is only two users

The solution was built without errors.
But when I debug it I get an error:-

A project with an Output Type of class Library cannot be started directly.
In order to debug this project, add an executable project to this solution.

default.aspx has to be the start page.

Please help !

Member Avatar for stbuchok

You either have a .cs file open (not a .aspx.cs file) or you have a .cs file selected in the Solution Explorer (not a .aspx.cs file)

Continuing on what stbuchok mentioned, to avoid this, you can set a default start page. i.e. default.aspx, by right clicking on it and selecting "Set as Start Page". Just the same, you can't try to debug the program from a .cs as stated above.

set debug=true in web.config file for asp.net project

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.