Wednesday, September 24, 2008

A project with an Output Type of Class Library cannot be started directly

Hi,

If you Download Paypal Sample code and try to Run it in Visual Studio 2003, You will get "A project with an Output Type of Class Library cannot be started directly" alert.

Because Your project type which created as Class Library. You can identify this by Project Icon in the Solution Explorer. Even if you want to check Right click in the "AspNetSamples_Nvp" Project go to the Properties.

In the Common Properties Tab there is Out type. There you need to Set the Startup Object. But you cant set. It is disabled.

What you need to do is Just create New Website/Project with Asp.net Web Application and add all files to your new project from paypal Downloaded folder.

Now if you run the application, It will run perfectly.Any Help contact me with comments.

1 comment:

Anonymous said...

Why in the FUCK isn't this explained in the API docs?