Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
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 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 October 14th, 2004, 03:33 PM
Registered User
Join Date: Sep 2004
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
Old October 15th, 2004, 02:27 AM
Friend of Wrox
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts

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

Charul Shukla
Old October 15th, 2004, 07:22 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

And what privileges does MachineName\ASPNET have in SQL Server...
Old October 15th, 2004, 03:01 PM
Registered User
Join Date: Sep 2004
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!

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

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