TFS Service Unavailable – HTTP Error 503. The service is unavailable.

by XDK 20. September 2013 07:32

Explanation:

The TFS 2010 web access url reported "Service Unavailable – HTTP Error 503. The service is unavailable.", but I was able to access TFS 2010 using Visual Studio IDE and other clients. Only the TFS web was not working

Solution:

Verify whether The "Microsoft Team Foundation Server Web Access Application Pool" is running. If not, start the app pool.

 

Tags:

Azure DevOps on-premises | TFS 2010

SharePoint Client-Side Object Model ClientContext.Load method cannot be loaded.

by XDK 11. September 2013 11:59

Exception:

'Microsoft.SharePoint.Client.ClientContext' does not contain a definition for 'Load' and no extension method 'Load' accepting a first argument of type 'Microsoft.SharePoint.Client.ClientContext' could be found (are you missing a using directive or an assembly reference)

Explantion:

I got the above exception while using 'Microsoft.SharePoint.Client.ClientContext' load method in my share point web part project. Adding Microsoft.SharePoint.Client.Runtime.dll to project assembly references resolved the errors. The reason for the load method error is as follows

  • ClientContext inherits from ClientRuntimeContext
  • ClientContext is defined in Microsoft.SharePoint.Client.dll
  • ClientRuntimeContext is defined in Microsoft.SharePoint.Client.Runtime.dll
  • ClientRuntimeContext defines the Load method

Soultion:

Add Microsoft.SharePoint.Client.Runtime.dll along with Microsoft.SharePoint.Client.dll to project assembly references.

Tags:

SharePoint Development | Azure DevOps on-premises | SharePoint

TFS Jobs

by XDK 2. September 2013 08:18
Job Name

 Interval

Build Warehouse Sync Every 30 minutes
Common Structures Warehouse Sync Every 30 minutes
Test Management Warehouse Sync Every 30 minutes
Version Control Warehouse Sync Every 30 minutes
Work Item Tracking Warehouse Sync Every 30 minutes
Synchronize Test Cases Every 10 minutes
Repopulate Dynamic Suites Every hour
Identity Synchronization Job -
This job synchronizes few properties of every user that is a member of a group in the system with the windows active directory
Every hour
Team Foundation Server Coverage Analysis Every hour
Work Item Tracking Integration Synchronization Every hour
Incremental Analysis Database Sync  Every 2 hours
Cleanup Discussion Database Daily
Cleanup Test Management Database Daily
File Container Cleanup Daily
Job History Cleanup Job -
This job removes the internal job history log records that are older than 31 days
Daily
Full Analysis Database Sync  Daily
Security Identity Cleanup Job Daily
Team Foundation Server Activity Logging Administration -
To purge data in the activity log (tbl_Command) that is older than 14 days
Daily
Team Foundation Server Event Processing Daily
Team Foundation Server Framework Data Cleanup Daily
Team Foundation Server Framework File Service Cleanup Daily
Team Foundation Server Send Mail Job -
 This job is responsible for sending out email alert subscriptions and SOAP alert subscriptions. 
Daily
Version Control Administration -
This job removes content in the database that has been previously destroyed. Also, it removes content that gets staged to a temporary table as part of the large check - in
Daily
Version Control Code Churn Daily
Version Control Delta Processing Daily
Version Control Statistics Update Daily
Work Item Tracking Administration -
This Job operates on the work item tracking tables. It reorganizes fragmented indexes and updates table statistics. It also deletes work items and attachments no longer used by the system. It will also delete orphaned attachments, beacuse saving a work item and uploading an attachment are two separate transactions, and one can succeed wiyhout the other.
Daily
Work Item Tracking Remove Orphan Attachments Daily
Optimize Databases -
This job operates on the relational warehouse database. It reorganizes fragmented indexes and updates table statistics
Daily
Build Information Cleanup Job -
To reorganize/rebuild any indexes in SQL that exceed the fragmentation threshold
2 days
Message Queue Cleanup Job 2 days
Prune Registry Audit Log 7 days
Work Item Tracking Referenced Identities Update 7 days
Work Item Tracking Remove unused constants 14 days
Build Cleanup Job  
Upgrade - Version Control Code Churn Online -
This is a once-off job that runs after upgrade from TFS2010 to TFS2012. The format for storing the code churn data changed, so rather than converting that data during upgrade, it was done slowly over time post-upgrade by this job
 

