Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 23rd, 2011, 07:43 AM
Authorized User
Points: 265, Level: 5
Points: 265, Level: 5 Points: 265, Level: 5 Points: 265, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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....
  #2 (permalink)  
Old October 23rd, 2011, 10:19 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

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

Imar Spaanjaars
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!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 05:55 AM.

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