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 [geshifilter-code]Web.config[/geshifilter-code] file. Modify it like so:

[geshifilter-xml] <appSettings> <add key="webpages:Enabled" value="true" /> <add key="enableSimpleMembership" value="false" /> </appSettings> [/geshifilter-xml]

Add new comment

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