I can't find the Kanban board in Update 2.

by Donovan Brown 7. May 2013 05:35

 

Problem:

 I installed Update 2 for TFS but when I click board I don’t see the Kanban board I see the task board.

 Solution:

Click the board link at the top of the Backlog Page under the "Product Backlog" heading next to "stories".

Explanation:

The board link at the top left of the page between the backlog and work items links takes you to the task board.



But if you click the board link below the "Product Backlog" heading where you enter new User Stories it will take you to the Kanban board.


Tags: , ,

Work

I can't access app.config from my web test plug in

by Donovan Brown 26. April 2013 20:40

Problem:

 I want to read the connection strings from my app.config of my Web Test Project but it never loads.

 Solution:

 Use the Configuration Manager OpenMappedExeConfiguration call to load the app.config file.

 Code: 

// Map the new configuration file.
ExeConfigurationFileMap configFileMap = new ExeConfigurationFileMap();
configFileMap.ExeConfigFilename =
   System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.Name + ".config";

// Get the mapped configuration file
var config = ConfigurationManager.OpenMappedExeConfiguration(
   configFileMap, ConfigurationUserLevel.None);

Explanation:

The app.config of the test project is not loaded for web or load tests, because they are run in the same application domain as the test process (either vstesthost.exe or qtagent.exe), so they will load their config files instead. Therefore, we simply load the configuration file ourselves.

Loading a configuration file is a two phased process.  First we build a ExcConfigurationFileMap object and set the name of our configuration file to be loaded. Then we open that file with a call to OpenMappedExeConfiguration method of the ConfigurationManager class.

I am not a fan of hard coded values so we are going to get the name of the assembly using reflection and simply concatenate ".config" to the end of it.  Calling System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.Name will return the name of the assembly.

After calling OpenMappedExeConfiguration you can use the returned object to access the connection strings or any other data from the app.config.

Tags: , , , , ,

Work

How to setup a discussion board on your TFS Project Portal

by Donovan Brown 24. April 2013 19:16

You can set up discussion boards on your SharePoint Project Portal site to share information and discuss topics with other people.

  • Navigate to the Project Portal
  • Click All Site Content at the bottom left of the page
  • Click the Create link at the top of the page
    • If you do not see the Create link you need at least the Design permission
  • From the Communication section select Discussion Board
  • Enter a Name and Description and click Create button

Tags: , ,

Work

I get an error when I attempt to search my TFS Project Portal

by Donovan Brown 24. April 2013 18:41

Problem:

When I attempt to use the search feature of my TFS Project Portal I get the following error:

"Your search cannot be completed because this site is not assigned to an indexer. Contact your administrator for more information."

Solution:

Configure the "Microsoft SharePoint Foundation search server".

Explanation:

  • Open SharePoint 2010 Central Administration
  • Click Manage content databases under the Application Management section
  • Make sure the SharePoint site is selected for Web Application and not SharePoint Central Administration
  • Click the WSS_Content database link
  • Find the Search Server section and select a search server

Tags: , ,

Work

How to configure a search server for SharePoint 2010

by Donovan Brown 24. April 2013 17:43

If you would like to be able to search your TFS Project Portal you must enable a Microsoft SharePoint Foundation Search Service.  This process is for SharePoint 2010 that is installed by TFS during the configuration.

  • Open a command prompt and change to the following directory:
    • C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
  • Run the following command:
    • psconfig.exe -cmd services –install
    • NOTE: This command will take down our TFS while it runs.
  • Open SharePoint 2010 Central Administration
  • Click Manage services on server under the System Settings section
  • Click the Start link next to SharePoint Foundation Search
  • You will be sent to the Configure Microsoft SharePoint Foundation Search Service Settings on server [serverName]
  • Simply scroll down and click the Start button

Tags: , ,

Work

I exceeded the maximum size for upload in SharePoint

by Donovan Brown 10. April 2013 23:38

Problem:

I get a size limit error when I try to upload a document to SharePoint.

Solution:

By default the maximum size is set to 50 MB. We simply need to increase the acceptable file size.

