Solved

Debugging with VS 2010 issues.

Posted on 2013-01-18
4
173 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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