Wrox Programmer Forums
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 August 29th, 2003, 01:55 PM
Registered User
Join Date: Aug 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AHaeusler
Default Error with DB user 'sa'

Hi all together,

I've got a problem with executing the user registration of chaper 5. When I click on 'Register', I get the following error message (I don't know if it exactly sounds like this in english, because I use the german language version of the .NET framework):

System.Data.SqlClient.SqlException: Error at login for user 'sa'.
Reason: Not assigned to trusted DB server connection.
at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
at Wrox.WebModules.Data.DbObject.RunProcedure(String storedProcName, IDataParameter[] parameters, String tableName)
in c:\inetpub\wwwroot\thePhile\modules\core\dbobject.cs:line 138
at Wrox.WebModules.Accounts.Data.AccountsTool.GetStateList()
in c:\inetpub\wwwroot\thePhile\modules\accounts\accountsdata\accountstool.cs:line 18
at Wrox.WebModules.Accounts.Business.AccountsTool.GetStates()
in c:\inetpub\wwwroot\thePhile\modules\accounts\accountsbusiness\accountstool.cs:line 14
at Wrox.ThePhile.WebModules.Accounts.Web._new.Page_Load(Object sender, EventArgs e)
in c:\inetpub\wwwroot\thePhile\modules\users\new.aspx.cs:line 61
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()
As I am very new to MS SQL Server, I don't know what to do. The help file tells something like trusted connections are only necessary for Windows authentication. But actually the user 'sa' uses a SQL authentication, I think.
I'd be glad if anybody could help me, since this isn't the first problem I got with chapter 5 and I'm hanging on this chapter nearly two weeks now.

Old August 29th, 2003, 03:43 PM
Registered User
Join Date: Aug 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AHaeusler

Hi folks,

actually my SQL Server authentication mode was set to "Windows only", so all I had to do to solve this problem was changing the settings for my server in the Enterprise Manager's security tab to "Windows and SQL authentication".

By the way, I also want to say that this is a very great book. It's not so easy finding a book which doesn't tell you how to write code or other fundamental topics at the first 200 pages. Thanks a lot.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Login Failed for User sa r_taduri Crystal Reports 1 November 29th, 2009 09:50 AM
Login failed for user 'sa' ??? reidcor BOOK: ASP.NET Website Programming Problem-Design-Solution 9 October 17th, 2006 01:04 PM
Error: Login failed for user sa -urgent hums ADO.NET 5 September 28th, 2004 05:52 AM
Urgent : Getting Error :Login failed for user sa hums SQL Server ASP 1 September 28th, 2004 05:51 AM
Login failed for user 'sa' ameg BOOK: Beginning ASP 3.0 5 April 6th, 2004 01:52 AM

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