Search code examples
asp.netasp.net-mvc-3asp.net-mvc-4episerver

Rename connection string in .NET with EPiServer 7


I have this connection string:

<connectionStrings>
  <clear />
  <add 
    name="EPiServerDB" .... />
</connectionStrings>

And was wondering if it is possible to rename it to something else other that EPiServerDB. Is it possible? We really need that on the current project as this name conflicts with another connection string which we hoped to use from an earlier project. The reason why is that we are integrating the old business layer into our new solution.

We are using EPiServer CMS 7, if that matters.


Solution

  • I had to do what this forum post says:

    http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=70799&epslanguage=en

    Plus I had to rename all references to the connection string.