How to Debug properly in using VS 2008

When I start debugging  a SMOSYS web application in C#  using Visual Studio 2008 , I get two files in the Debug folder apart from SMOSYS.exe file


and getting  error called

"Visual studio cannot start debugging becaz the  debug target 'e:\SMOSYS\bin\Debug\SMOSYS.exe'  is missing ,
build the project and retry or set the outpath and assembly name properties appropriately to point at the correct location for the target assembly"

Application need  only   .exe - the 'normal' executable not others how to achieve  ?
prashanth agsoftware engineer Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
For the type of error you are getting, running the Clean Solution option in the Debug menu usually solves the problem.

But I do not know how you end up with a .exe and .vshost in a web application. .exe are usually Windows Applications and they have little use in a web application.

What is the .exe doing in your web application.

In a Windows application, the .vshost files are used to enhance the performance and some features of Visual Studio and the debugger. The application works without them, but you will lose features in the development environment if you do so.

If you have a good reason to remove them, in a Windows Application project you can disable the hosting process in the Debug window of the project's Properties. But it is not recommended.

In a web application, because it is not a Windows Application, this feature does not exist. If you have it there, it might be that you have a Windows application project in your solution.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
prashanth agsoftware engineer Author Commented:
I run web appln with Clean Solution option, the error still persist  before that i have questions

1.How to add project (.sln) into existing website files  using MS VS 2008

2. while  creation of new  .sln file for web application(existing project) what output type i need select
from drop down (console appln , windows appln, class library )

plz explain me  in details
Jacques Bourgeois (James Burger)PresidentCommented:
First of all, .sln is not a project, it is a solution. A project is .csproj.

For simple stuff, a solution contains only one project, but with more complex applications, a solution can contain many many projects.

A project is a website, or a windows application, or a class library (dll). A solution is a group of many projects. If you are working on a website that needs to use a dll, you put the 2 projects in the same solution, so that you can open their source code together and also debug them at the same time.

It looks as if you are a beginner, so you will have simple applications first. This means that for a while, you will be working with a solution that has only one project. The difference between both will thus be slim for you. But it is important to understand the difference in order to express yourself as precisely as possible.


1. You do not add a .sln to a website. The .sln is a list of all the projects that you need to develop on your web site. And each project is a list of everything that you need to work on a specific component of your application: source code, images, databases, etc. A solution is used only during development.

When you build your solution (through the build menu), the application itself is compiled. Compilation creates the web site in the directory specified in the properties of the main project.


2. Unfortunately, I do not have 2008 installed anymore. And since you seem to be starting, I would work VS 2013 instead of 2008. 2008 is 7 years old, and it is a long time in computing. VS 2013 can be downloaded for free from the Microsoft web site. My instructions are for 2013, there might be slight differences in 2008.

To create a web application, you go:

Visual C# (because you are using C#)...
ASP.NET Web Application
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

prashanth agsoftware engineer Author Commented:
Hi  James Burger,
prashanth agsoftware engineer Author Commented:
i found other solutions from google (article posted  by Steve .c)
how to Create an .sln file for an existing ASP.NET application

"File ==> New ==> Project..."
 under "Other Project Types" choose "Visual Studio
Solutions" and create a blank solution.
Then from the Visual Studio menu choose "File ==> Add ==> Existing Web Site" and
point it to your web site to add it to your new solution
Jacques Bourgeois (James Burger)PresidentCommented:
That other solution you found is to add a web site that already exists to a solution. It's not a way to create a new web site.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.