Solved

Debugging with VS 2010 issues.

Posted on 2013-01-18
4
167 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# GridRow get Old/New Value 1 55
Close word object 13 38
Change Format on Data when exporting to Excel 4 23
Write to file when application closes (by logoff) - VB.NET 1 23
IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

24 Experts available now in Live!

Get 1:1 Help Now