Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old January 8th, 2007, 05:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Banbury, , United Kingdom.
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
Reply With Quote
  #12 (permalink)  
Old January 8th, 2007, 07:49 PM
Authorized User
 
Join Date: Dec 2006
Location: , , .
Posts: 34
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
Reply With Quote
  #13 (permalink)  
Old February 10th, 2007, 11:24 PM
Authorized User
 
Join Date: Feb 2007
Location: florence, sc, USA.
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


Reply With Quote
  #14 (permalink)  
Old February 12th, 2007, 07:30 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Banbury, , United Kingdom.
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
Reply With Quote
Reply


Thread Tools
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
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
anyone can help with sql connection problems saif44 Visual Web Developer 2005 2 March 22nd, 2006 08:57 AM
SQL Server - System log full Jane SQL Server 2000 3 December 23rd, 2004 09:10 PM
Connection with sql server arshad mahmood VB Databases Basics 1 June 19th, 2003 10:53 PM



All times are GMT -4. The time now is 12:15 PM.


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