[ gorann @ 21.10.2004. 14:51 ] @
Kada iskompajliram web aplikaciju dobijem sledecu poruku, a uredno sam napravio ASPNET usera i dao mu cak privilegiju da je vlasnik baze. Zasto?? Zasto pokusava da se konektuje na bazu kao user 'NT AUTHORITY\NETWORK SERVICE'. 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 30: string sax="SELECT * FROM CinemaTickets"; Line 31: this.sqlDataAdapter1.SelectCommand.CommandText=sax; Line 32: this.sqlDataAdapter1.Fill(this.dataSet11.CinemaTickets); Line 33: Line 34: Source File: c:\inetpub\wwwroot\webapplication1\webform1.aspx.cs Line: 32 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 System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +44 System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable, IDbCommand command, CommandBehavior behavior) +28 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +88 WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\webapplication1\webform1.aspx.cs:32 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +750 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 |