[SqlException (0x80131904): 547#A instrução INSERT conflitou com a restrição do FOREIGN KEY "FK_CAR001_CARRINHO_CAD001_EMPRESA". O conflito ocorreu no banco de dados "DB_MULTI_PORTAL", tabela "dbo.CAD001_EMPRESA", column 'idEmpresa'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +3335088
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +334
System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4679
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) +514
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) +3392
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +725
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +551
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +391
eGAC.CMS.DAL.CAR001_CARRINHO.Salvar(SqlCommand& cmd) in C:\repos\BtorElysium\gac\gac\eGAC.CMS.DAL\Carrinho\CAR001_CARRINHO.vb:95
eGAC.CMS.DAL.CRUD.Escolha(Byte opcao, SqlTransaction trans) in C:\repos\BtorElysium\gac\gac\eGAC.CMS.DAL\CRUD\CRUD.vb:194
PORTAL_ONLINE.WEB.CarrinhoController.CriarUserSESSION(String p_sessionId) in C:\repos\BtorElysium\gac\gac\eGAC.ECOMM\bll\CarrinhoController.vb:105
PORTAL_ONLINE.WEB.loja..ctor() in C:\repos\BtorElysium\gac\gac\eGAC.ECOMM\loja.aspx.vb:9
ASP.loja_aspx..ctor() +59
__ASP.FastObjectFactory_app_web_krsdzlgy.Create_ASP_loja_aspx() +63
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +142
System.Web.Routing.PageRouteHandler.GetHttpHandler(RequestContext requestContext) +179
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +11833498
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93
|