error: Login failed for user 'IIS AppPool\DefaultAppPool

SOLUCION:

Crear ese usuarion en la DB:



Server Error in '/PurchaseOrdersSalesOfflineCS' Application.

Cannot open database "PurchaseOrdersSalesOffline" requested by the login. The login failed.
Login failed for user 'IIS AppPool\DefaultAppPool'.

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 database "PurchaseOrdersSalesOffline" requested by the login. The login failed.
Login failed for user 'IIS AppPool\DefaultAppPool'.

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 database "PurchaseOrdersSalesOffline" requested by the login. The login failed.  Login failed for user 'IIS AppPool\DefaultAppPool'.]     System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +414     System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78     System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +196     System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +146     System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +16     System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +94     System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +110     System.Data.SqlClient.SqlConnection.Open() +96     GeneXus.Data.MssqlConnectionWrapper.Open() +15     GeneXus.Data.ADO.GxConnection.Open() +572    [GxADODataException: Cannot open database "PurchaseOrdersSalesOffline" requested by the login. The login failed.  Login failed for user 'IIS AppPool\DefaultAppPool'.]     GeneXus.Data.ADO.GxConnection.Open() +822     GeneXus.Data.ADO.GxConnectionManager.IncOpenHandles(Int32 handle, String dataSource) +96     GeneXus.Data.GxSqlCursorDataReader.LoadFirstBlock() +162     GeneXus.Data.GxSqlCursorDataReader..ctor(IGxConnectionManager connManager, GxDataRecord dr, IGxConnection connection, GxParameterCollection parameters, String stmt, UInt16 fetchSize, Boolean forFirst, Int32 handle, Boolean withCached, SlidingTime expiration, Boolean dynStmt) +280    [GxADODataException: Cannot open database "PurchaseOrdersSalesOffline" requested by the login. The login failed.  Login failed for user 'IIS AppPool\DefaultAppPool'.]     GeneXus.Data.GxSqlCursorDataReader..ctor(IGxConnectionManager connManager, GxDataRecord dr, IGxConnection connection, GxParameterCollection parameters, String stmt, UInt16 fetchSize, Boolean forFirst, Int32 handle, Boolean withCached, SlidingTime expiration, Boolean dynStmt) +403     GeneXus.Data.GxSqlServer.GetDataReader(IGxConnectionManager connManager, IGxConnection con, GxParameterCollection parameters, String stmt, UInt16 fetchSize, Boolean forFirst, Int32 handle, Boolean cached, SlidingTime expiration, Boolean hasNested, Boolean dynStmt) +517     GeneXus.Data.ADO.GxCommand.ExecuteReader() +963    [GxADODataException: Cannot open database "PurchaseOrdersSalesOffline" requested by the login. The login failed.  Login failed for user 'IIS AppPool\DefaultAppPool'.]     GeneXus.Data.ADO.GxCommand.ExecuteReader() +1042     GeneXus.Data.ADO.GxCommand.FetchData(IDataReader& dr) +86    [GxADODataException: Type:GeneXus.Data.GxADODataException.DBMS Error Code:4060.Cannot open database "PurchaseOrdersSalesOffline" requested by the login. The login failed.  Login failed for user 'IIS AppPool\DefaultAppPool'.]     GeneXus.Data.ADO.GxCommand.FetchData(IDataReader& dr) +490     GeneXus.Data.NTier.ADO.ForEachCursor.execute() +205     GeneXus.Data.NTier.DataStoreProvider.execute(Int32 cursor, Object[] parms, Boolean batch) +609     GeneXus.Data.NTier.DataStoreProvider.execute(Int32 cursor, Object[] parms) +11     GeneXus.Programs.wwcustomer.subGrid_Recordcount() +301     GeneXus.Programs.wwcustomer.subGrid_Pagecount() +21     GeneXus.Programs.wwcustomer.S122() +276     GeneXus.Programs.wwcustomer.E12092() +1107     GeneXus.Programs.wwcustomer.STRUP090() +57     GeneXus.Programs.wwcustomer.START092() +177     GeneXus.Programs.wwcustomer.ExecuteStartEvent() +88     GeneXus.Programs.appmasterpage.START012() +216     GeneXus.Programs.appmasterpage.webExecute() +126     GeneXus.Programs.wwcustomer.webExecute() +255     GeneXus.Http.GXHttpHandler.webExecuteEx() +155     GeneXus.Http.GXHttpHandler.ProcessRequest(HttpContext httpContext) +411    [Exception: GXApplication exception]     GeneXus.Http.GXHttpHandler.ProcessRequest(HttpContext httpContext) +546     System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341     System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69  
--
Saludos,
gab
@gxsoft


--
Has recibido este mensaje porque estás suscrito al grupo "GeneXus" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a genexus+unsubscribe@googlegroups.com.
Para acceder a más opciones, visita https://groups.google.com/d/optout.

0 Response to "error: Login failed for user 'IIS AppPool\DefaultAppPool"

Publicar un comentario