Vakul Kumar More

You wouldn't want to miss…

Posts Tagged ‘ASP.NET’

Debugger problem “The breakpoint will not currently be hit. No symbols have been loaded for this document”

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.

Posted in ASP.NET, Technical | Tagged: , , , , , , , , , , , , , , , , | 3 Comments »

Microsoft Visual Studio Gallery – Products and Extensions for Visual Studio

Posted by Vakul Kumar More on June 11, 2009

Are you to looking to find products, extensions, and add-ins for Visual Studio.

 Microsoft Visual Studio Gallery

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 !!!

 

 

Controls
  • ASP.NET Controls
    261
  • Silverlight Controls
    54
  • Sharepoint Controls
    36
  • Windows Forms Controls
    145
  • WPF Controls
    63
  • Framework & Libraries

Posted in Technical | Tagged: , , , , , , , , , , , , , , , , , , , | Leave a Comment »

Beta 1 of Visual Studio 2010 and .NET Framework 4.0 on MSDN

Posted by Vakul Kumar More on May 18, 2009

Visual Studio 2010 Screenshot

Visual Studio 2010 Screenshot

Microsoft has posted Visual Studio 2010 Beta 1 and .NET Framework 4.0 Beta 1 downloads on MSDN. The public will get Beta 1 on May 20th,2009.MSDN subscribers now have access to the Beta 1 releases of both Visual Studio 2010 and .NET Framework 4.0. If you have MSDN access, go ahead and start downloading. You may also want to check out the Visual Studio 2010 MSDN Library. From what I’ve heard, performance is supposed to be significantly improved over the CTP and earlier interim builds. Also, the releases seem to work just fine with the Windows 7 Release Candidate build. Here is a list of all the downloads that subscribers now have access to:

  • Visual Studio 2010 Professional Beta 1 (x86) – DVD (English)
    Includes: Professional;
  • Visual Studio 2010 Remote Debugger Beta 1 (x64) – (English)
    Includes: Additional Resources;
  • Visual Studio 2010 Remote Debugger Beta 1 (x86) – (English)
    Includes: Additional Resources;
  • Visual Studio Team Foundation Server 2010 Beta 1 (x86 and x64) – DVD (English)
    Includes: Team Foundation Server;
  • Visual Studio Team System 2010 Team Suite Beta 1 (x86) – DVD (English)
    Includes: Team System;
  • Visual Studio Team System 2010 Test Load Agent Beta 1 (x86) – (English)
    Includes: Additional Resources;
  • Visual Studio Team System 2010 Test Load Controller Beta 1 (x86) – (English)
    Includes: Additional Resources;
  • .NET Framework 4.0 Beta 1 (ia64) – (English)
    Includes: Additional Resources;
  • .NET Framework 4.0 Beta 1 (x86 and x64) – (English)
    Includes: Additional Resources;
  • .NET Framework 4.0 Beta 1 (x86) – (English)
    Includes: Additional Resources;
  • .NET Framework 4.0 Client Profile Beta 1 (x86 and x64) – (English)
    Includes: Additional Resources;
  • .NET Framework 4.0 Client Profile Beta 1 (x86) – (English)
  • Includes: Additional Resources;

On Wednesday(May 20, 2009), Microsoft will be giving out Beta 1 downloads for public consumption on the Microsoft Download Center.

Happy Coding !

Posted in ASP.NET, Technical | Tagged: , , , , , , , , , , , , | Leave a Comment »

Links of the Month (March 20th 2009)

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 languageLINQ.  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.dnrtv.com/ 

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…

HAPPY CODING.

Posted in Technical | Tagged: , , , , , , , , , | Leave a Comment »

LINQ Resources

Posted by Vakul Kumar More on January 16, 2009

LINQ:

Language-Integrated Query (LINQ) is a groundbreaking innovation in Visual Studio 2008 and the .NET Framework version 3.5 that bridges the gap between the world of objects and the world of data.

Traditionally, queries against data are expressed as simple strings without type checking at compile time or IntelliSense support. Furthermore, you have to learn a different query language for each type of data source: SQL databases, XML documents, various Web services, and so on. LINQ makes a query a first-class language construct in C# and Visual Basic. You write queries against strongly typed collections of objects by using language keywords and familiar operators. The following illustration shows a partially-completed LINQ query against a SQL Server database in C# with full type checking and IntelliSense support.

LINQ Resources :

  1. http://linqdev.com/PublicPortal/ (Check for very good video Tutorial )
  2. http://www.hookedonlinq.com/MainPage.ashx ( Developers’ Wiki for .NET Language Integrated Query )
  3. http://www.theserverside.net/tt/articles/showarticle.tss?id=CsharpLINQLearningGuide2007 ( C# 3.0/LINQ Learning  Guide )
  4. http://linqinaction.net/ – Learn about LINQ, LINQ to SQL (DLINQ) and LINQ to XML (XLINQ)
  5. http://www.danielmoth.com/Blog/2007/02/linq-resources.html
  6. http://blogs.msdn.com/zainnab/attachment/8343938.ashx (Programs and Tutorials)
  7. http://blogs.msdn.com/zainnab/pages/visual-studio-2008-framework-3-5-learning-resources-page.aspx
  8. http://go.microsoft.com/fwlink/?LinkId=71829 (The Linq Project)
  9. http://forums.microsoft.com/msdn/showforum.aspx?forumid=123&siteid=1 (LINQ forum)
  10. http://msdn.microsoft.com/en-us/library/bb308961.aspx (linq Whitepapers)
  11. http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2007/05/09/9317.aspx (LINQ Videos)
  12. http://cid-1f72da7294089597.skydrive.live.com/browse.aspx/Public/LINQ (LINQ files to download)
  13. http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx ( LINQ to SQL Debug Visualizer  )
  14. http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx#linq (How do I videos)
  15. http://blogs.msdn.com/charlie/archive/2008/11/23/linq-reference-documentation.aspx ( LINQ Reference Documentation )
  16. http://oakleafblog.blogspot.com/2007/03/third-party-linq-providers.html ( Third-Party LINQ Providers )
  17. http://updates.zdnet.com/tags/linq.html (Resources by ZDNet)
  18. http://www.linqhelp.com/ ( good help site )
  19. http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx (101 LINQ Samples)
  20. http://www.thedatafarm.com/blog/2007/10/02/ResourcesForLINQTalkAtSanDiegoNET.aspx (Julie Lerman Resources for LINQ talk at San Diego .NET )

ScottGu’s Blog

  • Part 1: Introduction to LINQ to SQL
  • Part 2: Defining our Data Model Classes
  • Part 3: Querying our Database
  • Part 4: Updating our Database
  • Part 5: Binding UI using the ASP:LinqDataSource Control
  • Part 6: Retrieving Data Using Stored Procedures
  • Part 7: Updating our Database using Stored Procedures
  • Part 8: Executing Custom SQL Expressions
  • LINQ to SQL (Part 9 – Using a Custom LINQ Expression with the <asp:LinqDatasource> control)
  • Step by Step…
    Introducing LINQ – Part 1
    Introducing LINQ – Part 2
    Introducing LINQ – Part 3
    Introducing LINQ – Part 4
    Introducing LINQ – Part 5

    Happy Coding  !!!

    Posted in Technical | Tagged: , , , , , , , , , , , , | 1 Comment »