Fix : ASP.NET MVC dlls are missing. Check if you have following dlls in the bin of deployment folder.
System.Web.MVC
System.Web.Razor
System.Web.Abstractions
Microsoft.Web.Infrastructure
System.Web.WebPages
System.Web.WebPages.Razor
System.Web.WebPages.Deployment
System.Web.Helpers
Tuesday, September 6, 2011
Unrecognized attribute 'targetFramework'
Scenario - "Unrecognized attribute 'targetFramework'" error while running ASP.NET/ASP.NET MVC Application.
Fix - The AppPool is using a wrong .NET framework. You can check it by following steps.
IIS -> Application Pools -> Double click on "Your Application Pool" -> .NET Framework Version.
Enjoy !!!
Fix - The AppPool is using a wrong .NET framework. You can check it by following steps.
IIS -> Application Pools -> Double click on "Your Application Pool" -> .NET Framework Version.
Enjoy !!!
Sunday, September 4, 2011
How to configure Code Coverage in TFS 2010
Prerequisite - You should have Visual Studio 2010 Ultimate or Visual Studio 2010 Premium edition.
Step - 1: Create a .testconfig file using Add New Item menu.
Step - 2: Double click the .testconfig file to open Test Settings window.
Step - 3: Choose Data and Diagnostics tab and check you have following settings.
Role - Local Machine only
Code Coverage - Checked
Step - 4: Double click the Code Coverage to open Code Coverage Detail window. Add all your assemblies in this window that should come under code coverage.
Now if you run your tests, you should also see Code Coverage in Code Coverage tab (Test - Windows -> Code Coverage Result)
Step - 1: Create a .testconfig file using Add New Item menu.
Step - 2: Double click the .testconfig file to open Test Settings window.
Step - 3: Choose Data and Diagnostics tab and check you have following settings.
Role - Local Machine only
Code Coverage - Checked
Step - 4: Double click the Code Coverage to open Code Coverage Detail window. Add all your assemblies in this window that should come under code coverage.
Now if you run your tests, you should also see Code Coverage in Code Coverage tab (Test - Windows -> Code Coverage Result)
Subscribe to:
Posts (Atom)