Skip to content

Category Archives: Microsoft

Articles about Microsoft and their technologies

Visual Studio – Database Project Not Loading

05-May-08

Have you ever created a Database project and after some time you are not able to load it in the Visual Studio? Probably you might be getting following error: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that [...]

Checklist: Cannot import webpart

16-Sep-07

While importing (drag/drop) your webpart to any SharePoint page, if you receive an error stating “Cannot import webpart” or “unable to add selected web part(s)”! here is the check list you should look for: Make sure the webpart class is inherited either from Microsoft.SharePoint.WebPartPages.WebPart or System.Web.UI.WebControls.WebParts.WebPart The webpart class needs to be declared public. Safe [...]

SharePoint: ServerContext not set to an instance

16-Sep-07

I was playing through SharePoint object model and somewhere (don’t remember right now!) got an exception stating “ServerContext not set to an instance”. My solution for this: Installed SSP (Shared Services Provider) and this problem is solved! [ Edited:2008-03-24 I got this error while playing with stsadm.exe command ]

Windows CardSpace: FAQ for ASP.NET Developers

19-Jun-07

Few frequently asked question for ASP.NET developers: The Identity Selector dialog box is displayed only for SSL protected pages. Therefore you are required to deploy your application on a Web server and install a SSL Certificate. Windows CardSpace does not work with Self Signed Certificates and will die horribly. These certificates do not have CRL [...]

TFS – Free Text search in History Objects

29-May-07

It’s a best practice to add comment when you do check-in to the source control. A text comment is associated with the change you made to the item. Some of the times you need to find a particular comment, but the View History tool available with Visual Studio/TFS is limited that you can’t make a [...]

Preview: LINQ

14-Feb-07

Hmmm… a new tool in my hands … and following equation makes me crazy about it! C# 2.0 + ADO.NET = LINQ = C# 3.0 In simple words Language Integrated Query (LINQ) exposes the power of SQL queries within C# syntax. This technology along with its tools allows you to connect to SQL database, extract [...]

Webservices PowerPoint Presentation

06-Jan-07

My presentation on WebServices Basics is available for download to the *valuable visitors* of my blog. Here is the content: Web services – Definition: A web service is a collection of protocols and standards used for exchanging data between applications or systems. Characteristics Demo: Writing a simple WebService in Visual Studio 2005 & Consuming WebServices [...]

Fetching file history from TFS : the code way

13-Dec-06

These days I’m writing a tool for Visual Studio that integrates with Team Foundation Server. This post is about how to retrieve/fetch history of a file from source control server using TFS-SDK. Following function takes server name and file path as input and returns an enumerator holding Changeset objects. public static IEnumerable FetchHistory(string serverName, string [...]

3D Full Screen Window and Dynamic XAML Sample with WPF

01-Dec-06

One nice feature of WPF (Windows Presentation Foundation, .Net 3.0) is the integration of 3D library with the existing framework. Today I worked with Viewport3D class. This class handles it all for managing 3D views. The “Hello World” example I coded here basically demonstrates three features: Loading XAML dynamically at runtime Playing with 3D objects [...]

IE extensions/add-on – the simplest way (context menu)

26-Sep-06

I love writing extensions for applications and filling gaps in between making the world simpler (interacting with each other, giving users flexibility in switching from one application to another.) The power of any application (especially Internet Browsers) lies in how features enriched it is. One of the way to achieve this is to lay down [...]