Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
  <connectionStrings>
    <add name="DefaultConnection" connectionString="..."  providerName="System.Data.SqlClient" />
    <!-- Add lynicon database connection string here, or delete if no database being used -->
    <add name="LyniconContent" connectionString="..." />
  </connectionStrings>
Warning

If you want to use the default connection string to a local .mdf in App_Data set up by VS scaffolding, you will need to modify it so that:

  • You have 'Data Source=(LocalDb)\MSSQLLocalDB' (rather than something like 'Data Source=(LocalDb)\v11.0', so that the most up-to-date version is used)
  • You replace '|DataDirectory|' with the full path to the .mdf e.g. 'C:\\Sites\\MySite\\App_Data\\xyz.mdf' (so that the command lines tools for setup will be able to find the path correctly)

Build the Site

Run a build on the site as the commands you are about to run will load the current site's compiled code in order to enable them to execute, and they won't work without this step.

...