Hi:
I am working on the walkthrough samples for Visual C# and
I run into trouble with Walkthrough: Creating Read-Only
Data Access in a Web Forms Page. The error message I have
is:
Server Error in '/ReadOnlyDataAccess' Application.
-----------------------------------------------------------
---------------------
Login failed for user 'TESW265\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.OleDb.OleDbException: Login
failed for user 'TESW265\ASPNET'.
Source Error:
Line 26: if (!IsPostBack)
Line 27: {
Line 28:
oleDbConnection1.Open();
Line 29:
System.Data.OleDb.OleDbDataReader Reader;
Line 30: Reader =
oleDbCommand1.ExecuteReader();
Source File:
c:\inetpub\wwwroot\readonlydataaccess\webform1.aspx.cs
Line: 28
Stack Trace:
[OleDbException (0x80040e4d): Login failed for
user 'TESW265\ASPNET'.]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32
hr)
System.Data.OleDb.OleDbConnection.InitializeProvider()
System.Data.OleDb.OleDbConnection.Open()
ReadOnlyDataAccess.WebForm1.Page_Load(Object sender,
EventArgs e) in
c:\inetpub\wwwroot\readonlydataaccess\webform1.aspx.cs:28
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
-----------------------------------------------------------
---------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
I am working on a computer with windows xp profession and
I have IIS5.0 and SQL server 2000 install on my computer.
When I was setting OleDbConnection on the form, I test the
connection, which is working fine. When I test the
application at the end, I got the above error.
Please give me some advice to solve this problme.
Thanks a lot.