SQL Server - Error in compiling a forum source code. plz help.

Asked By mafia boy
09-Mar-09 04:56 AM
When compiling the c# solution file, i get the following error.
plz help.



"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 which references the library project. set the executable project as the startup project."

Do this  Do this

09-Mar-09 05:09 AM
From what I've noticed here, You've accidentally either not set the project startup file, or set it to a class and not the page directly - Do this - right click on the page you want to be the initial startup page and set it to be the startup page.

Im getting the following error in trying to connect with the database  Im getting the following error in trying to connect with the database

09-Mar-09 06:18 AM

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

TRY THIS  TRY THIS

09-Mar-09 08:18 AM

Try to set the Default Start Page option in Project setting(Set As Start Page). The project, you've downloaded.. gives you the dll files when built, which you can access from class files.

It sounds to me like you need to change your Startup project. You probably cannot run your downloaded .dll as a startup project. You will need to incorporate it into another solution. Your other solution be it a web project or win32 app will need to be the StartUp project.

File Menu > Project > Set as StartUp Project.

 

TRY THIS  TRY THIS
09-Mar-09 08:20 AM
Choose Website | Start Options and then select Use current page.

MORE INFO::

http://forums.asp.net/t/1024955.aspx

 

Re :: Error compiling forum source code.  Re :: Error compiling forum source code.
09-Mar-09 06:55 PM

Hello Boy,

MAKE SURE YOU'VE SET YOUR START PAGE
MAKE SURE YOU'VE SET YOU START PROJECT AS WELL!!!!

I know alot of people who have had this error for my reason above, and that was they had forgotten to set a start project.

Try the following:
1. Right-click on the project that contains the login.aspx file and select Set as Startup Project
2. Right-click on the login.aspx file and select Set as Start Page
3. Press F5 to debug your application.
You can probably delete your WinForms project from the solution at this point.

If that doesn't work, or you don't see those options, then it's possible that your Visual Studio environment is not setup correct. In that case, try the following:
1. Start with a new VS session.
2. Create a Web application by going to File/New Project/C#/ASP.NET Web Application.
3. In the Solution Explorer, right-click on the Solution and select Add/Existing Project
4. Select the project containing the login.aspx file
5. Continue with the above advice.

Hope this helps.

Create New Account
help
SQL Server 2005 SQL Server SQL Server installed in my XP Prof with Visual Studio 2005. I do not know how to make it running. SQL Server(SQLEXPRESS) is Running. I do not see how to create a table. Please, Help
Cannot install ANY flavor of SQL Server SQL Server So far, I have tried: Visual Studio 2005 (SQL Express) SQL Server 2005 Express SQL Server 2005 Standard Visual Studio 2008 SQL Server 2008 with completely uninstalling
strawberry perl and sql server SQL Server I need to connect to sql server from strawberry perl. Is anyone aware of any free driver for this. thanks. SQL Server Discussions SQL Server 2005 (1) SQL Server 2000 (1) SQL Express (1) SQL Server (1
reporting options in SQl Server SQL Server What are the options to do SQL Server reports? I have done Access frontend SQL Server backend reports in Access. I have a client with SQL Server. He has Filemaker for
SSIS package in sql server 2008 SQL Server I am using sql server 2000 and want to move to sql server 2008 How to create / edit a ssis(dts) package in sql server 2008? Previously i