Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

kdhlinha

Erro com BD

Recommended Posts

Ola

 

Eu to com o seguinte problema?

 

Eu so montei um datagrid e o populei com a tabela NorthWind do SQL

 

Mas acontece que ele naum tah funcionando.

 

Erro

Server Error in '/IC/WebApplication1' Application.--------------------------------------------------------------------------------Login failed for user 'SERVIDOR\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 'SERVIDOR\ASPNET'.Source Error: Line 29: 	 {Line 30:    // Put user code to initialize the page hereLine 31:    sqlDataAdapter1.Fill(this.dataSet11);Line 32:    DataGrid1.DataBind();Line 33:  Source File: c:\inetpub\wwwroot\ic\webapplication1\webform1.aspx.cs    Line: 31 Stack Trace: [SqlException: Login failed for user 'SERVIDOR\ASPNET'.]   System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +474   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(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38   WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\ic\webapplication1\webform1.aspx.cs:31   System.Web.UI.Control.OnLoad(EventArgs e) +67   System.Web.UI.Control.LoadRecursive() +35   System.Web.UI.Page.ProcessRequestMain() +731 --------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

Oque eu faço:::

Compartilhar este post


Link para o post
Compartilhar em outros sites

você tem q acessar o SQL Server e ir no banco de dados q está sendo acessado e criar acesso ao usuário ASPNET que o Framework cria no sistema..falows

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.