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.
Right click on project >> properties
Choose web tab and select “Use Visual Studio Development Server”
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();
// in case of multiple files uploading
foreach (HttpContent c in stream.Contents)
// read file bytes and file name
string fileName = c.Headers.ContentDisposition.FileName.Replace("\"", string.Empty);
byte fileBytes = await c.ReadAsByteArrayAsync();
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
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:
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
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.
For security reasons, it is recommended to change the default SQL Server default port which is 1433 to a new port.
To connect to SQL Server with different port rather than default port, use comma after server name: DevSQL,5511
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)
$user = $web.AllUsers.GetByID($userId)
$impSite= New-Object Microsoft.SharePoint.SPSite($web.Url, $user.UserToken)
$impWeb = $impSite.OpenWeb()