Solved

Debugging with VS 2010 issues.

Posted on 2013-01-18
4
166 Views
Last Modified: 2013-01-24
I'm just now starting to use VS 2010. In my solution, I have a web application (using local IIS on windows 7 box) and a class library. In VS 2008, if I right click a function in a web app and click "Show Definition" it takes me to the code in the class library. In VS 2010, it takes me to the object browser. Also, breakpoints aren't working properly or not at all in the class library side of the solution. Breakpoints work fine in the web app. What am I doing wrong?
0
Comment
Question by:Misledman
  • 3
4 Comments
 
LVL 4

Expert Comment

by:mcmahon_s
ID: 38794898
Is the class library in the same solution as the web application?
In the web app, did you add the reference to the class library as a project reference or directly to the compiled dll?
0
 
LVL 1

Author Comment

by:Misledman
ID: 38796420
Actually, I got the debugging part working with "Rebuild". It seems, VS 2010 rebuilds a bit different than 2008. So, I can put in a breakpoint and it stops there. However, I still can't right click a function and click "Go to Definition". Doing that brings up obeject browser. In VS 2008, it went straight to the code in the class.

To answer your question....The class library is in the same solution referenced as a project (NOT the DLL).
0
 
LVL 1

Accepted Solution

by:
Misledman earned 0 total points
ID: 38796452
I figured it out...... The class library was targeting .Net 3.5. The web app was targeting .Net 4.0. Changed the class library to 4.0 and it works as expected now....
0
 
LVL 1

Author Closing Comment

by:Misledman
ID: 38813624
This is the answer...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now