Unanse todos los programadores de .NET de microsoft para armar una comunidad donde se pueda aportar y aprender. La idea general es, compartir informacion especifica, debatir sobre situacion particulares o generales para tomar desiciones, ayudar a los que
Ver más- 104 Miembros
- 21 Temas
- 39 Seguidores
Ayuda me da este error cuando quiero conectarme a SQL SERVER
aLGUIEN QUE ME PUEDA AYUDAR PORQUE MIS APLICACIONES CORREN MIENTRAS NO LE PONGO BD Y CUANDO QUIERO UTILIZAR UNA BASE DE DATOS VIENE ESTE ERROR...
AYUDA... GRACIAS...
Server Error in '/cronograma' Application.
Cannot open user default database. Login failed.
Login failed for user 'IIS APPPOOLDefaultAppPool'.
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: Cannot open user default database. Login failed.
Login failed for user 'IIS APPPOOLDefaultAppPool'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Cannot open user default database. Login failed.
Login failed for user 'IIS APPPOOLDefaultAppPool'.]
System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection) +6244425
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj) +245
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2811
System.Data.SqlClient.SqlInternalConnectionTds.Com pleteLogin(Boolean enlistOK) +53
System.Data.SqlClient.SqlInternalConnectionTds.Att emptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +248
System.Data.SqlClient.SqlInternalConnectionTds.Log inNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +6260362
System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +6260328
System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +354
System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +703
System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +54
System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject) +6261592
System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject) +81
System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject) +1657
System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection) +88
System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6265031
System.Data.SqlClient.SqlConnection.Open() +258
System.Web.DataAccess.SqlConnectionHolder.Open(Htt pContext context, Boolean revertImpersonate) +82
System.Web.DataAccess.SqlConnectionHelper.GetConne ction(String connectionString, Boolean revertImpersonation) +3986458
System.Web.Security.SqlMembershipProvider.GetPassw ordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +3053172
System.Web.Security.SqlMembershipProvider.CheckPas sword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +213
System.Web.Security.SqlMembershipProvider.Validate User(String username, String password) +164
System.Web.UI.WebControls.Login.AuthenticateUsingM embershipProvider(AuthenticateEventArgs e) +75
System.Web.UI.WebControls.Login.AttemptLogin() +152
System.Web.UI.WebControls.Login.OnBubbleEvent(Obje ct source, EventArgs e) +124
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
- 0Calificación
- 0Seguidores
- 72Visitas
- 0Favoritos
Global
Argentina
Chile
Colombia
España
México
Perú
Uruguay
Venezuela
5 respuestas
¿Cómo estás ejecutando o haciendo la conexión al servidor bro?
Gracias por tu ayuda, Bueno lo único que quiero hacer es una conexión local, y unicamente quería hacer una prueba para ver que todo estuviera correcto con mi base de datos, la prueba la hice colocando un Datagrid y mandandole los datos y aparecio el error... Si le quito el datagrid no hay ningun problema y tengo dudas de que es lo que ocurre...
el error se genera por el usuario de base de datos. En este caso estas enviandole como parametro, el usuario IIS APPPOOLDefaultAppPool, tendias que crear un usuario de base de datos, con permisos para la base de datos (catalogo) en cuestion, y pasarlos como parametro.
Si necesitas ayuda con esto avisame.
hola loco! antes que nada te convendria importar la libreria en vez de repetir tanto..
pone arriba de todo:
imports system.data.sqlclient
te qeda mas chico el codigo mas amigable!
Saludos despues me fijo tu error!
Nos encontramos en la búsqueda de un Desarrollador Web en tecnología .NET, que cuente con por lo menos 2 años de experiencia en programación .NET, C#, Java script y HTML.
Lugar: Retiro, Capital Federal
Remuneracion: 7000 netos