I had set up a bunch of NUnit unit tests using the Test connection string in my App.config file and everything was working fine.
Then all of a sudden all my tests stopped working and threw the same exception:
System.ApplicationException : Connection string 'ApplicationServices' does not exist
Yet here are the contents of my App.config file with the missing connection string clearly visible:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="ApplicationServices"
connectionString="Test"
providerName="System.Data.SqlClient"/>
</connectionStrings>
</configuration>
Has anyone else come across this and if so how did you get around it?