Hello,
I wondering if someone can help me for this error msg.
I am in Chapter 3, page 91 of Beginning ASP.NET E-Commerce book.I follow the book exactly. Only two exceptions, I designed the database in SQL server and run uner window 2000 server and my web.config file contains this:
<appSettings>
<add key="ConnectionString" value="Server=(local);integrated security=sspi;Initial Catalog=WroxJokeShop" />
</appSettings>
I didn't set up user name and password for login in to SQL server database. I set up it as windows Authentication mode so don't need the user name and password. My computer name is "HOME". My SQL Server name is "(local)
Now I got an error below when I run the default.aspx file. It could be connectionString problem. What have you seen? Let me know how should I correct it, if you see the problem is and know the answer. I will be very much appreciated your help.
Diana (
[email protected]
Server Error in '/WroxJokeShop' Application.
--------------------------------------------------------------------------------
Login failed for user 'HOME\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 'HOME\ASPNET'.
Source Error:
Line 11:
Line 12: ' Open the connection
Line 13: connection.Open()
Line 14:
Line 15: ' Return a SqlDataReader to the calling function
Source File: C:\BEgEcom\WroxJokeShop\BusinessObjects\Catalog.
vb Line: 13
Stack Trace:
[SqlException: Login failed for user 'HOME\ASPNET'.]
System.Data.SqlClient.SqlConnection.Open()
WroxJokeShop.Catalog.GetDepartments() in C:\BEgEcom\WroxJokeShop\BusinessObjects\Catalog.
vb :13
WroxJokeShop.DepartmentsList.Page_Load(Object sender, EventArgs e) in C:\BEgEcom\WroxJokeShop\UserControls\DepartmentsLi st.ascx.
vb:39
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
Diana