Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 23rd, 2011, 07:43 AM
Authorized User
 
Join Date: Jun 2010
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in attaching database ?

Dear Sir,
I have attached the dtabase using sql server management studio and followed each and every step mentioed in the book minutely. after compleging every step when I run the website through the option view in browser following error gets.




Server Error in '/SATYAM_SRI' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The entry 'LocalSqlServer' has already been added.

Source Error:


Line 32: Initial Catalog=PV_POINT; User ID=PlanetWroxUser;password=camel@2468"
Line 33: providerName="System.Data.SqlClient"/>
Line 34: <add name="LocalSqlServer" connectionString="Data Source=ABC-PC;
Line 35: Initial Catalog=aspnetdb; User ID=PlanetWroxUser;password=camel@2468"
Line 36: providerName="System.Data.SqlClient"/>


Source File: C:\Users\abc\Desktop\SATYAM_SRI\web.config Line: 34


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Please help me....
 
Old October 23rd, 2011, 10:19 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Check if your <connectionStrings /> element has a <clear /> element at the top...

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem getting the online presence list after attaching anamaria BOOK: Professional XMPP Programming with JavaScript and jQuery 2 December 5th, 2010 01:24 PM
attaching file with email jack_hilary BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 0 September 25th, 2009 02:12 PM
Attaching database & DBCC CHECKTABLE problem... seananderson SQL Server 2000 5 April 2nd, 2007 08:29 AM
Error attaching SQL Database Wasim SQL Server 2000 2 April 27th, 2005 04:54 AM
Attaching Tables!!! NitinJoshi General .NET 3 January 21st, 2005 11:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.