Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

by Xavier Dilip Kumar 2. July 2013 20:12


  • The Work item with large amount of data in the custom HTML fields fails to open after migration.
  • The error may occur for the build logs with large amount of data as well.


Try to modify web.config in \Program Files\Microsoft Team Foundation Server 11.0\Application Tier\Web Services to adjust the size.
The default length is 20MB, so try a larger value than that. The value below is for 50MB. Experimentation may be necessary to find the best value.

<add key="maxJsonLength" value="52428800" />

Value is specified in byte

Tags: ,

TFS | TFS 2010

specified argument was out of the range of valid values. Parameter name: column

by Xavier Dilip Kumar 2. July 2013 19:19

In a CI build (gated check-in) environment, associate a work item with a check-in to trigger a build. The build will partially succeeded with the following error.


Change “Associate Changesets and Work Items” property to False in the build definition.


It’s a known bug in TFS 2012 update 2 but fixed in update 3

Tags: ,

TFS 2012

Installing Visual Studio 2012 and then installing Visual Studio 2010 causes unreliable results for Office Integration add-ins

by Xavier Dilip Kumar 1. July 2013 11:10


If you install Visual Studio 2012 and then install Visual Studio 2010, and then you open Office to use an Office Integration add-in, Office displays two Team ribbons. Both ribbons are unreliable and may cause worksheets to become corrupted.


Disable the Visual Studio 2010 version of the add-in, as follows:

  1. On the menu bar in Office, choose File, Options.
  2. In the Options dialog box, select Add-Ins.
  3. In the Manage box, select COM Add-ins and then choose the Go button.
  4. In the list of add-ins, clear the check box for the Visual Studio 2010 version of the add-in and then choose the OK button. (To determine the version of an add-in, select it and then read its location at the bottom of the Options dialog box. The location for a Visual Studio 2010 add-in is "Microsoft Visual Studio 10.0".)



Roll Back a checkin in TFS

by Xavier Dilip Kumar 26. June 2013 12:26


TFS rollback is a client side component which is available in TFS 2010 power tools install.

1) Through UI

Right click on the source folder
Select View History menu

 Select rollback entire changeset menu 

 Check-in the pending rollback changes 

2) Through Command line :
tf rollback /changeset:changesetfrom~changesetto [itemspec] [/recursive]
[/lock:none|checkin|checkout] [/version:versionspec]
[/keepmergehistory] [/noprompt] [/login:username,[password]]

tf rollback /toversion:versionspec itemspec [/recursive]
[/lock:none|checkin|checkout] [/version:versionspec]
[/keepmergehistory] [/noprompt] [/login:username,[password]]

Note :If you are attempting to rollback changes for another user, make sure you get latest on the files you are attempting to rollback; otherwise you will see the error: "No changes to roll back."


Tags: ,

TFS | TFS 2010

TF900560: Could not start build: The file exists.

by Xavier Dilip Kumar 25. June 2013 14:43


TFS2012 server process the build request but the build controller fails.


Reimaged the build controller,Since the controller was not responding to any command and also TFS admin console crashed.

Tags: , ,

TFS | TFS 2010 | TFS 2012

TF215097: An error occurred while initializing a build for build definition <Build Definition Name> rootArgumentValues

by Xavier Dilip Kumar 25. June 2013 14:27


The values provided for the root activity's arguments did not satisfy the root activity's requirements: ''Build Parameter':
The following keys from the input dictionary do not map to arguments and must be removed: <Parameter Name>. 
Please note that argument names are case sensitive. Parameter name: rootArgumentValues


The error appears when the build parameter is removed from the template template and still avaiable in the build tables.

The table tbl_BuildDefinition contains all information for a build definition. ProcessParameters column will contains the build parameter details


Refresh the build definition and save it. In the process tab, there is a Refresh button that will reload the build definition and the process template and synchronize them


Tags: , ,

TFS | TFS 2010 | TFS 2012

TF215104: Failed to stop build 23649: it did not respond to a workflow cancellation request.

by Xavier Dilip Kumar 24. June 2013 07:23


"Run On Agent (reserved build agent <Agent1>). There was no endpoint listening at <TFS url> that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.Cannot stop the build. Details: Operation did not complete in 00:01:00. (After trying to stop the build) TF215104: Failed to stop build 23649: it did not respond to a workflow cancellation request."


1) Identify and Remove the queued builds data from dbo.tbl_BuildQueue table in the Tfs_CollectionName database.

select * from dbo.tbl_BuildQueue
delete from dbo.tbl_BuildQueue where QueueID = 'ID'

2) Remove the build agent from the controller

Identify the build agent and note the value of ReservationId and AgentId.
SELECT * FROM tbl_BuildAgent

DELETE FROM tbl_BuildAgentReservation WHERE ReservationId = [ReservationId]
UPDATE tbl_BuildAgent SET ReservationId = NULL WHERE AgentId = [AgentId].

Remove the Build Agent from TFS Admin Console.

Tags: ,

TFS | TFS 2010

How to find System Boot Time?

by Xavier Dilip Kumar 21. June 2013 09:35

Command: systeminfo.exe

