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 .

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'.

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 {