473,387 Members | 1,641 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 'MyPC\ASPNET'. msg received

Dee
Hi,
I am running sample code from 101 VB.NET. The sample is an ASP.NET porj that
uses SQL Server I added ASPNET user to all the Groups including
Administrator. I don't know why I get this error. I get the message when the
code tries to access sql server: da.Fill(dsProducts).
don't know The Windows Forms part accesse the database fine. Anyone else has
come across this issue?
Thanks.
Dee
Nov 19 '05 #1
6 1122
Have you associated the ASPNET account in SQL Server? SQL Server itself is
saying it doesn't recognize this account trying to access it. In the SQL
Server Enterprise manager, map this account to the SQL Server login or don't
use a trusted connection and use a connection string with a valid SQL Server
user and password embedded instead.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Dee" <dee@home> wrote in message
news:ut*************@TK2MSFTNGP12.phx.gbl...
Hi,
I am running sample code from 101 VB.NET. The sample is an ASP.NET porj
that
uses SQL Server I added ASPNET user to all the Groups including
Administrator. I don't know why I get this error. I get the message when
the
code tries to access sql server: da.Fill(dsProducts).
don't know The Windows Forms part accesse the database fine. Anyone else
has
come across this issue?
Thanks.
Dee

Nov 19 '05 #2
I'd suggest reading this entire thread. It explains what's going on, and
a way to fix this.

http://groups-beta.google.com/group/...72794fbca0d600

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi,
I am running sample code from 101 VB.NET. The sample is an ASP.NET
porj that
uses SQL Server I added ASPNET user to all the Groups including
Administrator. I don't know why I get this error. I get the message
when the
code tries to access sql server: da.Fill(dsProducts).
don't know The Windows Forms part accesse the database fine. Anyone
else has
come across this issue?
Thanks.
Dee


Nov 19 '05 #3
Dee
Thanks very much Brock I will read this.
Good luck
Dee

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:31**********************@msnews.microsoft.com ...
I'd suggest reading this entire thread. It explains what's going on, and
a way to fix this.

http://groups-beta.google.com/group/...amework.aspnet
/browse_thread/thread/d5add5600a526490/9c72794fbca0d600?q=Brock+ASPNET+datab
ase&rnum=1#9c72794fbca0d600
-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi,
I am running sample code from 101 VB.NET. The sample is an ASP.NET
porj that
uses SQL Server I added ASPNET user to all the Groups including
Administrator. I don't know why I get this error. I get the message
when the
code tries to access sql server: da.Fill(dsProducts).
don't know The Windows Forms part accesse the database fine. Anyone
else has
come across this issue?
Thanks.
Dee


Nov 19 '05 #4
Dee
Thanks Mark, appreciate your help. :-)
Dee

"Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
news:#d**************@TK2MSFTNGP12.phx.gbl...
Have you associated the ASPNET account in SQL Server? SQL Server itself is
saying it doesn't recognize this account trying to access it. In the SQL
Server Enterprise manager, map this account to the SQL Server login or don't use a trusted connection and use a connection string with a valid SQL Server user and password embedded instead.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Dee" <dee@home> wrote in message
news:ut*************@TK2MSFTNGP12.phx.gbl...
Hi,
I am running sample code from 101 VB.NET. The sample is an ASP.NET porj
that
uses SQL Server I added ASPNET user to all the Groups including
Administrator. I don't know why I get this error. I get the message when
the
code tries to access sql server: da.Fill(dsProducts).
don't know The Windows Forms part accesse the database fine. Anyone else
has
come across this issue?
Thanks.
Dee


Nov 19 '05 #5
Solution for your problem:

in Web.config file use this>
<authorization>
<deny users="?" />
</authorization>
<identity impersonate="true" />

it should work...

"Dee" wrote:
Hi,
I am running sample code from 101 VB.NET. The sample is an ASP.NET porj that
uses SQL Server I added ASPNET user to all the Groups including
Administrator. I don't know why I get this error. I get the message when the
code tries to access sql server: da.Fill(dsProducts).
don't know The Windows Forms part accesse the database fine. Anyone else has
come across this issue?
Thanks.
Dee

Nov 19 '05 #6
Dee
Thanks Newton.

"Newton" <Ne****@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.com...
Solution for your problem:

in Web.config file use this>
<authorization>
<deny users="?" />
</authorization>
<identity impersonate="true" />

it should work...

"Dee" wrote:
Hi,
I am running sample code from 101 VB.NET. The sample is an ASP.NET porj that uses SQL Server I added ASPNET user to all the Groups including
Administrator. I don't know why I get this error. I get the message when the code tries to access sql server: da.Fill(dsProducts).
don't know The Windows Forms part accesse the database fine. Anyone else has come across this issue?
Thanks.
Dee

Nov 19 '05 #7

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

Similar topics

23
by: cerilocke | last post by:
I have an identical SQL database on two machines (my machine and a web server) that links to a database on a third server (S3). When I execute a stored procedure on my machine that accesses a...
3
by: Mike Hutton | last post by:
Hi, I have tried to keep things simple. Not simple enough, obviously. I have a set of intranet ASP.NET pages which access a SQL back-end through the normal SQLConnection stuff. I want to use...
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...
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...
2
by: Ronald | last post by:
I just started with dotnetnuke, and with a wrong login (wrong password on a clean install i can crash the application pool from IIS. (when i login with the right username/password information the...
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...
0
by: Jean | last post by:
Hi, I have a question about logins and sql server express and an ASP.NET aplication. I put this question in sql server newsgroup, but without real answer sofar. I created a login 'Network...
1
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
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.