TFS API Part 55– Source Control Get History


This post will demonstrate how to retrieve Source Control Items, placing those items into TreeView with dynamic search for children items. Also I'll show how to query Server Item history. Download Demo Project I’ve created WPF Application and added the following assemblies into my project: Microsoft.TeamFoundation.Client Microsoft.TeamFoundation.Common Microsoft.TeamFoundation.VersionControl.Client.dll Microsoft.TeamFoundation.VersionControl.Common Step 1: Connect TFS As always we need to connect TFS before doing anything. public bool Connect() { TeamProjectPicker tpp = new TeamProjectPicker(TeamProjectPickerMode.SingleProject, false); if (tpp.ShowDialog() == System.Windows.Forms.DialogResult.OK && tpp.SelectedProjects.Length > 0) { Tfs = tpp.SelectedTeamProjectCollection; ProjectInfo =...
no comments

TFS Performance Tips – Cache


There is always a way to make thing work faster, my customer has two App Tiers controlled by NLB and DB Cluster and still there is ways to improved TFS Performance. I’ve wrote on DB Resizing and Management - Control\Reduce TFS DB Size I demonstrate how to clear IIS Logs - Clear IIS Logs Using Task Scheduler – Although some people prefer to disable log by Running the following command: (I don’t like it – If there is a problem disabling information will not help you solving the problem…..) %windir%\system32\inetsrv\appcmd set config -section:system.webServer/httpLogging /dontLog:"True"  /commit:apphost Separate I/O...
no comments

The number of requests for "Domain\User" has exceeded the maximum number allowed for a single user


I’m building a dashboard for a customer with a lot reports from SSRS, while working I’ve received the following message: To solve this you need to change SSRS config file located at - “C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\rsreportserver.config” Change “MaxActiveReqForOneUser” key From 20 to 100
no comments

VS 2013 CA0053 : Error Running Code Analysis


I have a lecture next week on performance and developers tools and I went to an old project (TicTacToe – Created in VS 2010 ) I’m using to demonstrate code analysis. I’ve open the project and ran Code Analysis, and I received the following error: CA0053    Error Running Code Analysis    CA0053 : Unable to load rule assembly 'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\fxcop\rules\globalizationrules.dll': Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.        (Global)      Right any I tested new project created in VS...

Windows Azure Storage Emulator – v3.0 – Installation failed


Today I faced a very annoying and strange issue while installing newer version of Azure Storage Emulator on my machine. Tried to remove almost everything related to Azure but still nothing worked…. Although I ran DsInit to work on SQLEXPRESS instead of localdb I decide to delete sql local db by running the following commands: sqllocaldb stop v11.0 sqllocaldb delete v11.0 sqllocaldb create v11.0” The result should be - “LocalDB instance "v11.0" created with version 11.0.” After recreating SQL local db Azure Storage Emnulator worked. Hope this helped.

Control\Reduce TFS DB Size


Today I received an email from the company DBA saying that out TFS Backup failed because “There is not enough space on the disk”. First I’ve opened SSMS to understand how big is our TFS DB and I…….. What????? I knew that we’re getting bigger from day to day (more and more groups are joining to start working with TFS) but 633GB??? TFS DB Size growth usually comes from Attachments and Source Control, So I tried to understand which Team Projects are taking most of the space. I need to understand what type of attachments are taking all that space, again per...

Could not establish trust relationship for SSL/TLS secure channel


Working with WebClient to fetch some data from a web service (HTTPS) return an error, now it’s fully understandable why this exception raised – the server certificate has expired and isn’t valid any more. But how I can still getting the data from the service although the certificate isn’t valid??? You just need to override the ServerCertificateValidationCallback property - Gets or sets the callback to validate a server certificate. System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; }; And you’re done!
no comments

העתקה של בדיקות ומבנה משרת לשרת

בתקופה האחרונה שואלים אותי יותר ויותר בנוגע להעברת בדיקות וכל מבנה העץ תחת MTM לשרת אחר או פרוייקט אחר. ב – 2010 שרק הגיע MTM לשוק כתבתי כלי לשכפול פנימי בתוך הפרויקט (במטרה לנהל גרסאות שונות של הבדיקות) - ב – 2012 מיקרוסופט הכריזה על יכולת חדשה ב – MTM – Clone המאפשרת שיכפול של כל עץ הבדיקות, אבל זה רק באותו הפרוייקט…. אז שוב מצאתי את עצמי כותב כלי לסייע במעבר –הורדה של הכלי (כולל קוד) 1. הקמתי פרוייקט ריק 2. נפתח את הכלי, נציין פרויקט מקור ופרוייקט מטרה. 3. לאחר מכן נבחר אילו ספריות ו\או בדיקות אנו מעוניינים להעביר.. 4. ניצור Test Plan...
no comments

How To: Run Tests On Different Machines In Parallel


I’m getting this question a lot, how to run multiple tests on different machines in parallel? Every customer that I work with has over 100 tests and some has more than 1000+. So how to improve test execution time? running 1000+ tests can take a while and we want to get the results as fast as possible. So, for Unit Tests there is a nice trick (Wrote about it in 2010 –>Run Unit Tests in Parallel using Visual Studio 2010) that allow you to run those tests in parallel on the same machine. But what about Coded UI Tests? you most know we...

Unit Test Error – ERROR [IM014] [Microsoft][ODBC Driver Manager]


Visiting a customer we faced a strange problem running Coded UI with Excel Data Source: The unit test adapter failed to connect to the data source or to read the data. For more information on troubleshooting this error, see "Troubleshooting Data-Driven Unit Tests" ( in the MSDN Library. Error details: ERROR The specified DSN contains an architecture mismatch between the Driver and Application The same test works on Windows 7 machines but received this error on Windows 8 64bit, So I start to investigating… First if opened odbcad32 (from Run command), I’ve noticed the “Excel Files” DSN exists but...