Explanation:

  1. In Central Administration, in Application Management, click Manage web applications.
  2. Select the application (for example, SharePoint - 80).
  3. On the Web Applications ribbon, click the down arrow on the General Settings button.
  4. Click General Settings.
  5. Scroll to Maximum Upload Size.
  6. Set the property to the same number as the Maximum Workbook Size in Excel Services.
  7. Click OK.

Tags:

Work

Web application causes An attempt was made to load a program with an incorrect format error.

by Donovan Brown 23. March 2013 17:37

Problem:

When I attempt to start my asp.net web application running in IIS 8 I receive the following error:

Could not load file or assembly 'Xxx' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Solution:

Enable 32-Bit Applications for the Application Pool running your application.

Explanation:

Start IIS and select your web applications virtual directory under Sites\Default Web Site. Select Basic Settings from the Actions pane.  Note the Application pool your application is using and click Cancel to close the dialog.  Select Application Pools from the Connections pane.  Right click on the application pool running your web application and select Advanced Settings from the context menu.  Change Enable 32-bit Applications from False to True.

Tags: ,

Work

How to connect Office 2003 to TFS 2012

by Donovan Brown 20. March 2013 19:40

Problem:

Team Explorer 2012 does not integrate with Office 2003.

Solution:

Install Team Explorer 2008, Visual Studio 2008 SP1 and 2008 Compatibility Update.

Explanation:

This procedure will also work to get Visual Studio 2008 connected to TFS 2012.

If you open Excel 2003 after installing Team Explorer 2012 you may get an error when you exit Excel.

Just click Close the programThe next time start Excel you will be presented the following error:

Click Yes to disable the 2012 version of the ‘team foundation add-in’ and close Excel.

Now you will have to execute a few commands from an elevated command prompt.

From an admin command prompt, change directories to “Program Files\Microsoft Visual Studio 9\Common7\IDE\PrivateAssemblies” or “Program Files (x86)\Microsoft Visual Studio 9\Common7\IDE\PrivateAssemblies” on a 64 bit machine.

To register the 2008 version of the add-in run the following command and press Enter:

regsvr32 TFSOfficeAdd-in.dll

Now when you open Excel you will see a new Team menu.

Tags:

Work

I get an error trying to run reports on TFS2012 install

by Donovan Brown 19. March 2013 23:19

Problem:

I get the following error when I attempt to view reports:


An error has occurred during report processing. (rsProcessingAborted)
Cannot impersonate user for data source 'TfsReportDS'. (rsErrorImpersonatingUser)
Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
For more information about this error navigate to the report server on the local server machine, or enable remote errors 

Solution:

Verify that the password for the account reporting services is using has not expired.

Explanation:

In your browser, navigate to http://localhost/reports (from your reporting server machine).
Click on Tfs2010ReportDS on the home page. Under the 'Credentials stored securely in the report server' click the Test Connection button. You should see the following message "Log on failed. Ensure the user name and password are correct."
Simply reenter the username and password information and test the connection again.

Tags: , , ,

Work

Cannot register assembly during Team Build (and I don't want too)

by Donovan Brown 6. February 2013 22:27

Problem:

I have a solution that contains a project with the "Make assembly COM-Visible" checked and I get the following error when I attempt to run a team build:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (3885): Cannot register assembly "C:\Builds\1\TeamProject\Libraries - CI\bin\Debug\Mydll.dll" - access denied. Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\Mydll' is denied.

Solution:

Pass "/p:RegisterForComInterop=false" to MSBuild using the MSBuild Arguments process parameter of your build definition.

Explanation:

The service account running my build agent is not an adminstrator on my build.  Therefore; it does not have permissions to write to the registry to register the COM assembly.  Because this is my build machine I have no desire to have the COM assembly registered on this machine. I simply what the solution to build.

When the "Make assembly COM-Visible" is checked the project file is changed to include a target to register the assembly. That target has a condition testing if RegisterForComInterop is true.  By passing the values to MSBuild you are overriding the default value of True with False.  This will allow the project to compile and skip the step to register.

Tags: , , ,

Work

About the author

My name is Donovan Brown and I am a process consultant for Imaginet with a background in application development.  I also run one of the Nation’s fastest growing online registration sites for motorsports events DLBRacing.com.  When I am not writing software I race cars for fun.  DLBRacing.com has given me the opportunity to combine my two passions writing software and racing cars.

AdSense

Month List

AdSense