Displays detailed configuration information about a computer and its operating system, including operating system configuration, security information, product ID, and hardware properties, such as RAM, disk space, and network cards.

systeminfo[.exe] [/s Computer [/u Domain\User [/p Password]]] [/fo {TABLE|LIST|CSV}] [/nh]

/s Computer : Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u Domain\User : Runs the command with the account permissions of the user specified by User or Domain\User. The default is the permissions of the current logged on user on the computer issuing the command.
/p Password : Specifies the password of the user account that is specified in the /u parameter.
/fo {TABLE|LIST|CSV} : Specifies the format to use for the output. Valid values are TABLE, LIST, and CSV. The default format for output is LIST.
/nh : Suppresses column headers in the output. Valid when the /fo parameter is set to TABLE or CSV.
/?: Displays help at the command prompt.

Sample output


Host Name:                 XAVIER
OS Name:                   Microsoft Windows Server 2008 R2 Standard
OS Version:                6.1.7601 Service Pack 1 Build 7601
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Member Server
OS Build Type:             Multiprocessor Free
Registered Owner:          Infrastructure Server
Registered Organization:   Halliburton
Product ID:                00477-001-0000421-84103
Original Install Date:     12/20/2012, 10:09:54 AM
System Boot Time:          6/20/2013, 10:02:31 PM
System Manufacturer:       VMware, Inc.
System Model:              VMware Virtual Platform
System Type:               x64-based PC
Processor(s):              4 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 44 Stepping 2 GenuineIntel ~3465 Mhz
                           [02]: Intel64 Family 6 Model 44 Stepping 2 GenuineIntel ~3465 Mhz
                           [03]: Intel64 Family 6 Model 44 Stepping 2 GenuineIntel ~3465 Mhz
                           [04]: Intel64 Family 6 Model 44 Stepping 2 GenuineIntel ~3465 Mhz
BIOS Version:              Technologies LTD 6.00, 4/15/2011
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             en-us;English (United States)
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC-06:00) Central Time (US & Canada)
Total Physical Memory:     16,384 MB
Available Physical Memory: 14,725 MB
Virtual Memory: Max Size:  22,526 MB
Virtual Memory: Available: 20,750 MB
Virtual Memory: In Use:    1,776 MB
Page File Location(s):     C:\pagefile.sys
Logon Server:              \\Xavier
Hotfix(s):                 2 Hotfix(s) Installed.
                           [01]: KB981391
                           [02]: KB981392
Network Card(s):           1 NIC(s) Installed.
                           [01]: Intel(R) PRO/1000 MT Network Connection
                                 Connection Name: Public
                                 DHCP Enabled:    No
                                 IP address(es)



tf400731: Only one Catalog resource of type 'Project Portal' can exist under 'Team Project'.

by Xavier Dilip Kumar 20. June 2013 13:14


1. Remove the existing portal setting for team project as shown in the screenshort
2. Execute the following command to create a team project site

TFPT.EXE addprojectportal /collection:http://<server>:<port>/tfs/<TeamProjectCollection>

* /teamproject:<TeamProject> /processtemplate:"Microsoft Visual Studio Scrum 2.2"


Tags: , ,

SharePoint | TFS 2010 | TFS 2012

TF250061: The following site could not be attached to Team Foundation Server: The site is already associated with a team project on an installation of Team Foundation Server with a different ID.

by Xavier Dilip Kumar 20. June 2013 05:19


I had this problem when I migrated TFS 2010 collection to TFS 2012 instance and having the collection online on both TFS 2010 and TFS 2012 instances in parallel.


To fix the problem, you need to disable the team project portal links either on TFS 2010 or TFS 2012 collection --> Team projects and run the SharePoint repair on the APP TIER using TFS administration console.

 Following are the steps I followed to fix the error in TFS 2012 instance

1. Open Team Explorer in Visual Studio --> Connect to TFS 2010 instance --> Select the team project that needs the fix --> goto "Portal Settings" --> Unchecked the "Enable Team Project Portal checkbox" --> click OK



2. Login to TFS 2012 App Tier --> Open TFS Administration console --> Select "Share Point Web Applications" --> Select the SharePoint URL --> click "Repair Connection" --> Repair option

All the permissions and connections to the team projects Share point sites should succeed.


3. Login to TFS 2010 App Tier --> Open TFS Administration console --> Select "Share Point Web Applications" --> Select the SharePoint URL --> click "Repair Connection" --> Repair option

All the permissions and connections to the team projects Share point sites should succeed.


Tags: , ,

SharePoint | TFS 2010 | TFS 2012

About the author

My name is Xavier Dilip Kumar Jayaraj and I am a Software Configuration Management Engineer with a background in application development, Build & packaging using Install Shield.

Profile in LinkedIn


Quotes I Like

"Failure will never overtake me if my determination to succeed is strong enough."  - Dr. APJ. Abdul Kalam

"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it." - Bruce Lee

"Technology is just a tool. In terms of getting the kids working together and motivating them, the teacher is the most important." - Bill Gates

"Innovation distinguishes between a leader and a follower." - Steve Jobs


The information provided here is based on my expreriences, troubleshooting and online/offline findings. It can be used as is on your own risk without any warranties and I impose no rights.

Month List