.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 4th, 2005, 01:14 PM
cookie cookie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 12 cookie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question sql server in vb.net - log in failed

Login failed for user '***\ASPNET'.

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: Login failed for user '***\ASPNET'.

Source Error:

Line 64: Dim users As New ArrayListLine 65: Dim pass As New ArrayListLine 66: myData.Fill(myLogin)Line 67: End SubLine 68:

Stack Trace:

[SqlException: Login failed for user 'KRISTI\ASPNET'.] System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction) System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnectionString options, Boolean& isInTransaction) System.Data.SqlClient.SqlConnection.Open() System.Data.Common.DbDataAdapter.QuietOpen(IDbConn ection connection, ConnectionState& originalState) System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) mySC_VB.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\mySC-VB\login.aspx.vb:66 System.Web.UI.Control.OnLoad(EventArgs e) System.Web.UI.Control.LoadRecursive() System.Web.UI.Page.ProcessRequestMain()




--> hope sum1 know how to fix this problem....

Reply With Quote
  #2  
Old January 5th, 2005, 02:19 PM
reorx reorx is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 3 reorx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

Quote:
Originally Posted by cookie
Login failed for user '***\ASPNET'.


--> hope sum1 know how to fix this problem....


It's quite straightforward message.
User MACHINENAME\ASPNET has no rights to login to the database, nor has the right to read anything from it.

The happens because you're using trusted connection.

you might try one of the following:

1) add user MACHINENAME\ASPNET to the databse and grant him rights to read (of write if needed) the database.
And check if you got the right database right.

2) create user of any name and pasword for the databse and change you connectionString property of your SqlConnection object, providing there username and password you set.

hope it will help
regards,
Pawel Rogozinski

Reply With Quote
  #3  
Old January 7th, 2005, 01:39 AM
cookie cookie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 12 cookie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile thanks

i'll try your suggestion later....
thanks fot your reply

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > sql server in vb.net - log in failed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT