I can see the database in App_Data, but cannot connect to in in SQL Server.
Step 10 on page 445: When I bring up Genres.aspx in my browser I get this
-----------------
Server Error in '/' Application.
The connection name 'PlanetWroxConnectionString1' 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 'PlanetWroxConnectionString1' was not found in the applications configuration or the connection string is empty.
Source Error:
Line 19: </Fields>
Line 20: </asp:DetailsView>
Line 21: <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:PlanetWroxConnectionString1 %>" DeleteCommand="DELETE FROM [Genre] WHERE [Id] = @Id" InsertCommand="INSERT INTO [Genre] ([Name], [SortOrder]) VALUES (@Name, @SortOrder)" ProviderName="<%$ ConnectionStrings:PlanetWroxConnectionString1.Prov iderName %>" SelectCommand="SELECT [Id], [Name], [SortOrder] FROM [Genre]" UpdateCommand="UPDATE [Genre] SET [Name] = @Name, [SortOrder] = @SortOrder WHERE [Id] = @Id">
Line 22: <DeleteParameters>
Line 23: <asp:Parameter Name="Id" Type="Int32" />
---------------------
|