Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Problem sa bazom

[es] :: .NET :: Problem sa bazom

[ Pregleda: 2518 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

gorann
Goran nastic
Beograd

Član broj: 15241
Poruke: 88
195.178.38.*



Profil

icon Problem sa bazom21.10.2004. u 14:51 - pre 243 meseci
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
gnastic
 
Odgovor na temu

jablan

Član broj: 8286
Poruke: 4541



+711 Profil

icon Re: Problem sa bazom21.10.2004. u 15:45 - pre 243 meseci
Nisi naveo connection string koji koristiš.
 
Odgovor na temu

lakishone
Novi Sad

Član broj: 31156
Poruke: 11
*.115.eunet.yu.



Profil

icon Re: Problem sa bazom21.10.2004. u 18:25 - pre 243 meseci
U web.congig treba da upises
<identity impersonate="true"/>
i u IIS da iskljucis Anonymus users u propery web project-a
 
Odgovor na temu

[es] :: .NET :: Problem sa bazom

[ Pregleda: 2518 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.