How to enable the TFS add-in for excel?

by Xavier Dilip Kumar 18. March 2014 11:33

Solution:

  • Open Excel
  • Click on “File” --> “Option” menu
  • Click on “Add-Ins”
  • Search for “Team Foundation Add-in”
  • If you see “Team Foundation Add-in” under “Disabled Application Add-in”
  • Select “Disabled Items” and click “Go” button  
  •  
  • Select “Team Foundation Add-in” and click “Enable”
  •  
  • Close and reopen excel

Tags:

TFS 2010 | TFS 2012 | TFS 2013

Partial files while performing "get latest" operation in TFS.

by Xavier Dilip Kumar 7. February 2014 12:04

Explanation:

All my source files where partial while performing TFS version control "get latest" operation on Windows Server 2008 R2 OS

 

 Solution:

Open Visual Studio with "Run as Administrator" option

 

Tags:

Visual Studio 2010 | Visual Studio 2012 | Visual Studio 2013

After a Gated check-in Build, reconcile or ignore pop up dialog\message is missing

by Xavier Dilip Kumar 29. January 2014 09:04

Explanation:

This issue may occur If you have multiple Visual Studio version instances installed in your box

Solution 1:

Make sure the BuildNotification.exe version loaded in your box matches the Visual Studio version you used for development

BuildNotification.exe for Visaul Studio 2012 will be located at <drive>:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE

Solution 2:

1. Exit out of the BuildNotification tool from taskbar. (right click and Exit).

2. Navigate to <drive>:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE

3. Open BuildNotification.exe.config

4. Edit the trace in there to uncomment to capture the trace. 

Original from:

  <!-- enable soap tracing by uncommenting the following  

  <appSettings>

    <add key="TFTrace.Writer" value="true" />

    <add key="TFTrace.DirectoryName" value="%TEMP%\\TFLogFiles" />

    <add key="TeamFoundationSoapProxy.EnableSoapTracing" value="true" />

  </appSettings>

   <system.diagnostics>

    <switches>

      <add name="TeamFoundationSoapProxy" value="4" />

      <add name="General" value="4" />

    </switches>

    <trace autoflush="true" indentsize="3"/>

  </system.diagnostics>

-->

</configuration>

 to:

  <!-- enable soap tracing by uncommenting the following  -->

  <appSettings>

    <add key="TFTrace.Writer" value="true" />

    <add key="TFTrace.DirectoryName" value="%TEMP%\\TFLogFiles" />

    <add key="TeamFoundationSoapProxy.EnableSoapTracing" value="true" />

  </appSettings>

   <system.diagnostics>

    <switches>

      <add name="TeamFoundationSoapProxy" value="4" />

      <add name="General" value="4" />

    </switches>

    <trace autoflush="true" indentsize="3"/>

  </system.diagnostics>

 </configuration>

 5. Save the trace.

** You might have to open notepad.exe as Administrator if it does not allow you to save it.

** Don't close notepad, because you will need to undo this tracing later.

6. Run "Build Notification" from TFS2012.

7. Trigger a Gated Build. Once the build complete, wait for a few minutes to confirm the dialog appears.

If it works, you can undo the steps from 1-6 again to undo the steps.

 

Tags:

How to change build notification polling interval

by Xavier Dilip Kumar 29. January 2014 08:39

Solution:

You can override the polling interval by modifying the value in the windows registry. 

[HKCU\Software\Microsoft\VisualStudio\10.0\TeamFoundation\Build\BuildNotification\Subscriptions]

(REG_SZ) PollingInterval = "00:02:00"

By default, polling interval is set to "00:02:30" or 2.5 minutes. Modifying this value will result in increased load on your TFS server

Tags:

Team Build

How to uninstall Visual Studio 2012?

by Xavier Dilip Kumar 29. January 2014 06:28

Solution:

vs_ultimate.exe /uninstall /force

Tags:

Visual Studio 2012

Clearing the default credentials cache for connecting to a Team Foundation Server

by Xavier Dilip Kumar 8. January 2014 12:08

Explanation:

Visual Studio/Team Explorer/MTM remembers your last credentials, So that you need not enter the login credentials everytime you connect to TFS. This will be a problem when you try to login as a different user.

Solution:

Perform the following steps to clear the credentials cache

  • Goto windows control panel --> "User Accounts" --> "Manage your credentials" 
  • Search for your TFS url in the list --> Expand the TFS url credentials in the list
  • click "Remove from vault" button 

  

Tags:

TFS

Test Plan/Suite Management through TFS 2013 web access

by Xavier Dilip Kumar 8. January 2014 10:14

Explanation:

You can now add Test Plan and Suite Management to the list of testing features available in Web Access.

Following are the tasks that can be done using web access

  • Create a test plan
  • Add/Create a test suite,static test suite and query-based test suite  
  • Add/Create test cases and Shared steps
  • test case execution
  • Status check after test case execution
  • Change the steps during execution

The differences between the local MTM and Web access is in the collection of diagnostic data (video, screenshots, IntelliTraace, code coverage). The collection of this data is only supported on a locally installed MTM

Tags:

MTM | TFS 2013 | Visual Studio 2013

How to fix the CA0053 error in Code Analysis in Visual Studio 2012?

by Xavier Dilip Kumar 29. December 2013 06:45

Explanation:

You are opening a solution made in Visual Studio 2010 with VS 2012.  When you run Code Analysis you get a series of CA0053 errors, saying it is unable to load the rule sets from the Visual Studio 2010 directory

In the Error window you get an error message saying “Code Analysis detected errors.” And in the Code Analysis window you will get the “CA0053 Error running code analysis” with its “Unable to load rule assembly”.

This means the project is bound to Visual Studio 2010, where it should have been Visual Studio version independent. The absolute path to the Visual Studio 10 binaries is what causes the problem.

What has happened was that this certain VS2010 specific information was “inadvertently” introduced in SP1, and it has not been fixed in any later update. It does NOT happen if you run in Debug|x86 or Release|x86, but any other configuration you have added will give you this error.

Solution:

Tool to fix the errors available at http://visualstudiogallery.msdn.microsoft.com/471da13b-d415-4a44-a4e9-a8222316b902

 

 

 

Tags:

Visual Studio 2010 | Visual Studio 2012

TFS 2012 and VS 2012 featured with new workspace concept called “local” workspaces

by Xavier Dilip Kumar 19. December 2013 19:19

Explanation:

TFS 2012 and VS 2012 featured with new workspace concept called “local” workspaces.The workspace concept which was available from VS/TFS 2005 - 2010 is called as “server” workspaces. “server” workspaces is the default option while creating a new workspace in VS 2012.

When a local workspace is created, the required data structures will be moved from the TFS server onto the TFS Client. The data structures are local to local machine instead of being hosted on the TFS server. Moving the data structures to local machine gives VS 2012 the ability to perform a number of source control operations without TFS web service calls or active connection to TFS server. The following operations continue to work when the local machine is disconnected from the TFS server.

  • Opening a source-controlled solution
  • Checking out a file for edit
  • adding a new file or folder for add
  • Delete on an existing file or folder
  • Rename on an existing file or folder
  • Monitor pending changes in the workspace
  • Undoing pending changes
  • Diffing your copy of a file with the version of the file your change is pended against
  • The local workspace will not carry read only bit during get source.
  • “Promoting” the candidate adds and/or deletes
  • The local workspace will be invisible to VS 2010 and earlier versions
  • No enforcement of PendChange permission or checkout locks
  • The local workspace can be converted to Server workspace and reverse the same

Drawback on Local workspaces.

Local workspaces have scalability limitations due to their use of the local workspace scanner which checks for edited items.If the workspace has more than 50,000 items, There may be performance problems or "TF400030 errors as operations exceed 45 seconds in duration." may occur

Steps to create a local workspace.

  

 

Tags:

TFS 2012 | Visual Studio 2012

"TF400030: The local data store is currently in use by another operation. Please wait and then try your operation again. If this error persists, restart the application.”

by Xavier Dilip Kumar 19. December 2013 08:36

Exception:

"TF400030: The local data store is currently in use by another operation. Please wait and then try your operation again. If this error persists, restart the application.”

Explanation:

The error occur when using local workspaces in Visual Studio 2012 or later

TFS 2012 and VS 2012 featured with new workspace concept called “local” workspaces.The workspace concept which was available from VS/TFS 2005 - 2010 is called as “server” workspaces 

When a local workspace is created, The required data structures will be moved from the TFS server onto the TFS Client. The data structures are local to local machine instead of being hosted on the TFS server. Moving the data structures to local machine gives VS 2012 the ability to perform a number of source control operations without TFS web service calls. The following operations continue to work when the local machine is disconnected from the TFS server.

  • Opening a source-controlled solution
  • Checking out a file for edit
  • adding a new file or folder for add
  • Delete on an existing file or folder
  • Rename on an existing file or folder
  • Monitor pending changes in the workspace
  • Undoing pending changes
  • Diffing your copy of a file with the version of the file your change is pended against
  • The local workspace will not carry read only bit during get source.
  • “Promoting” the candidate adds and/or deletes
  • The local workspace will be invisible to VS 2010 and earlier versions
  • No enforcement of PendChange permission or checkout locks
  • The local workspace can be converted to Server workspace and reverse the same

Local workspaces have scalability limitations due to their use of the local workspace scanner which checks for edited items.If the workspace has more than 50,000 items, There may be performance problems or "TF400030 errors as operations exceed 45 seconds in duration." may occur

Reconciled operation on the server or deadlock between two operations may also trigger the error.

In Local workspace architecture, only a single operation (thread) can use this local data at a time. If two pieces of system want to use the data store simultaneously – perhaps the Solution Explorer and the Source Control Explorer both want to refresh after an Undo operation was performed – then these two components have to take turns to use the local data store. One will wait for the other to finish, and who gets to go first is arbitrary.

The ‘loser’ of the race has to wait before proceeding, but will only wait for about 45 seconds. If he ends up waiting for that full amount of time, but still doesn’t get the chance to use the local data store (because some other component of the system is still using it), then this error will be raised.

Workaround:

  • keep the size of the local workspace from growing too large, files and folders less than 50,000 items
  • Avoid working with extremely large sets of pending changes (10,000+) for a long time without checking in. This helps to keep ‘reconcile’ costs low
  • Install Visual Studio 2012 Update 2 or later to get protected from the deadlock scenarios
  • Convert the local workspace to server workspace

Tags:

TFS | TFS 2012 | Visual Studio 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

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.

Month List