Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 12th, 2004, 01:57 PM
Registered User
Join Date: Aug 2004
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Database Connection Problem with ASP.NET

I'm just starting to learn ASP.NET. The web page I created using sqlConnection to connect SQL Server(MSDE) database, and the database is running on my local machine. When I create my sqlConnection, I chose to use Windows NT integrated security. I tested my connection after I created, it works fine. However, when I try to display the web page, it gives me following error message:

Login failed for user 'ITL25\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 'ITL25\ASPNET'.

Source Error:

Line 133: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Line 134: 'Put user code to initialize the page here
Line 135: SqlDataAdapter1.Fill(DataSet1)
Line 136: DataGrid1.DataSource = DataSet1
Line 137: DataGrid1.DataBind()

Source File: c:\inetpub\wwwroot\myWebApp\DisplayAuthors.aspx.vb Line: 135

I pretty sure that I have the user "ITL25\ASPNET" as the owner of the database.

Could anyone help me on this situation? Thanks a lot!

Reply With Quote
  #2 (permalink)  
Old August 12th, 2004, 07:02 PM
Friend of Wrox
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts


Are you sure that user is DBO? If it isn't DBO, does it have select or execute permissions on table/proc?

Reply With Quote
  #3 (permalink)  
Old August 13th, 2004, 12:12 PM
Registered User
Join Date: Aug 2004
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks for your reply. When I first install .Net, I only installed MSDE which doesn't have enterprise manager to manage the database. Then I installed the full version of MS SQL server, and added ASPNET user via Enterprise Manager. After that, everything works fine.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database connection error. asp.net/dreamw/access peacesquid Classic ASP Databases 1 July 28th, 2005 06:56 PM
Database Connection Problem with ASP.NET fukai100 SQL Server ASP 1 August 12th, 2004 07:37 PM
ASP.NET database connection MySQL socoolbrewster ASP.NET 1.0 and 1.1 Basics 3 November 21st, 2003 07:12 PM
ASP Database Connection-File permission problem goljazoran BOOK: Beginning ASP 3.0 0 November 10th, 2003 10:09 AM

All times are GMT -4. The time now is 11:18 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.