How to create a custom Value Provider for MVC 23 September 2011 Donovan-Brown Work (0) Problem: I need to test an MVC Controller Action that needs the Identity of the current user without mocking the HTTPContext. Solution: Create a custom Value Provider that allows access to the current user via an Action Parameter. Explanation: One of the goals of the MVC pattern is making the a... [More]
Why is my MS Project run so slow when connected to TFS. 19 September 2011 Donovan-Brown Work (0) Problem: With MS Project connected to TFS Project takes forever to refresh. Solution: One possible solution is to change the calculation mode from automatic to manual. To change the calculation mode select Tools / Options / Calculation / Calculation Mode and change from automatic to manual.
Having trouble testing my WPF app with Coded UI Test 17 September 2011 Donovan-Brown Work (0) Problem: I cannot find my WPF TextBlock using the Coded UI test because the value is data bound and changes. Solution: Set the Name attribute on the controls of your View which sets the AutomationId. Explanation: Many WPF developers only place the Name attribute on items they intend to access f... [More]
I can't generate MySQL DDL from my Entity Framework edmx file. 13 September 2011 Donovan-Brown Work (0) Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"... [More]
I need to show TFS history of a file on the command line so I can redirect to a text file. 13 September 2011 Donovan-Brown Work (0) Problem: When I run the tf history command from the command line it shows a dialog box. Solution: Add the /noprompt option to the TF History command. This will cause the output to be shown in the command window. You can then use DOS redirection to easily store the results in a text file. For exa... [More]
How to add a SharePoint portal after you created the Team Project 27 August 2011 Donovan-Brown Work (0) Problem: I created a team project and did not select the option to create a share point site and now I want to add one. Solution: Create a dummy site and remove the link to sharepoint and wire it up to the original team project. Or two create a new site in SharePoint and wire it up. Explantion:... [More]
How do I validate data in my database during a web test 25 August 2011 Donovan-Brown Work (0) Problem: The only way I can verify the success of my web test is to read a value from a database. Solution: Create a custom validation rule that can validate the value in the database. Code: using System; using System.ComponentModel; using System.Data.SqlClient; using Mic... [More]
How to change the display name of my Find Text validation rule 03 August 2011 Donovan-Brown Work (0) Problem I can’t easily tell what my Find Text validation rule is searching for in my Web Test. Solution Change the DisplayName value in the Web Test xml to something more meaningful. From Solution Explorer right click on the Web Test and select Open With… then select XML (Text) Ed... [More]
How to Xcopy deploy using TFS 2010/2012 01 August 2011 Donovan-Brown Work (0) Problem I need my VS2010/VS2012 build to perform an “Xcopy deployment” of my ASP.NET application to an existing virtual directory. Solution Customize the build template to use the CopyDirectory activity to copy the ASP.NET application to the virtual directory. Explanation One of the... [More]
I get an unresolved reference to the object [#aspnet_Permissions] 29 July 2011 Donovan-Brown Work (0) Normal 0 false false false EN-US X-NONE X-NONE Problem When I import a database that uses ASP.NET Providers I get an unresolve... [More]