Jackie
Jackie

Reputation: 23527

Debugging an ASP.NET app running on IIS express VS2012

I am using Windows 8 and Visual Studio 2012 to run an ASP.NET web application locally. Problem is I can't figure out how to attach the debugger. I tried debug>start debugging but it gives me the following error...

Error Message

I added a breakpoint in my code and tried starting/hitting site, but no dice. I also checked my project and ensured ASP.NET debugging was checked and confirmed the proper config in my web.xml.

Any ideas?

Update:

Ok I can attach to the process using the following.... enter image description here

But it still says my symbols have not been generated...

And when I try to connect to iisexpress instead I see...

enter image description here

Upvotes: 2

Views: 9983

Answers (3)

Jackie
Jackie

Reputation: 23527

You need to attach the debugger to iisexpress.exe. Although this worked for me it did throw up an error at first so my assumption is that it can just be ignored. I am marking this as the solution for now, however, if someone comes up with a better answer I will switch.

Upvotes: 4

allenwoot
allenwoot

Reputation: 961

Make sure your project is a asp.net project. If it is, right click on the project and select "set as startup project", then try running it.

Upvotes: 0

Kyle
Kyle

Reputation: 33701

It looks like you are trying to start a library project and not an asp.net project.

Do you have more than one project in your solution? Try right clicking your project file and clicking 'set as start up project' and debugging it again.

If you only have the one project in your solution, or you are sure the right project is set as the start up project, then you probably created the wrong project type for it. Create an asp.net project and move your files over into that.

Upvotes: 0

Related Questions