473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

strange error message

In VB I created a solution with 2 projects: one is a class library and one
is windows control library.When I pressed F5 on control library (that is
startup project) everything was Ok. The program execute correctly.
I close VB% and when i come back I open it again , I pressed F5 ant VB told
me the following error message:

" 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 reference the library project.Set the executable project as startup
project"

If I create another windows control library project in this solution this
new one can be executed with F5 but the old one no.
Can someone tell me what's happening?

Thank you,
Mihai
Jun 1 '07 #1
3 3197
On Jun 1, 12:12 pm, "Mihai" <bvel...@telus.netwrote:
In VB I created a solution with 2 projects: one is a class library and one
is windows control library.When I pressed F5 on control library (that is
startup project) everything was Ok. The program execute correctly.
I close VB% and when i come back I open it again , I pressed F5 ant VB told
me the following error message:

" 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 reference the library project.Set the executable project as startup
project"

If I create another windows control library project in this solution this
new one can be executed with F5 but the old one no.
Can someone tell me what's happening?

Thank you,
Mihai
Is your project set to start with a Sub Main? Which of the projects
is set at the start up project? Have you tried right clicking on the
project and choose "Set as start up project"? Does that have any
effect?

Chris

Jun 1 '07 #2
The control library project is set as Startup project ! I Know this.I worked
before with a lot of projects and I didn't have this error !
Mihai
"Chris Dunaway" <du******@gmail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
On Jun 1, 12:12 pm, "Mihai" <bvel...@telus.netwrote:
In VB I created a solution with 2 projects: one is a class library and
one
is windows control library.When I pressed F5 on control library (that is
startup project) everything was Ok. The program execute correctly.
I close VB% and when i come back I open it again , I pressed F5 ant VB
told
me the following error message:

" 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 reference the library project.Set the executable project as
startup
project"

If I create another windows control library project in this solution
this
new one can be executed with F5 but the old one no.
Can someone tell me what's happening?

Thank you,
Mihai

Is your project set to start with a Sub Main? Which of the projects
is set at the start up project? Have you tried right clicking on the
project and choose "Set as start up project"? Does that have any
effect?

Chris

Jun 1 '07 #3
I want only to see the results in User test container

Mihai

"Chris Dunaway" <du******@gmail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
On Jun 1, 12:12 pm, "Mihai" <bvel...@telus.netwrote:
In VB I created a solution with 2 projects: one is a class library and
one
is windows control library.When I pressed F5 on control library (that is
startup project) everything was Ok. The program execute correctly.
I close VB% and when i come back I open it again , I pressed F5 ant VB
told
me the following error message:

" 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 reference the library project.Set the executable project as
startup
project"

If I create another windows control library project in this solution
this
new one can be executed with F5 but the old one no.
Can someone tell me what's happening?

Thank you,
Mihai

Is your project set to start with a Sub Main? Which of the projects
is set at the start up project? Have you tried right clicking on the
project and choose "Set as start up project"? Does that have any
effect?

Chris

Jun 1 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sam | last post by:
Guys facing a strange problem any clue would really rescue me.. i am using a ASP application with following things Server : Intel Xeon (TM) CPU 2GHz, 2GB RAM, 136GB HDD OS : Windows 2000...
2
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
3
by: Sebastian C. | last post by:
Hello everybody Since I upgraded my Office XP Professional to SP3 I got strange behaviour. Pieces of code which works for 3 years now are suddenly stop to work properly. I have Office XP...
2
by: Kris Vanherck | last post by:
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net...
5
by: Nathan Sokalski | last post by:
When I view my index.aspx page any time after the first time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize)...
5
by: Shapper | last post by:
Hello, I just upload my web site to my hosting server and when I access it I always get an error: "Redicterion limit for this URL exceeded. Unable to load the requested page" Does anyone...
11
by: Mike C# | last post by:
Hi all, I keep getting a strange error and can't pin it down. The message is: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's...
3
by: Shelly | last post by:
I am encountering two strange problems. First one: I get a "server misconfiguration error", but only sometimes. It occurs on the first screen that accesses the database on a submit. This error...
8
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I am migrating my C++ COM server to managed code (C# COM server). I am using the same client to use the same COM class in COM server. The C++ version COM server works properly,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.