473,387 Members | 1,628 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

Nov 18 '05 #1
6 2911
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" <an*******@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
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

Nov 18 '05 #2
ASPNET is not user on the machine and machinename\ASPNET is also not the SQL server instance.
Nov 18 '05 #3
That is the problem. Add this user logon to SQL Server

"Mandar" <an*******@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com...
ASPNET is not user on the machine and machinename\ASPNET is also not the

SQL server instance.
Nov 18 '05 #4
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" <an*******@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
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

Nov 18 '05 #5
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
<an*******@discussions.microsoft.com> wrote:
ASPNET is not user on the machine and machinename\ASPNET is also not the SQL server instance.


Nov 18 '05 #6
Thanks
I changed the sql server authentication to SQL authentication
Mandar
Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Matthew Louden | last post by:
I wrote ASP.NET application that access SQL Server database. When I run the application, it yields "Login failed for user '<COMPUTER_NAME>\ASPNET'" error message. I then did the following, but...
4
by: rrober07 | last post by:
Hello, My Setup is I have a Web Server machine(Devweb01), Database SQL Machine(Devsql01), a Client Machine(local machine) I have configured the SQL machine as follows: 1) Added local Aspnet...
3
by: Maellic | last post by:
Hi, The website I am working on is built with ASP.NET and connects to a SQL Server 2000 database. The web server and database are on the same machine. I have recently tried to modify the timeout...
4
by: Chuck Bowling | last post by:
I'm having a problem that i really don't understand. I'm new to ASP.NET and to SQL Server (MSDE). I'm trying to get a VS walkthru in the C# to work. I think the problem is permissions but I'm not...
12
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I...
5
by: Ramtin | last post by:
Hi; when I use sql server connection or ole connection for working with database I receive the login failed for user 'any user that I work'.I've been granted ASPNET user in sql.
10
by: BLUE | last post by:
I'm using SQL Server 2005 Developer Edition on Windows XP SP2 with this setting: <add name="SqlServerTrustedConn" providerName="System.Data.SqlClient" connectionString="Data...
11
by: Anil Gupte | last post by:
I am getting the following error: ********* Login failed for user 'AUM\ASPNET'. Description: An unhandled exception occurred during the execution of the current web request. Please review the...
4
by: RN1 | last post by:
I am working on WinXP Pro SP3, .NET 2.0 & SQL Server 2005 (Windows Authentication). When I run a ASPX page that connects to SQL Server, the following error gets generated: Login failed for user...
4
by: Brett | last post by:
I have an ASP.NET 2.0 application that uses Forms Authentication. The startup page contains just a login control, and the site works well on an IIS 6 web server. I am now setting the site up on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.