Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 October 14th, 2004, 03:33 PM
Registered User
Join Date: Sep 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data.SqlClient.SqlException: Login failed

System.Data.SqlClient.SqlException: Login failed for user 'MachineName\ASPNET'

But I have registered as an administrator for my machine and then execute the Web application.

A very interesting thing is that I have met this problem (not the above application) before and it happened one after the other. That is, it worked one, then failed ("Login failed for user ..."), then worked again.

Who knows what happened is ASP.NET for this situation?

BTW: I have give full control to the account MachineName/ASPNET
I am working with Visual Studio 2003
  #2 (permalink)  
Old October 15th, 2004, 02:27 AM
Friend of Wrox
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
Thanks: 0
Thanked 0 Times in 0 Posts

Is MachineName/ASPNET accound is added in list of logins in SQL Server

Charul Shukla
  #3 (permalink)  
Old October 15th, 2004, 07:22 AM
Friend of Wrox
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

And what privileges does MachineName\ASPNET have in SQL Server...
  #4 (permalink)  
Old October 15th, 2004, 03:01 PM
Registered User
Join Date: Sep 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks for you responses.

In SQL Server Enterprise Manager,

Users: existing-> dbo (Login name sa), guest(no Login name)
I added user account -> machinename\ASPNET. But Login Name is not shown.
In Permissions: SELECT, INSERT, UPDATE, etc, all.
In Database role membership: public, db_owner, db_accessadmin, etc, all.

I also added a user account ASPNET (Login name is shown as ASPNET). Gave full access.

But still : Login failed for user 'MACHINENAME\ASPNET'.

In fact I just run examples from Microsoft and the database pubs is there in SQL Server.

Have a nice weekend!


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
'SYSTEM.DATA.SQLCLIENT.SQLEXCEPTION' soorsha General .NET 0 September 23rd, 2006 11:59 PM
System.Data.SqlClient.SqlException: Login failed f belete SQL Server 2005 3 May 18th, 2006 08:18 AM
System.Data.SqlClient.SqlException kbarsi Beginning VB 6 2 August 13th, 2005 09:39 PM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM

All times are GMT -4. The time now is 04:20 AM.

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