Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Sample app
Message
 
À
21/11/2008 10:38:22
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01363490
Message ID:
01363506
Vues:
35
>Hi,
>
>I'm just getting started with the MM framework and have downloaded the latest install files and documentation (as of today). I have VS 2008, and SQL Server 2008. Install seemed to go flawless. (I should note that most of my development is VFP, and I am a newbie to VS 2008.) I'm walking through the developer documentation step by step and trying to run the sample app. I didn't have the Northwind database so I had to go download it separately and install/attach it. The database is now loaded and I can operate on it in SQL Server Management Studio. I open the sample app project (C#) and edit the connection string as the doc describes.
>
>The doc says I can now run the application so I hit F5 and get a message "A project of output type Class Library cannot be started directly." It tells me to add an "executable project to this solution."
>
>I tried to build/compile the app, same result. I google searched and have tried a few different attempts to solve the problem with no luck.
>
>What am I missing?
>
>Thanks,

Your Solution has multiple projects in them. When you hit F5 to have Visual Studio "run" the app., it has to decide which one of the projects to run (it's perfectly valid to have both a WinForms app., a console app, and a web app inside of the same project). Currently, a class library project is set as the main "startup" app., which is why it's complaining (it can't "run" a class library). Right-click on the WinForms or ASP.NET web project and select "Set as Startup Project". You can see the one that's currently selected since the project name is bold. Then re-run and it should work as expected.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform