strange error message

  • Thread starter Thread starter Mihai
  • Start date Start date
M

Mihai

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
 
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
 
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
 
Back
Top