Connecting Tech Pros Worldwide Help | Site Map

Login failed for user 'machinename\ASPNET'.

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 29th, 2006, 07:05 AM
Jon Paal
Guest
 
Posts: n/a
Default Login failed for user 'machinename\ASPNET'.


how does this get resolved ???

"Cannot open user default database. Login failed.
Login failed for user 'machinename\ASPNET'. "



  #2  
Old November 29th, 2006, 07:35 AM
Mark Fitzpatrick
Guest
 
Posts: n/a
Default Re: Login failed for user 'machinename\ASPNET'.

You either grant the ASPNET user account access to the SQL database (which I
don't like to do) or you can use a connectionstring that is not set to use a
trusted connection so you can pass it a sql login username and password.


--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
news:%23HPtuA5EHHA.2464@TK2MSFTNGP06.phx.gbl...
Quote:
>
how does this get resolved ???
>
"Cannot open user default database. Login failed.
Login failed for user 'machinename\ASPNET'. "
>

  #3  
Old November 29th, 2006, 07:55 AM
mc
Guest
 
Posts: n/a
Default Re: Login failed for user 'machinename\ASPNET'.

Mark Fitzpatrick wrote:
Quote:
You either grant the ASPNET user account access to the SQL database (which I
don't like to do) or you can use a connectionstring that is not set to use a
trusted connection so you can pass it a sql login username and password.
>
>
If your deploying to an intranet you could also consider impersonation
  #4  
Old November 29th, 2006, 12:45 PM
Steve B.
Guest
 
Posts: n/a
Default Re: Login failed for user 'machinename\ASPNET'.

Create an application pool in IIS with a specific account. Set your
application to use this app pool and give acess to this user to the SQL
Server db. In this scenario, you will be able to control the behaviour of
your web app, and you won't have to provide any apssword in the web.config
file.


Steve
"Mark Fitzpatrick" <markfitz@fitzme.coma écrit dans le message de news:
OwDVCO5EHHA.4052@TK2MSFTNGP02.phx.gbl...
Quote:
You either grant the ASPNET user account access to the SQL database (which
I don't like to do) or you can use a connectionstring that is not set to
use a trusted connection so you can pass it a sql login username and
password.
>
>
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
>
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
news:%23HPtuA5EHHA.2464@TK2MSFTNGP06.phx.gbl...
Quote:
>>
>how does this get resolved ???
>>
>"Cannot open user default database. Login failed.
>Login failed for user 'machinename\ASPNET'. "
>>
>
>

  #5  
Old November 29th, 2006, 12:45 PM
Juan T. Llibre
Guest
 
Posts: n/a
Default Re: Login failed for user 'machinename\ASPNET'.

re:
Quote:
Create an application pool in IIS with a specific account.
He can't do that, Steve.

He's using IIS 5 or 5.1 if his default ASP.NET account is ASPNET,
and neither of those use Application pools. Only IIS 6.0 uses App Pools.

Mark's suggestion will work for Jon.



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Steve B." <steve_beauge@com.msn_swap_msn_and_comwrote in message
news:ukMqI77EHHA.140@TK2MSFTNGP06.phx.gbl...
Quote:
Create an application pool in IIS with a specific account. Set your application to use this app
pool and give acess to this user to the SQL Server db. In this scenario, you will be able to
control the behaviour of your web app, and you won't have to provide any apssword in the
web.config file.
>
>
Steve
"Mark Fitzpatrick" <markfitz@fitzme.coma écrit dans le message de news:
OwDVCO5EHHA.4052@TK2MSFTNGP02.phx.gbl...
Quote:
>You either grant the ASPNET user account access to the SQL database (which I don't like to do) or
>you can use a connectionstring that is not set to use a trusted connection so you can pass it a
>sql login username and password.
>>
>>
>--
>Hope this helps,
>Mark Fitzpatrick
>Former Microsoft FrontPage MVP 199?-2006
>>
>"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
>news:%23HPtuA5EHHA.2464@TK2MSFTNGP06.phx.gbl...
Quote:
>>>
>>how does this get resolved ???
>>>
>>"Cannot open user default database. Login failed.
>>Login failed for user 'machinename\ASPNET'. "
>>>
>>
>>
>
>

 

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.