Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 January 8th, 2007, 06:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to DanM
Default

proslambano,

Yes, if you are using VB then you should be looking for themes.vb there rather than themes.cs.

As for your connection issue, it looks like you've got the wrong end of the stick with regard to 'instance names'. Looking at Lightwavers example here

<remove name="LocalSqlServer"/>
    <add name="LocalSqlServer"
connectionString="Data Source=localhost;Initial Catalog=ASPNETDB;Integrated Security=True"
         providerName="System.Data.SqlClient"/>

The instance name you're referring to isn't 'LocalSqlServer' - this is just the name identifying the connection string in the web.config file and to the website - it's localhost, the particular named instance of SQL Server on your machine. If you install SQL Express and leave the settings at their defaults, the instance name is generally (local)\SQLExpress or localhost\SQLExpress. With SQL Server, it would be (local) or localhost. It's not the name of the actual service running which is what your MSSQLSERVER would seem to imply.

Assuming you installed SQL Standard on the same machine as VS Professional, you should be able to leave Lightwaver's example as is and have everything run fine. If not, you can check your database instane name easily by opening SQL Management Studio and looking for the 'Server Name' in the 'Connect to Server' dialog that pops up by default. That's the name that should repalce 'localhost'.

Hope that helps,

Dan

Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive
 
Old January 8th, 2007, 08:49 PM
Authorized User
 
Join Date: Dec 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Dan,

Whew, a total newb I am! lol... I'm trying to learn ASP and SQL at the same time... so many little details, but I made a lot of headway last week in understanding some basics. Thanks for you help.

Brian

Sincerely,
Brian
 
Old February 11th, 2007, 12:24 AM
Authorized User
 
Join Date: Feb 2007
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I keep getting this error. I'm using VS 2005 std edition. I need
help. I've searched all the forums and found no answers.


The user instance login flag is not supported on this version of SQL
Server. The connection will be closed.
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.Data.SqlClient.SqlException: The user
instance login flag is not supported on this version of SQL Server. The
connection will be closed.

Source Error:


Line 109: public virtual string Theme {
Line 110: get {
Line 111: return ((string)(this.GetPropertyValue("Theme")));
Line 112: }
Line 113: set {


Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary
ASP.NET Files\wroxunited\fa445607\abe8c60a\App_Code.07voer qo.7.cs
Line: 111


 
Old February 12th, 2007, 08:30 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to DanM
Default

Hi roger2002,

It looks like you've already found the thread for this issue.
Just to repeat, please go here : http://p2p.wrox.com/topic.asp?TOPIC_ID=44076

Thanks, Dan

Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive





Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot attach to databases with SQL Server Full dhx10000 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 October 30th, 2007 04:28 PM
SQL connection problems username passwords beatniks BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 6 August 16th, 2006 11:45 AM
SQL Server - System log full Jane SQL Server 2000 3 December 23rd, 2004 10:10 PM
Connection with sql server arshad mahmood VB Databases Basics 1 June 19th, 2003 10:53 PM





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