Links of the Month–April 2012

  • Free Microsoft Technologies Training:

Want to learn latest Microsoft technologies…check the following website:

http://www.microsoftvirtualacademy.com/home.aspx 

  • Free eBook: Practical Performance Profiling :

Get up to speed with a free copy of Practical Performance Profiling by Jean-Philippe Gouigoux  sponsored by RedGate

Covers the theory and practical skills necessary to analyze and improve the performance of .NET code.

Guides you through using a profiler and explains how to identify and correct performance bottlenecks.

http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/entrypage/practical-performance-profiling-b 

  • 11 Important Database designing rules:

http://www.c-sharpcorner.com/UploadFile/shivprasadk/11-important-database-designing-rules/

  • What AnyCPU Really Means As Of .NET 4.5 and Visual Studio 11

http://dotnet.dzone.com/articles/what-anycpu-really-means-net

  • Future of Cloud Computing
  • SQL Server Storage Basics

‘must-read’ resources for every SQL Server developer and DBA.

http://beyondrelational.com/modules/2/blogs/28/posts/13299/sql-server-storage-basics.aspx 

http://www.hanselman.com/blog/NETVersioningAndMultiTargetingNET45IsAnInplaceUpgradeToNET40.aspx

http://mashable.com/2012/03/26/free-html5-website-builder/

Advertisements

Free Windows Phones to Developers and Students in INDIA

In an effort to make its presence felt in the widespread use of smart phones. Microsoft has started a new  “I unlock Joy” program for developers, students and provides them an opportunity to win free Windows Phone handsets and other gifts.‘I unlock Joy’ program for developers will start from November 1, 2011 and will continue till March 30, 2012.

Mr. Moorthy Uppaluri, General Manager, Developer Partner Evangelism, Microsoft India said, “India is a vibrant developer market, and we see a lot of excitement and enthusiasm around the availability of marketplace for customers in India. We believe that opening up this marketplace will provide the developer community in India with an opportunity to showcase creativity. He added, “The best part about Windows Phone Marketplace is that developers will be able to use familiar development tools and technologies. They create global market opportunities for themselves and reach out to a large user base.”

The main offer has three categories:

Submit and Receive: Developers get a chance to receive a Windows Phone by submitting three distinct, original and non-trivial Windows Phone applications.

Port 2 Apps and Receive: Developers submitting two Windows Phone applications that are ported from existing Android and iPhone applications will get to receive a Windows Phone.

Women Special: The first hundred women developers to submit one Windows Phone application will qualify to receive a Windows Phone each. The applications can be based on entertainment, fashion, leisure, sports, recreation or travel themes.

In addition to these categories there is also a special offer for students. Each student to submit a Windows Phone application will receive a Merit Certificate, a Windows Phone T-Shirt and a 2GB USB flash drive. Students submitting four apps will additionally receive a Windows Phone. Submissions for the student category will close on December 18, 2011. Any app submitted under this initiative will be considered as a valid entry only after it passes Windows Phone Marketplace certification testing.

Visit http://www.microsoft.com/india/student/windowsphone/  for more information.

Happy Coding. 🙂

 

Creation of the virtual directory http://localhost failed

When creating a copy of an application from Visual Source Safe, sometimes developers get the following error message :

The local IIS URL http://localhost/ specified for Web project DemoWebsite has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?

After clicking ‘Yes’, a new error message will be displayed:

Creation of the virtual directory http://localhost/ failed with the error: The URL ‘http://localhost/’ is already mapped to a different folder location.

All the projects will be loaded expect for a project which states unavailable and by right-clicking the project and selecting the option of editing the file with an extension of either .csproj or .vbproj.

In the file, find <iisurl> tag with localhost.( <iisurl>http://localhost/</iisurl&gt;) Change the tag details to your application name (<iisurl>http://localhost/yourapp</iisurl&gt;). Reload the project and you should be able to load the project now.

Happy Coding. 🙂

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

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 .

Microsoft Visual Studio Gallery – Products and Extensions for Visual Studio

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

.NET Book Zero by Charles Petzold

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)

Talking about How to Develop Writer Plug-ins

HAPPY NEW YEAR to all the readers of my blog.

I would try my best to include advanced topics and interesting topics this year. Lets start with a post from Microsoft on developing plug-ins for Microsoft Live Writer. I use Live writer for all my blog posts and being a developer, I would like to develop a plug-in.

Lets start…

Talking about How to Develop Writer Plug-ins
Catherine Heller (Channel 9) interviews Charles Teague (our Dev Lead) on Windows Live Writer.

Charles discusses the Windows Live Writer SDK which includes a managed API for extending Live Writer. He demonstrates the Polaroid Picture Plug-in and also shows how to build a “Hello World” plug-in in Visual Studio.

image
Charles Teague: Building Windows Live Writer Plug-ins