I am securing my MVC5 project, by moving the connection strings out of web.config into an external file, and not checking this into source control, nor adding it to the project.
My web.config looks like
<configuration>
<connectionStrings configSource="ConnectionStrings.config" />
This works perfectly in development.
I have the website hosted in Azure WebSites, and I have manually defined the connectionstrings in the configuration portal.
The problem is that when I publish to Azure, I get the error "Unable to open configSource file 'ConnectionStrings.config'."
Is there a way to override the Connection Strings element in the web.config so it will not try and find the external file? Is Web Transforms able to do this?
Thanks in advance, all help appreciated