Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 29th, 2003, 01:55 PM
Registered User
 
Join Date: Aug 2003
Location: , , Germany.
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):

Code:
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.
Thanks

Andreas
  #2 (permalink)  
Old August 29th, 2003, 03:43 PM
Registered User
 
Join Date: Aug 2003
Location: , , Germany.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AHaeusler
Default

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.

Andreas

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



All times are GMT -4. The time now is 08:02 AM.


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