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