Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Login failed for user\ASPNET
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kim Chi via DotNetMonster.com  
View profile  
 More options Mar 15 2005, 4:27 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Kim Chi via DotNetMonster.com" <fo...@DotNetMonster.com>
Date: Tue, 15 Mar 2005 09:27:49 GMT
Local: Tues, Mar 15 2005 4:27 am
Subject: Login failed for user\ASPNET
I encountered the above-mentioned error when building my webpage. According
to the Microsoft KB on this problem, I have to add a"
trusted_connection=yes" to the connection string and enter a username and
password for SQL server authentication or leave it blank for WIN NT/2000
server.

I am just wondering what this username & password refer to ? I tried with
the logon credentials when I started the computer but it doesn't work.

--
Message posted via http://www.dotnetmonster.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick Olurotimi Ige  
View profile  
 More options Mar 15 2005, 7:47 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: Patrick Olurotimi Ige <i...@iprimus.com.au>
Date: Tue, 15 Mar 2005 04:47:01 -0800
Local: Tues, Mar 15 2005 7:47 am
Subject: Re: Login failed for user\ASPNET
Are you using Windows Authentication?
then use:-
"Data Source=SQLSERVER;Initial Catalog=DATABASENAME;Integrated
Security=SSPI;"

Hope it helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brock Allen  
View profile  
 More options Mar 15 2005, 8:00 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: Brock Allen <bal...@develop.com.i_hate_spam_too>
Date: Tue, 15 Mar 2005 05:00:10 -0800
Local: Tues, Mar 15 2005 8:00 am
Subject: Re: Login failed for user\ASPNET
trusted_connection=yes is when you want to use the credentials of the running
application (in this case, the credentials of the running ASP.NET worker
process that hosts ASP.NET) to be those used to authenticate with your database.
This means you need to have setup that user in your database and granted
all the necessary permissions. On Windows 2000 by default this user is the
local ASPNET account. On Windows 2003 this is the Network Service account.

If instead you want to use a different set of credentials to authenticate
with the database, then omit trusted_connection=yes and instead use "user
id=joe;password=somepassword". This will now authenticate using that database
account (not using a windows account).

Which option you choose depends upon how you and your DBA work things out.
As for storing secrets (passwords) it's better to go with the windows authentication
to the database using trusted_connection, but this might mean you'll need
to change what user the ASP.NET worker process runs as.

-Brock
DevelopMentor
http://staff.develop.com/ballen


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Manohar Kamath  
View profile  
 More options Mar 15 2005, 8:09 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Manohar Kamath" <mkam...@TAKETHISOUTkamath.com>
Date: Tue, 15 Mar 2005 07:09:34 -0600
Local: Tues, Mar 15 2005 8:09 am
Subject: Re: Login failed for user\ASPNET
Trusted connection indicates that you are using a Windows/AD account to
connect. If you'd like to use such an account, you will need to run ASP.NET
in such user context, using impersonation.

http://www.dnzone.com/ShowDetail.asp?NewsId=504

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com

"Kim Chi via DotNetMonster.com" <fo...@DotNetMonster.com> wrote in message
news:65e894c98cd0449e920bd19df000204c@DotNetMonster.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kim  
View profile  
 More options Mar 16 2005, 12:19 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: Kim <K...@discussions.microsoft.com>
Date: Tue, 15 Mar 2005 21:19:01 -0800
Local: Wed, Mar 16 2005 12:19 am
Subject: Login failed for user\ASPNET
After installing MSDE2000 on my WIN XP machine, I created the database from
Access using the upsizing wizard. Although the tables can be seen from the
server explorer, I keep on encountering problem in building my web
application. The error message is "Login failed for user\ASPNET".

I've tried to supply/not supply a username and password at the SQL server
login but both methods could not work. I did not create a username and
password during the upsizing process although I specified a password during
installtion of the MSDE2000. I even uncheck the anonymous user option under
the IIS->Directory Seucrity but that did not help either.

What else can I do ?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Login failed for userASPNET" by swarovski
swarovski  
View profile  
 More options Mar 16 2005, 12:36 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: t...@np.edu-dot-sg.no-spam.invalid (swarovski)
Date: 15 Mar 2005 23:36:58 -0600
Local: Wed, Mar 16 2005 12:36 am
Subject: re:Login failed for userASPNET
My machine is using MSDE2000 running on WIN XP. I had tried the code
as suggested to be placed at the "Page_Load" event but the webpage
just did not show after much waiting.

If I want to try using a username and password, how should I create
them since my database is already upsized into the server explorer ?

 Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------        
                http://www.usenet.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Login failed for user\ASPNET" by Brock Allen
Brock Allen  
View profile  
 More options Mar 16 2005, 8:14 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: Brock Allen <bal...@develop.com.i_hate_spam_too>
Date: Wed, 16 Mar 2005 05:14:24 -0800
Local: Wed, Mar 16 2005 8:14 am
Subject: Re: Login failed for user\ASPNET
You need to add the local ASPNET user as an user in the database and grant
that user access to the DB your application is using. I don't know the command
line switches off the top of my head, so run "osql.exe /?" to get a list
of the commands.

-Brock
DevelopMentor
http://staff.develop.com/ballen


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kim  
View profile  
 More options Mar 17 2005, 2:19 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: Kim <K...@discussions.microsoft.com>
Date: Wed, 16 Mar 2005 23:19:01 -0800
Local: Thurs, Mar 17 2005 2:19 am
Subject: Re: Login failed for user\ASPNET
This command just provide a list of switches such as -S, -d, etc. By trying
say "osql.exe /S", it tells me:

Error: no user selected. Try with -U or -E switches.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brock Allen  
View profile  
 More options Mar 17 2005, 8:17 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: Brock Allen <bal...@develop.com.i_hate_spam_too>
Date: Thu, 17 Mar 2005 05:17:16 -0800
Local: Thurs, Mar 17 2005 8:17 am
Subject: Re: Login failed for user\ASPNET
Ah, yes... so then you need to execute the SQL to add ASPNET as a login to
your DB and setup their DA permissions, etc. So launch "osql -S . -E" then
paste in this SQL and it should start working for you:

exec sp_grantlogin N'THOR\ASPNET'
exec sp_defaultdb N'THOR\ASPNET', N'pubs'
use pubs
exec sp_grantdbaccess N'THOR\ASPNET', N'ASPNET'
exec sp_addrolemember N'db_owner', N'ASPNET'

Replace THOR with your machine name and replace pubs with your database name.
One note is that this SQL adds ASPNET as dbo, so the ASPNET user has total
control over that DB. This is the fastest way to get it working, but I'd
suggest doing some research on SqlServer DB security to know how to scale
back the permissions for this user.

-Brock
DevelopMentor
http://staff.develop.com/ballen


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google