Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 an output Type of Class Library cannot be started

Author  Topic 

debradeng
Starting Member

46 Posts

Posted - 2006-10-30 : 23:43:44
There is a project with Dynamic sql to access database.I already created stored procedures to replace them by using MS SQL server 2005.How to make sure when execute queries,the project use SPs instead of D-SQL?

It is a C# project,developed by using Visual studio 2005.I don't have that much knowledge about C# or VS tools.


The project built successfully,but it can not run.The error message is as follows:

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 referrences the library project.Set the executable

project as the startup project.

My question is how to "referrence a project"?

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2006-10-31 : 00:47:31
quote:
Originally posted by debradeng
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 referrences the library project.Set the executable
project as the startup project.



That's a warning that VS displays when you try to launch the debugger in a project for a non-executable binary (dll). A dll has no main() entry point so you can't just step right into it in the debugger.

You need to add a project to your sln for an exe that uses your dll if you want to debug a dll. Either that, or you can specify an exe to launch under the debugger in the project properties of your dll.


SqlSpec - a fast, cheap, and comprehensive data dictionary generator for
SQL Server 2000/2005 and Analysis Server 2005 - http://www.elsasoft.org
Go to Top of Page

debradeng
Starting Member

46 Posts

Posted - 2006-10-31 : 00:51:51
thank you,jezemine
Go to Top of Page
   

- Advertisement -