Editing applicationhost.config on 64 bit Windows 7 system

I had a very simple task to edit applicationhost.config file and it took my 2 hrs to get the solution. I navigated to folder C:\Windows\System32\inetsrv\config and I found applicationHost.config file. And when I clicked on file to open in Visual Studio, I got the below error Then I tried 1. Open visual studio in administratorContinueContinue reading “Editing applicationhost.config on 64 bit Windows 7 system”

WCF Data Service with SQL Azure

In this article we will expose database from cloud or SQL Azure as WCF Data Service. There two steps mainly involved in this 1. Creating local Database and migrating to SQL Azure 2. Exposing SQL Azure Database as WCF DATA Service Step1: Creating local Database and migrating to SQL Azure Creating Database The first stepContinueContinue reading “WCF Data Service with SQL Azure”

Windows Azure for Developers Task 3: Understanding Windows Azure Application

An application designed and developed to be as hosted service for windows azure consist of 1. Managed Code 2. XML file for configuration Managed codes are mapped into different Roles XML files are mapped into different configuration settings. If we see the below diagram it explains all the components mainly involved in Windows Azure application.ContinueContinue reading “Windows Azure for Developers Task 3: Understanding Windows Azure Application”

Windows Azure for Developers task 2: Adding Cloud Service project to existing ASP.Net Web Application

Adding Cloud Service project to existing ASP.Net Web Application Imagine we are moving existing Web Application or ASP.Net MVC Web Application to cloud. In that case we need to add cloud service to existing Web Application or ASP.Net MVC Web Application. We have a solution for Web Application is as below, Now right click onContinueContinue reading “Windows Azure for Developers task 2: Adding Cloud Service project to existing ASP.Net Web Application”

Windows Azure for Developers Task 1: Resolving Failed to initialize Windows Azure storage emulator Error

I thought to start learning Windows Azure. I installed Azure SDK and created a project by choosing Windows Azure project template from cloud tab and creating a Web Role. I just put a label on aspx file and when tried running the project I got the below error When I switched to Output Window, IContinueContinue reading “Windows Azure for Developers Task 1: Resolving Failed to initialize Windows Azure storage emulator Error”

Fetching Image from SharePoint 2007 picture library using object model

I thought this is an easy requirement to fetch Image form SharePoint 2007 picture library and bind to a System.Drwaing.Image object. But when I started doing that, I had to give my 3 to 4hrs. So here is the code snippet to fetch images from SharePoint 2007 Picture library. Namespace Required Function to return ImageContinueContinue reading “Fetching Image from SharePoint 2007 picture library using object model”

System.Object : a look on mother of all managed classes

In this article we will walkthrough and understand each function of Object class. System.Object is known as mother class of all the managed classes. All the classes are inherited from System.Object. It is base type for all the managed classes. So it defines the base behavior of all the managed classes. System.Object class contains belowContinueContinue reading “System.Object : a look on mother of all managed classes”

Internal of Deferred or Lazy Execution in LINQ

I have already posted about Deferred Execution here In this post we will see how internally Deferred or lazy execution is implemented. Deferred Execution executes the query only when Loop starts. What I mean here is that, we iterate through the query variable to get the result. Here the result variable does not contain theContinueContinue reading “Internal of Deferred or Lazy Execution in LINQ”

Fetching lists from SharePoint 2010 site using client object model

Creating the UI 1. Add a label 2. Add a textbox. Give any meaningful name I am leaving default name here. 3. A button. On click event of the button list names will be fetched. 4. A listbox control to bind the lists from SharePoint site. Setting up the environment Right click on the projectContinueContinue reading “Fetching lists from SharePoint 2010 site using client object model”