Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 15th, 2004, 10:46 AM
drdexter33 drdexter33 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 6 drdexter33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Login failed for user DOMAINNAME\COMPUTERNAME$

I have just moved an asp.net application using SQL Server 2000 from a Windows XP Pro to a test machine running Windows Server 2003 and IIS 6.

When I attempt to access 2 pages in this application I get this error:
----------------------------------------------------------------------------
Login failed for user DOMAINNAME\COMPUTERNAME$
----------------------------------------------------------------------------
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 DOMAINNAME\COMPUTERNAME$'.


An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SqlException: Login failed for user 'CWC\MIS-2003$'.]
System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction) +472
System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
System.Data.Common.DbDataAdapter.QuietOpen(IDbConn ection connection, ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38
IntranetSupportAppliation.ComputerList.BindDataGri d() in C:\Inetpub\wwwroot\IntranetSupportAppliation_1\Com puterList.aspx.vb:297
IntranetSupportAppliation.ComputerList.Page_Load(O bject sender, EventArgs e) in C:\Inetpub\wwwroot\IntranetSupportAppliation_1\Com puterList.aspx.vb:284
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
----------------------------------------------------------------------------

THe funny thing is that the other pages are working fine, and on the XP Pro box everything works.

I'm really not a SQL Server Guru, my level of experience is fairly minimal.

I have set up the security to permit DOMAINNAME\COMPUTERNAME$ access to the database.
I have set up the security to permit COMPUTERNAME\ASPNET access to the database.

Any ideas of what I'm doing wrong?

Thanks.

Doug Dexter

Reply With Quote
  #2  
Old October 21st, 2004, 12:28 AM
Leslie's Avatar
Leslie Leslie is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Honolulu
Posts: 184 Leslie User rank is Corporal (100 - 500 Reputation Level)Leslie User rank is Corporal (100 - 500 Reputation Level)Leslie User rank is Corporal (100 - 500 Reputation Level)Leslie User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 29 m 2 sec
Reputation Power: 9
Off hand, only thing I can think is that those particular pages are attempting to connect differently then the other pages. Why not see if you can create a new connection on the same page without failure?

OR

maybe those pages are hitting a SQL Server object that no other pages are useing and the permissions are not set right for those objects in particular. Perhaps you have a view in this database that is selecting data from another database. Although you grant SELECT on this view that does not mean that this user can SELECT from the other database. You would have to grant database 2 permissiong for database 1 users to perform the SELECT or whatever it is your pages are doing.

Hope that gives you some troubleshooting leads. Good luck!

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Login failed for user DOMAINNAME\COMPUTERNAME$


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 4 hosted by Hostway
Stay green...Green IT