Posted by Vakul Kumar More on June 11, 2009
I just experienced the infamous “The breakpoint will not currently be hit”. After reading several posts in various websites in reference to this issue, I found few solutions which I thought of sharing :
- Check if the debug=”true” in your aspx page.
Debug is disable
<%@ Page Language=”C#” MasterPageFile=”~/MainMasterPage.master” AutoEventWireup=”true” CodeFile=”Facility.aspx.cs” Inherits=”_Facility” debug=”false”%>
Debug is enable
<%@ Page Language=”C#” MasterPageFile=”~/MainMasterPage.master” AutoEventWireup=”true” CodeFile=”Facility.aspx.cs” Inherits=”_Facility” debug=”true”%>
- Removing all the references in the project and re-inserting them taking care of the version used.
Manually deleting the bin/release and bin/debug sub-directories in every project in the solution.
De-installing and reinstalling .net framework (any version) and VS-2005
Taking a close look at the target platform in the projects.
Breakpoints Should come back !!It can be caused as the .PDB and the assembly of one of the controls would not have been referenced at the right place, resulting in a desync between the sources and binaries.
By re-referencing all, and killing the bin subdirs problem will be solved.
- Goto Tools menu and select Options; check the “Show advanced build configurations” checkbox. Now the build configurations show in the Project Properties dialog; display will be the Project Properties dialog (Project menu/Properties). We can now see the Configuration dropdown box. Select “Active(Debug)” item. Check the “Define DEBUG constant” checkbox. Rebuilt the project. Now there is a symbols file ([project].pdb) in the current output directory. When debugged, the symbols file is loaded and breakpoints will now hit.
- Other options than can be tried are 1). rebuilding the application many times. 2). completely deleting and redoing it from scratch (though thats not a good idea !! ). 3). Check whether the .pdb file is in the same location as the DLL with the same name and time. 4). Check whether project is running on the debug version of the DLL and associated files. 5). ensured there was only one instance of the DLL, project, etc. on the machine. 6). right clicked on a DLL that is within the Modules window, selected Symbol Settings, selected Debugging | Symbols and manually added the directory with the .pdb file – even though confirmed that this is the default location used by the project. 7). checked that Enable Just My Code is not selected within the Symbol Settings | Debugging | General menu. 8). tried placing the DLL in the C:\Windows32\ directory just to see if the Modules Window would “see” it. 9). adjusting a few other things to match suggestions regarding optimization settings, etc. 10). selecting Load DLL exports within within the Symbol Settings | Debugging | Native menu (although I am not familiar with what this may actually be doing..needs some research in the weekend); this caused most of the DLL’s in the Modules window to have a listing of Exports Loaded, but did not appear to affect my issue in any way – again my DLL is not within the Modules window.
- Select the Solution node in your Solution Explorer… Select Properties from the context menu… Select Multiple Startup Projects…For each project you want to debug, select Start from the action drop down.
Received a comment from Eric Long with an other solution: click here .
My short bio
Posted in ASP.NET, Technical | Tagged: .NET, .NET Framework 4.0, ASP.NET, CSS Style Manager, LINQ, Microsoft, MSDN, Vakul, Vakul Kumar, Vakul Kumar More, VB.NET, VB9, Visual Studio, Visual Studio 2008, Visual Studio 2010, Web Designer, Windows | 26 Comments »
Posted by Vakul Kumar More on June 11, 2009
Are you to looking to find products, extensions, and add-ins for Visual Studio.
Your search ends at Microsoft Website. Microsoft is providing Gallery with
Tools (Build, Coding, Data, Documentation, Modeling, Performance, Programming Languages, Reporting, Security, Setup & Deployment,Source Control, Team Development, Testing and Web )
Controls (ASP.NET Controls, Silverlight Controls, Sharepoint Controls, Windows Forms Controls, WPF Controls and Framework & Libraries)
Templates (ASP.NET, Office , Mobile Device, Silverlight, SQL Server, WCF, Windows Forms, Workflow and WPF)
click here to access all the above mentioned Tools, Controls and Templates.
Happy Coding !!!
Posted in Technical | Tagged: .NET, .NET Framework 4.0, ASP.NET, ASP.NET AJAX and VSTO for Office 2007, C# 3.0, Cool features of Visual Studio 2008, LINQ, Microsoft, MSDN, Vakul, Vakul Kumar, Vakul Kumar More, VB.NET, VB9, Visual Studio, Visual Studio 2008, Visual Studio 2008 Debugger, Visual Studio 2010, Windows Server, WPF | Leave a Comment »
Posted by Vakul Kumar More on March 20, 2009
Charles Petzold is a well known author of over fifteen programming books. To many, his books on programming Windows are the definitive books on the subject. As part of a new book on .NET programming, he wrote a chapter zero, to help bridge the gap between Windows developers and .NET developers. This chapter grew and grew until it became a book in its own right and he has now made it available as a free download.
Charles Petzold explained how this book originated :
This book originated as a Chapter Zero in my book Applications = Code + Markup: A Guide to the Microsoft Windows Presentation Foundation (Microsoft Press, 2006), which is about the new Windows client program-ming platform that‘s part of Microsoft .NET 3.0 and Microsoft Windows Vista. I wanted Applications = Code + Markup to focus almost exclusively on the Windows Presentation Foundation. I knew there was enough to cover without going into the basics of general .NET programming and C#. Yet, I wasn‘t sure how much .NET my readers would know.
I started writing a Chapter Zero for the book that would summarize all the basics of .NET and C# for the C and C++ programmers who might be coming to .NET for the very first time. It soon became evident that this Chapter Zero would be very long. It occurred to me that I could extract the material and make it a book on its own. And so I did and this is it. What you have in your hands (or are reading on a screen) is an introduction to C# and those topics in .NET that are typically found in all .NET programming.
The contents of .NET Book Zero are copyrighted by Charles Petzold, but the book is freely distributable.
You can find the book @ http://www.charlespetzold.com/dotnet
PDF version of the book (requires PDF Reader): DotNetBookZero11.pdf (1.2 megabytes)
XPS version (requires Windows Vista or .NET 3.0 or XPS Reader): DotNetBookZero11.xps (2.4 megabytes)
Source Code: DotNetBookZeroSourceCode10.zip (190 kilobytes)
Posted in Technical | Tagged: .NET, C# 3.0, Charles Petzold, LINQ, Microsoft, Vakul, Vakul Kumar, Vakul Kumar More, Visual Studio, WPF | Leave a Comment »
Posted by Vakul Kumar More on March 20, 2009
http://blogs.msdn.com/csharpfaq/ (Very good yet common questions)
http://www.microsoft.com/uk/msdn/screencasts/default.aspx ( a webcast that takes you step-by-step to discovering new functionality or exploring a hot developer topic, all in 10-15 minutes ).
http://linqpad.net/ ( LINQPad lets you interactively query SQL databases in amodern query language: LINQ. Kiss goodbye to SQL Management Studio! )
http://www.mediastoryboard.com/ss.aspx (HOW DO I ..videos of LINQ ..Very good resource..)
http://blogs.microsoft.co.il/blogs/bursteg/archive/2008/11/05/download-pdc-2008-sessions-and-watch-offline.aspx ( Download PDC 2008 Sessions and Watch Offline, PDC08 sessions )
http://idealprogrammer.com has over 300 hours of Free .NET Video tutorials that you can watch on your DVD player, TV, or Computer. By burning the videos to DVD, you can de-couple yourself from the computer and learn anywhere and anytime you want.
http://www.hanselminutes.com/ ( Hanselminutes is a weekly audio talk show with noted web developer and technologist Scott Hanselman and hosted by Carl Franklin. Scott discusses utilities and tools, gives practical how-to advice, and discusses ASP.NET or Windows issues and workarounds ).
http://sqlserver-qa.net/blogs/el/archive/2008/12/24/5217.aspx ( WINDOWS COMMUNICATION FOUNDATION (WCF) – VERY GOOD STARTER FOR DEVELOPERS OF ALL LEVELS )
http://aspdotnetsolutions.blogspot.com/search/label/Video%20Tutorials ( Complete Solution and Videos of Asp.net, C#, VB.net, PHP )
Hope these links helps…
Posted in Technical | Tagged: ASP.NET, C#, c# FAQ, hanselminutes, LINQ, Vakul, Vakul Kumar, Vakul Kumar More, VB.NET, WCF | 1 Comment »
Posted by Vakul Kumar More on January 16, 2009
Posted in Technical | Tagged: .NET, ASP.NET, C# 3.0, C# 4.0, Learn Visual Studio, LINQ, Microsoft, Vakul, Vakul Kumar, Vakul Kumar More, VB9, Visual Studio 2008, Visual Studio 2008 Debugger | 1 Comment »