C
Chuck Bowling
I'm having a problem that i really don't understand. I'm new to ASP.NET and
to SQL Server (MSDE). I'm trying to get a VS walkthru in the C# to work.
I think the problem is permissions but I'm not sure. I've tried adding the
ZEUS\ASPNET user to the server using osql with the command "EXEC
sp_grantlogin 'ZEUS\ASPNET'" but it had no apparent effect. Below is the
error page that was generated when I tried to build and run the site:
Server Error in '/MyWebForm' Application.
--------------------------------------------------------------------------------
Login failed for user 'ZEUS\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
'ZEUS\ASPNET'.
Source Error:
Line 26: public void FillDataSet(MyDataSet dSet)
Line 27: {
Line 28: sqlDataAdapter1.Fill(dSet);
Line 29: }
Line 30:
Source File: d:\inetpub\wwwroot\mywebform\component1.cs Line: 28
Stack Trace:
[SqlException: Login failed for user 'ZEUS\ASPNET'.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&
isInTransaction)
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString
options, Boolean& isInTransaction)
System.Data.SqlClient.SqlConnection.Open()
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection,
ConnectionState& originalState)
System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
MyWebForm.Component1.FillDataSet(MyDataSet dSet) in
d:\inetpub\wwwroot\mywebform\component1.cs:28
MyWebForm.WebForm1.Page_Load(Object sender, EventArgs e) in
d:\inetpub\wwwroot\mywebform\webform1.aspx.cs:24
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
to SQL Server (MSDE). I'm trying to get a VS walkthru in the C# to work.
I think the problem is permissions but I'm not sure. I've tried adding the
ZEUS\ASPNET user to the server using osql with the command "EXEC
sp_grantlogin 'ZEUS\ASPNET'" but it had no apparent effect. Below is the
error page that was generated when I tried to build and run the site:
Server Error in '/MyWebForm' Application.
--------------------------------------------------------------------------------
Login failed for user 'ZEUS\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
'ZEUS\ASPNET'.
Source Error:
Line 26: public void FillDataSet(MyDataSet dSet)
Line 27: {
Line 28: sqlDataAdapter1.Fill(dSet);
Line 29: }
Line 30:
Source File: d:\inetpub\wwwroot\mywebform\component1.cs Line: 28
Stack Trace:
[SqlException: Login failed for user 'ZEUS\ASPNET'.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&
isInTransaction)
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString
options, Boolean& isInTransaction)
System.Data.SqlClient.SqlConnection.Open()
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection,
ConnectionState& originalState)
System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
MyWebForm.Component1.FillDataSet(MyDataSet dSet) in
d:\inetpub\wwwroot\mywebform\component1.cs:28
MyWebForm.WebForm1.Page_Load(Object sender, EventArgs e) in
d:\inetpub\wwwroot\mywebform\webform1.aspx.cs:24
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()