Visual Studio Unit testing: URI formats are not supported

Visual Studio Unit testing: URI formats are not supported

Last week I tried to execute some Unit Test in a C# Test project on Visual Studio 2010 (in relation to the daily BizTalk development work that I do).  Both options “Run Selection” and “Debug Selection” gave me the following error message “URI formats are not supported”.

What was the problem?  I created the solution just in the default directory because I only needed that solution to test some regex output.   Was unaware that I was working on a network share.

How can you solve the problem? Normally when you add a new “Test Project” to your solution it adds the following files to a solution items folder. 

Just check the “Enable Deployment” property in the “Local.testsettings” and “TraceAndTestImpact.testsettings” under the deployment category, like the example below.

Problem solved, unit tests running fine!

Author: Sven Van den brande



Working at i8c

i8c is a system integrator that strives for an informal atmosphere between its employees, who have an average age of approx 30 years old. We invest a lot of effort in the professional development of each individual, through a direct connection between the consultants and the management (no multiple layers of middle management). We are based in Kontich, near Antwerp, but our customers are mainly located in the triangle Ghent-Antwerp-Brussels and belong to the top 500 companies in Belgium (Securex, Electrabel, UCB, etc…).

Quality Assurance

i8c is committed to delivering quality services and providing customer satisfaction. That’s why we invested in the introduction of a Quality Management System, which resulted in our ISO9001:2000 certification. This guarantees that we will meet your expectations, as a reliable, efficient and mature partner for your SOA & integration projects.

i8c - ISO9001-2015