Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Login failed for user 'machinename\ASPNET'

 
Thread Tools Search this Thread
Old 05-26-2004, 05:26 PM   #1
Default Login failed for user 'machinename\ASPNET'


H
I am getting following error
Login failed for user 'machinename\ASPNET
when tryiong to do the following:
SqlDataAdapter1.Fill(DataSet11
This user is never specified in the database and never mentioned anywhere in the code. I am creating sqldataadapter with wizard in VB Dot net 200
Regard



=?Utf-8?B?TWFuZGFyIFBhdGls?=
  Reply With Quote
Old 05-26-2004, 07:08 PM   #2
Cowboy
 
Posts: n/a
Default Re: Login failed for user 'machinename\ASPNET'
Sounds like you are using Windows Security on your SQL Server instead of
mixed mode. In this instance, it would take the logged in user and attempt
to log on to SQL as that person. YOu would then get this error.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Mandar Patil" <> wrote in message
news:53A0B172-A63A-4EF0-AE6E-...
> Hi
> I am getting following error:
> Login failed for user 'machinename\ASPNET'
> when tryiong to do the following:
> SqlDataAdapter1.Fill(DataSet11)
> This user is never specified in the database and never mentioned anywhere

in the code. I am creating sqldataadapter with wizard in VB Dot net 2003
> Regards
>





Cowboy
  Reply With Quote
Old 05-26-2004, 09:21 PM   #3
=?Utf-8?B?TWFuZGFy?=
 
Posts: n/a
Default Re: Login failed for user 'machinename\ASPNET'
ASPNET is not user on the machine and machinename\ASPNET is also not the SQL server instance.


=?Utf-8?B?TWFuZGFy?=
  Reply With Quote
Old 05-26-2004, 10:39 PM   #4
Donald E. Hurley Jr.
 
Posts: n/a
Default Re: Login failed for user 'machinename\ASPNET'
The ASPNET account is the default user for ASPNET.

Are you trying to connect to the database with Integrated security, or do
you specify a username/pass.

If you try to use integrated security and you have anonymous access turned
on, it will use the ASPNET account to try to connect to SQL Server. Try
specifing a UserName/Password.

IE.

packet size=4096;integrated security=SSPI;data source=dhurley3;persist
security info=False;initial catalog=Northwind

or

packet size=4096;user id=sa;data source=dhurley3;persist security
info=False;initial catalog=Northwind;password=pass;

Hope this helps.

"Mandar Patil" <> wrote in message
news:53A0B172-A63A-4EF0-AE6E-...
> Hi
> I am getting following error:
> Login failed for user 'machinename\ASPNET'
> when tryiong to do the following:
> SqlDataAdapter1.Fill(DataSet11)
> This user is never specified in the database and never mentioned anywhere

in the code. I am creating sqldataadapter with wizard in VB Dot net 2003
> Regards
>





Donald E. Hurley Jr.
  Reply With Quote
Old 05-26-2004, 11:21 PM   #5
Jeff Dillon
 
Posts: n/a
Default Re: Login failed for user 'machinename\ASPNET'
That is the problem. Add this user logon to SQL Server

"Mandar" <> wrote in message
news:844DBEFB-9D61-4010-92C9-...
> ASPNET is not user on the machine and machinename\ASPNET is also not the

SQL server instance.




Jeff Dillon
  Reply With Quote
Old 05-27-2004, 05:05 AM   #6
Scott Allen
 
Posts: n/a
Default Re: Login failed for user 'machinename\ASPNET'
Mandar:

In this case you have several options:

- use a "mirrored" local account on the SQL machine, meaning you'll
create an ASPNET account on the SQL machine, synchronize passwords for
the ASPNET account on the web server and SQL machine, and give the
ASPNET account the ability to login to SQL. There is a more detailed
description of how to do this in the following document:

Building Secure ASP.NET Applications: Authentication, Authorization,
and Secure Communication
http://msdn.microsoft.com/library/de...SecNetHT01.asp

- run the ASP.NET worker process in the context of a user who can
access SQL

- use mixed mode authentication (pass a uid and password in the
connection string)

HTH,

--
Scott
http://www.OdeToCode.com

On Wed, 26 May 2004 13:21:13 -0700, Mandar
<> wrote:

>ASPNET is not user on the machine and machinename\ASPNET is also not the SQL server instance.




Scott Allen
  Reply With Quote
Old 05-27-2004, 08:11 PM   #7
=?Utf-8?B?TWFuZGFy?=
 
Posts: n/a
Default RE: Login failed for user 'machinename\ASPNET'
Thanks
I changed the sql server authentication to SQL authentication
Mandar


=?Utf-8?B?TWFuZGFy?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preload ur windows desktop Before login Abbas Software 0 08-29-2006 03:06 PM
Re: Can't login to XP Pro machine jjw A+ Certification 2 10-19-2004 12:36 AM
Re: Can't login to XP Pro machine Solomon Kozanski A+ Certification 5 09-25-2004 05:24 PM
Re: Can't login to XP Pro machine Gary A+ Certification 3 09-22-2004 10:17 PM
Re: Can't login to XP Pro machine Jonathan Miles A+ Certification 0 09-22-2004 01:27 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46