Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

Network Name cannot be found error when executing unit tests

$
0
0

Hi there,

I'm not sure whether i should create another thread on on this issue.

I am using MS Visual Studio 2012 Premium on Windows 7 Professional x64

I am trying to run the unit tests against a WCF service installed on my machine. I am running it as localhost through Visual Studio.

When i run the unit test from the UnitTest dll i am getting the following error:

System.IO.IOException, The network name cannot be found

The Unit Test class has a DeploymentItem attribute decorated such as the following:

[TestClass]
[DeploymentItem("FunctionalTests.config")]
public class ProductTests
{
  //unit tests here
}

I then modified the FunctionalTests.config file and modified the file to point to my service running locally and it still doesnt work.

When i look at the generated results trx file it says "The network name cannot be found".

Could anyone explain why i could be receiving this error please?

Thanks,



Viewing all articles
Browse latest Browse all 2763


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>