<connectionStrings> <add name ='MyDB' connectionString ='Data Source=.\SQLEXPRESS' providerName='System.Data.SqlClient'/> </connectionStrings>
I’ve wired the above however I keep getting the following:
System.Configuration.ConfigurationErrorsException: The requested database MyDb is not defined in configuration.
Is there something wrong with the wiring or is the problem located within my code?
DatabaseFactory.CreateDatabase(DB_NAME)
Problem was solved I put the connection in the service config file, however all posts were helpful
For future reference – this website may help, I use it as kind of a cheat sheet.