473,473 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Login failed for user 'machinename\ASPNET'.


how does this get resolved ???

"Cannot open user default database. Login failed.
Login failed for user 'machinename\ASPNET'. "
Nov 29 '06 #1
4 5059
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:%2****************@TK2MSFTNGP06.phx.gbl...
>
how does this get resolved ???

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

Nov 29 '06 #2
mc
Mark Fitzpatrick wrote:
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
Nov 29 '06 #3
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" <ma******@fitzme.coma écrit dans le message de news:
Ow**************@TK2MSFTNGP02.phx.gbl...
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:%2****************@TK2MSFTNGP06.phx.gbl...
>>
how does this get resolved ???

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


Nov 29 '06 #4
re:
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." <st**********@com.msn_swap_msn_and_comwrote in message
news:uk*************@TK2MSFTNGP06.phx.gbl...
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" <ma******@fitzme.coma écrit dans le message de news:
Ow**************@TK2MSFTNGP02.phx.gbl...
>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:%2****************@TK2MSFTNGP06.phx.gbl...
>>>
how does this get resolved ???

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



Nov 29 '06 #5

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...
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...
1
by: NannMaw | last post by:
Hi,good evening all. I am a beginner in web development and SQL server. I got the below error when running the web application on development server of MS visual studio 2005. I guess that...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.