Visual Studio 2012 unable to launch IIS express web server

In Visual Studion 2012, whe you create a new web project and try to start or view web application in browser, you may get the below error:

Unable to lunch the IIS Express Web server.


  1. Right click on project >> properties

  2. Choose web tab and select “Use Visual Studio Development Server”


Upload File Using WebApi

Below is the method you need to add to your ApiController to catch a file upload from client.

public async Task Upload()
MultipartMemoryStreamProvider stream = new MultipartMemoryStreamProvider();
await Request.Content.ReadAsMultipartAsync(stream);

// in case of multiple files uploading
foreach (HttpContent c in stream.Contents)
if (!string.IsNullOrEmpty(c.Headers.ContentDisposition.FileName))
// read file bytes and file name
string fileName = c.Headers.ContentDisposition.FileName.Replace("\"", string.Empty);
byte[] fileBytes = await c.ReadAsByteArrayAsync();

return Ok();

Project Server tab is Missing in TFS Workitem

If you mapped project plan to TFS team project, and after mapping you found that the Project Server tab is missing in TFS work-item form, then make sure that you are not using the key /skipUIChanges in the below command.

TfsAdmin ProjectServer /MapWorkItemTypes /collection:tpcUrl /teamProject:TeamProjectName /workItemTypes:ListOfWorkItemTypes

Enable IIS Dynamic Compression

IIS compression increase the performance and decrease the usage of network bandwidth.

There are two types of IIS compression:

  • Static: compress and cache compressed files like (*.html, *.htm,*.doc, *.xls, *.ppt,*.txt)
  • Dynamic: compress each http request without cache.

To enable Dynamic Compression ,please follow the below steps:

Windows 8

Go to Control Panel > Programs and Features





Turn Windows features on or off

Internet Information Services > World Wide Web Services > Performance Features


Windows Server 2008 R2

Go to Server Manager > Roles > Web Server (IIS) > Add Role Services



Windows Server 2012

Server Manger > Dashboard > Add roles and features





Is TFS 2013 Accessible During Scheduled Backup?

If you are taking backup for your TFS 2013 through “Scheduled Backups Wizard” from TFS Administration console, is the TFS will be accessible or not?

This question come to my mind, however, I tested it and I see that TFS will be online and accessible for readying and writing.

Which means, you can query your work items and update them as well.


Release Locked (checked out) Document in SharePoint

As a feature in SharePoint, you can check out any document item.

Sometime, the user who check out the document library is not available and the admin need to release (undo check-out) the document library.

We can use the following power shell script (Change the bold values)


$web=Get-SPWeb $WebSiteURL
$user = $web.AllUsers.GetByID($userId)

$impSite= New-Object Microsoft.SharePoint.SPSite($web.Url, $user.UserToken)
$impWeb = $impSite.OpenWeb()