473,387 Members | 1,638 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.

Can't Login SQL from ASP.NET applications

I have SQL 2000 installed and it works fine with windows applications on my
hard drive. The problem is that I can't access the same databases with the
same login permission from a web application ( using NT integrated
authority). The error says:
Login failed for user 'HERRLUCIFER\ASPNET'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user
'HERRLUCIFER\ASPNET'.

Line 110: 'Put user code to initialize the page here
Line 111: If Not Me.IsPostBack Then
Line 112: DACustomers.Fill(DsCustomerNames1, "Customers")
<<---error (red) line
Line 113: DataGrid1.DataBind()
Line 114: End If
----------
PS:(WebRoot is on a FAT32 drive + Framework 1.4 + VS 2003 + XP-SP2)
Jul 21 '05 #1
1 1110
Herr Lucifer" <"\n wrote:
I have SQL 2000 installed and it works fine with windows applications
on my hard drive. The problem is that I can't access the same
databases with the same login permission from a web application (
using NT integrated authority). The error says:
Login failed for user 'HERRLUCIFER\ASPNET'.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed
for user 'HERRLUCIFER\ASPNET'.

Line 110: 'Put user code to initialize the page here
Line 111: If Not Me.IsPostBack Then
Line 112: DACustomers.Fill(DsCustomerNames1, "Customers")
<<---error (red) line
Line 113: DataGrid1.DataBind()
Line 114: End If
----------
PS:(WebRoot is on a FAT32 drive + Framework 1.4 + VS 2003 + XP-SP2)


2 solutions:
1) Add the ASPNET user as a login to your SQL Server, and give it
access to your database.
2) Turn impersonation on in web.config and run your application
with the identity of the logged on user.

--

Riki
Jul 21 '05 #2

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

Similar topics

2
by: Grace | last post by:
Are there any ways it can let users only login once and users can browse different ASP.Net/ASP web applications on different machines? ex: A machine: login web application, a web application B...
2
by: James X. Li | last post by:
Is there a way to implement multiple login forms for ASP.NET applications? With our application we want to implement simple login form for normal resources (downloadable files), but more rigorous...
2
by: Beginner | last post by:
I know this is an old question, but searching all over the internet plus several MS security conferences, still haven't got a straight anwser. Basically, the login.aspx is on one dedicated server...
1
by: Herr Lucifer | last post by:
I have SQL 2000 installed and it works fine with windows applications on my hard drive. The problem is that I can't access the same databases with the same login permission from a web application (...
1
by: ngodugu | last post by:
Hi All, Is there any way to use a common login page across multiple web applications? I have tried couple of things that were suggested on MSDN but they did not work. ...
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.
3
by: cucubird | last post by:
Hi, I have develop a web application using java and jsp. In my web application, there are links to several other web applications. I aim to achieve the "backend login" of the applications that are...
4
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code...
4
by: Ben | last post by:
Hi, I defined roles in order to deny access for some pages to anonymous users. I tested it by typing the url of a denied page to test the system (http://denypage.aspx). It works (access...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.