Hello mates,
I get an error when I view http://localhost/StoreVBVS/Default.aspx. I did have one error during the initial setup which was, "[Fail] Could not add ASPNET user to SQL Server.
Windows NT user or group 'ASPNET' not found. Check the name again." Do I manually create the user and do I create it in SQL Enterprise Manager or do I create it in Active Directory Users and Computers? I don't know but this may/probably has to to with the error I get when I open http://localhost/StoreVBVS/Default.aspx. The error is as follows and before we get to it I want to thank anyone who is kind enough to respond to my plea in advance, you are a great person =) And now to the error:
Server Error in '/StoreVBVS' Application.
--------------------------------------------------------------------------------
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
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 'NT AUTHORITY\NETWORK SERVICE'.
Source Error:
Line 63:
Line 64: ' Execute the command
Line 65: myConnection.Open()
Line 66: Dim result As SqlDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)
Line 67:
Source File: C:\StoreVBVS\StoreVBVS\Components\ProductsDB.vb Line: 65
Stack Trace:
[SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +472
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
IBuySpy.IBuySpy.ProductsDB.GetProductCategories() in C:\StoreVBVS\StoreVBVS\Components\ProductsDB.vb:65
IBuySpy.C_Menu.Page_Load(Object sender, EventArgs e) in C:\StoreVBVS\StoreVBVS\_Menu.ascx.vb:44
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +731