Delete a project in Visual Studio Online Portal

Microsoft announces Visual Studio Online general available this week. Visual Studio Online (aka VS Online) was named TFS Online for preview for quite a long time. Previously if you create test projects for practice, you might find it’s hard to discover how to delete projects. You can do that in either TFS Online Portal or Visual Studio client,  the only support tool is tfsdeleteproject.exe, which can only be found on a machine with Virtual Studio installed.

Now in Visual Studio online, you can delete project in the portal control panel directly, though still a little hard to discover. Here are steps

  1. Login to your Visual Studio online home page and click the control panel icon on the right top.

    image

  2. In Administration Task secion, click View the collection administration page link image
  3. You will see all your project listed in this page. Select the project you want to delete and click the arror icon, you will see a link for project deletion. image
  4. You will see warning All data will be permanently deleted. image

Error The update is not applicable to your computer When Installing PowerShell V3

PowerShell V3 and PowerShell ISE V3 is not a port of Windows 7 and Windows Server 2008 R2. However, you can download it from here.

You might receive following error when you install the msu file

The update is not applicable to your computer

Solution

  1. Installed Windows 7 and Windows Server 2008 R2 Service Pack 1
  2. Install .NET 4.0 Full Profile. ( not client profile )

Registering ASP.NET 4.5 with IIS8

In Windows Server 2012, DotNet 4.5 are shipped as part of OS but DotNet 4.5 is not registered with IIS8 be default. If you try to run aspnet_regiis.exe as you did for Windows Server 2008 R2, you will see following error

Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Start installing ASP.NET (4.0.30319.17929).
This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the “Turn Windows Features On/Off” dialog, the Server Manager management tool, or the dism.exe command line tool. For more details please see http://go.microsoft.com/fwlink/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.17929).

Solution

(Following step by step tutorials are copied from IIS 8.0 Using ASP.NET 3.5 and ASP.NET 4.5 )

Step by Step Instructions enabling AspNet on IIS8

Continue reading Registering ASP.NET 4.5 with IIS8

Install PowerShell and Powershell ISE on Windows Server

Windows Server 2003

For Windows server 2003, PowerShell V1 was released as KB ( hotfix). Download and install KB926139 – Windows PowerShell 1.0 English-Language Installation Package for Windows Server 2003

If you need PowerShell V2, make sure you have SP2 installed and then install Windows Management Framework from http://support.microsoft.com/kb/968929

Windows Server 2008

For Windows Server 2008 run the following command in an elevated Command Prompt.

servermanagercmd -install PowerShell

Windows Server 2008 R2

Windows Server 2008 R2 has PowerShell V2 built in and enabled by default, however, PowerShell ISE is not. It is installed on Windows 7 client OS, but an Optional Component on Windows Server 2008 R2. To Install PowerShell ISE on R2, run the following command in a Windows PowerShell Modules prompt

Import-Module ServerManager
Add-WindowsFeature PowerShell-ISE

OR

  1. In Server Manager, start the Add Roles and Features wizard.
  2. On the Features page, select Windows PowerShell ISE.

Windows Server 2012

Windows Server 2012 has both PowerShell V3 built in and installed. PowerShell ISE needs to be added as it’s an optional Windows PowerShell feature, same as Windows Server 2008 R2.

Also checkout How to run PowerShell scripts to start your first PowerShell script.

TFS How to change the computer name or owner for a workspace

The owner and computer name of the workspace are not editable in Visual Studio 2010. However, you might need it when you renamed your machine or your account is renamed. To do this, open a Visual Studio Command Prompt (2010) from program files, and cd to your workspace, then run following

Change the computer name for a workspace

tf workspaces /updateComputerName:<OldComputerName> /collection:<CollectionURL>

You need replace <OldComputerName> to your actual old computer name and <CollectionURL> to your actual TFS collection URL.

Change the owner for a workspace

tf workspaces /updateUserName:<OldUserName> /collection:<CollectionURL>

How to install DotNet 2.0 or 3.5 on Windows 10

Updated on 2015/10/4: Update the screenshots to Windows 10, however, applies to Windows 8/8.1/10

Windows 10 includes the 2.0, 3.5 and 4.5 versions of the .NET Framework. However, only 4.5 is available for immediate use after a clean install. The versions 2.0 and 3.5 of the framework are not installed by default. If you open the Add/Remove Windows Features dialog you’ll see the “Microsoft .NET Framework 3.5 (includes .NET 2.0 and 3.0)” listed, but disabled.

Continue reading How to install DotNet 2.0 or 3.5 on Windows 10

HTTP Error 404.13 – Not Found Error When Upload Big File using WCF

On IIS 7.5, if you upload big file thru WCF service, you might get http 404.13 error from IIS server.

HTTP Error 404.13 – Not Found
The request filtering module is configured to deny a request that exceeds the request content length.

The solution is set a higher value for maxAllowedContentLength in web.config of application

<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="300000000"/>
</requestFiltering>
</security>
</system.webServer>
</configuration>