Reference:

Tags: ,

Azure DevOps on-premises | TFS 2010 | TFS 2012

Exception calling "QueryActiveRequests" with "2" argument(s): "Value cannot be null.

by XDK 29. August 2013 09:55

Exception:

Exception calling "QueryActiveRequests" with "2" argument(s): "Value cannot be null.
Parameter name: second"
At C:\Builds\Service.ps1:2 char:30
+ $tfsadmin.QueryActiveRequests <<<< ($null, "False") | %{ $_.ActiveRequests } | ft StartTime,UserName,MethodName,RemoteComputer
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

Explanation:

The following powershell script to monitor the TFS active requests work on TFS 2010 but fails with the above exception on TFS 2012.

$tfsadmin = New-WebServiceProxy –UseDefaultCredential -URI http://tfs:8080/tfs/TeamFoundation/administration/v3.0/AdministrationService.asmx?WSDL
$tfsadmin.QueryActiveRequests($null, "False") | %{ $_.ActiveRequests } | ft StartTime,UserName,MethodName,RemoteComputer

While accessing TFS 2012 server, the QueryActiveRequests web method fails to accept null value as an argument.

Workaround:

The workaround is to pass the TFS 2012 HostId as first parameter instead of $null

Following are the step to find the TFS host id

1. Open Microsoft SQL Server Management Studio

2. Connect to TFS 2012 data tier

3. Execute the below query

USE [Tfs_Configuration]
SELECT [HostId], [Name] FROM [Tfs_Configuration].[dbo].[tbl_ServiceHost] where [Name] = 'TEAM FOUNDATION'

Result
-------

HostId                                                       Name
AAAAAAAA-96A2-4BA8-A74C-11422B123456 TEAM FOUNDATION

4. Replace $null with the HostId

$tfsadmin = New-WebServiceProxy –UseDefaultCredential -URI http://tfs:8080/tfs/TeamFoundation/administration/v3.0/AdministrationService.asmx?WSDL
$tfsadmin.QueryActiveRequests("AAAAAAAA-96A2-4BA8-A74C-11422B123456","False") | %{ $_.ActiveRequests } | sort StartTime | ft StartTime,UserName,MethodName,RemoteComputer

 

Tags: ,

Azure DevOps on-premises | TFS 2012

Process Template changes between TFS 2012 Update 1 to TFS 2012 Update 2

by XDK 26. August 2013 19:24

Explanation:

System field named "Tags" column was added on the product backlog Workitem Type.

<ProductBacklog>
<Columns>
<Column refname="System.Title" width="400" />
<Column refname="System.State" width="100" />
<Column refname="Microsoft.VSTS.Scheduling.StoryPoints" width="50" />
<Column refname="Microsoft.VSTS.CMMI.RequirementType" width="50" />
<Column refname="System.IterationPath" width="200" />
<Column refname="System.Tags" width="200" />
</Columns>

Tags: ,

Azure DevOps on-premises | TFS 2012

About the author

My name is Xavier Dilip Kumar Jayaraj having 16+ years of IT experience which includes solid experience and depth Knowledge in Application Life Cycle Management, Configuration Management, Implementation and Support using TFS on-premises and Azure DevOps. I have invested in gaining DevOps knowledege to expertise with Cloud Computing providers namely Microsoft Azure and Amazon Web Services in recent years. I am very positive to learn and adapt emerging technologies to client’s environment.

Microsoft Certified: Azure Administrator Associate

Microsoft Certified: Azure DevOps Engineer Expert

DevOps Engineer Certificate Program | Transcript 

OTP-AWSD5: AWS IoT: Developing and Deploying an Internet of Things

[PCEP-30-01] PCEP – Certified Entry-Level Python Programmer

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

CategoryList

Disclaimer

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.