Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 June 25th, 2009, 12:20 AM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Question on your NLayer Application

Chatted with you via email on this topic. I was having issues converting an mdf to a sql server database. I figured that part out and now have the database in Sql Server 2005 instead of Express:

My connection string changed from:<add name="NLayer" connectionString="Data Source=(local)\SqlExpress;AttachDbFilename=|DataDi rectory|\NLayer.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

To:

<
addname="NLayer"connectionString="Data Source=(local);Initial Catalog=ContactManagement;User ID=sa;Pwd=p4yt0ng;
"providerName="System.Data.SqlClient"/>

I'm having issues with the provider now specifically line 221 in default.aspx.cs

btnNew.Visible = Membership.GetUser() != null;

{"The user instance login flag is not supported on this version of SQL Server. The connection will be closed."}

Any ideas on how to get the provider to work?


 
Old June 25th, 2009, 03:26 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

First of all, this forum is specific for my book "Beginning ASP.NET 3.5 in C# and VB.NET". Can you please post messages like this one that are not related to my book in a mpre generic ASP.NET category here at p2p.wrox.com? Makes it easier for readers of the book to find relevant messages.

That said, I don't think the problem is related to the N-Layer connection string, but to the one used by Membership (called LocalSqlSevrer by default).

Check out these articles for more help:

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=395
http://weblogs.asp.net/scottgu/archi...25/423703.aspx

Cheers,

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!
 
Old June 25th, 2009, 10:11 AM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks Imar 2nd Link did the trick

Scott G is da man. Thanks for the support Imar, Much appreciated
 
Old June 25th, 2009, 12:00 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Does it work now?

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
Application.exit() fails to terminate application. saumya General .NET 1 January 4th, 2008 09:50 AM
Web Application OR Windows Application adesilva .NET Framework 2.0 2 May 4th, 2007 07:12 AM
XML application question cutnedge XML 1 April 13th, 2007 04:19 PM
Web application Vs Windows Application Ned .NET Web Services 2 January 20th, 2004 01:27 PM





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