You are here

The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.

You just added a Razor web page to a traditional ASP.NET project and now you get this error.

A new section has been added to your Web.config file. Modify it like so:

    <add key="webpages:Enabled" value="true" />
    <add key="enableSimpleMembership" value="false" />

Add new comment

Simple Copyright Policy: If you want to reproduce anything on this site, get my permission first.