async and await in .Net Framework 4.5

Let me start with the difference between synchronous process and asynchronous process.

As the above image depicts, we usually consider asynchronous process in case of a time taking task. Making an asynchronous call, we will execute the tedious task on a separate thread and will continue with remaining process on initial thread. Thus we will be able to execute both the tasks paralelly.

Until now we have been using a standard process of calling a function or method asynchronously.
Until .Net framework 4.0 below is the typical process of executing a method asynchronously.

I created a small sample application  in Visual Studio 2013.
Before we go into more details, i would like to highlight a simple fact.

"Until .Net Framework 4.0 we call a non-asynch method asynchronously, but from .Net Framework 4.5 we have asynch methods which reduces lot of efforts in development perspective."


Query Rules - Beyond Search box in Sharepoint 2013

Developers often excited about new technology like EF6.0, C#5, Visual Studio VNext, MVC 6, Sharepoint 2013, Cloud platform. But they put the most important fact on the blind side "What features of this new technology we use?"

Don't you think that defeated the purpose of having a car instead of cart.

Whats the point of using SharePoint 2013, if we din't use any new features provided by it. Right?


Azure Web Sites, Cloud Services and Virtual Machines comparison

This post is completely consumed from Microsoft Azure site . . . But i found this information really useful and would like to archive on my blog as well.

Azure offers several ways to host your web applications, such as Azure Web SitesCloud Services, and Virtual Machines. After looking at these various options, you might be unsure which one best fits your needs, or you might be unclear about concepts such as IaaS vs PaaS. This article helps you understand your options and helps you make the right choice for your web scenario. Although all three options allow you to run highly scalable web applications in Azure, there are differences which can help guide your decision.
In many situations, Azure Web Sites is the best option. It provides simple and flexible options for deployment and management, and it is capable of hosting high-volume web sites. You can quickly create a new web site with popular software, such as WordPress, from the Web Application Gallery, or you can move an existing web site to Azure Web Sites. Using the Azure WebJobs SDK (currently in preview) you can also add background job processing.
You also have the option to host web applications on Azure Cloud Services or Azure Virtual Machines. These options are good choices when your web tier requires the additional level of control and customization that they provide; however, this increased control comes at a cost of increased complexity in application creation, management, and deployment. The following diagram illustrates the trade-offs among the three options.


Windows Phone Emulator Issues

One of the coolest thing about emulators is "No need to own devices to test".
Thats what i thought before i tried new "Windows 8.1 Phone Emulator" in Visual studio 2013.

But with no of issues i encounter in executing an emulator, i decided better share a post with all different error and one single resolution for most of the issues.

Root Cause: Windows Phone emulator requires Hyper-V components to be up and running on your Windows 8.1 machine / Virtual machine. Find all the requirements from here.


Introduction to Azure

Let me begin this article by asking "Do you know how painful it is to maintain infrastructure?" and "How much it costs to meet customers demands at peak hour?".

Humongous amount of money will be spent by companies to keep up with these peak scenarios.
But what happens at night, hardly there will be any traffic, but companies already invested in huge infrastructure.
They have to maintain them irrespective of the demand. This is one big problem with on-premises model.

Now lets look at Cloud, this image speaks a thousand words and saves thousands of bucks.
Yes, its true. Pay what you use, and there is a high level of flexibility on the resources you use based on the traffic and demand. Extensiblity is no more a hassle and its just a button click away.


Bulk "Undelcare" and "Send To" in SharePoint

Recently i have a small issue with Information management policies in one of the sharepoint environments.
So as a result i have nearly 10,000 records which need to be moved across to another Site collection.

In order to undeclare a record, i need to go to complaince details of each document and click that "Undeclare record" button.

Now coming to "Send To" functionality, i need to open context menu of each item and select the specific "Send to" connection.

Now i cannot do this for 10,000 documents. So this is why i love Powershell.


“Napa” Development Tool for Office 365 Apps

The “Napa” Office 365 Development Tools make it easy to start building apps for Office and SharePoint without leaving your browser or installing software.

When we jump to Office 365 and try to install Napa, you might get error saying :
"We need your help to make this app work:
Turn on Developer Feature

This means we need to have a developer site created to use Napa tools.
Now go to SharePoint work space in Office 365.

Once you are on SharePoint Admin Center, try creating a Site collection. Please note that you cannot create a new Public site collection until you subscribe(not available in trail version).