Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The connection name 'drConnectionString' was not found in the applications configuration or the connection string is empty.

Source Error:


Line 70: 				</asp:GridView>
Line 71: 				
Line 72: 				<asp:SqlDataSource ID="sql2" runat="server" ConnectionString="<%$ ConnectionStrings:drConnectionString %>" SelectCommandType="StoredProcedure" SelectCommand="cr_getLatestReviews"></asp:SqlDataSource>
Line 73: 			</div>
Line 74: 		</div>

Source File: c:\www\car-reviews\index.aspx    Line: 72

Stack Trace:


[InvalidOperationException: The connection name 'drConnectionString' was not found in the applications configuration or the connection string is empty.]
   System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +2510562
   ASP.car_reviews_index_aspx.__BuildControlsql2() in c:\www\car-reviews\index.aspx:72
   ASP.car_reviews_index_aspx.__BuildControlContent1(Control __ctrl) in c:\www\car-reviews\index.aspx:3
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
   ASP.tmaster.__BuildControlmiddleContent() +117
   ASP.tmaster.__BuildControlShell() +267
   ASP.tmaster.__BuildControlTree(tmaster __ctrl) +507
   ASP.tmaster.FrameworkInitialize() +46
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8763091
   System.Web.UI.Page.get_Master() +51
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282


Version Information: Microsoft .NET Framework Version:2.0.50727.8745; ASP.NET Version:2.0.50727.8745