Global Page Error

Violation de la contrainte PRIMARY KEY « PK_HistoriqueRecherche ». Impossible d'insérer une clé en double dans l'objet « dbo.HistoriqueRecherche ». Valeur de clé dupliquée : (&orderby=Laboratories.Partenaire desc, Products.Name&orderdesc=0&is_public_access=True&product_status_code=active&is_city_product=False, avr 29 2025 7:19PM, 2). L'instruction a été arrêtée.

Return to the Default Page Violation de la contrainte PRIMARY KEY « PK_HistoriqueRecherche ». Impossible d'insérer une clé en double dans l'objet « dbo.HistoriqueRecherche ». Valeur de clé dupliquée : (&orderby=Laboratories.Partenaire desc, Products.Name&orderdesc=0&is_public_access=True&product_status_code=active&is_city_product=False, avr 29 2025 7:19PM, 2). L'instruction a été arrêtée.
à System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) à System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) à System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) à System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() à System.Data.SqlClient.SqlDataReader.get_MetaData() à System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) à 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) à 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) à System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) à System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) à System.Data.SqlClient.SqlCommand.ExecuteReader() à MvcExhausmed.sp.GetProducts.Execute(Boolean isCityUser, String nomproduit, String reference, List`1 idlabo, String codelpp, String marque, String intitulenormatif, List`1 cladimeds, Dictionary`2 caracs, Nullable`1 idtrame, String codeBarre, List`1 centralelabos, String laboname, Nullable`1 classification1, Nullable`1 classification2, String orderby, Boolean desc, Boolean isPublicAccess, String paramProductStatus, List`1 paramLppClassification) dans C:\Users\dimo_\Documents\GitHub\dm.exhausmed.com\MvcExhausmed\sp\GetProducts.cs:ligne 290 à MvcExhausmed.Controllers.SearchController.FindProduct(Boolean isPublicAccess) dans C:\Users\dimo_\Documents\GitHub\dm.exhausmed.com\MvcExhausmed\Content\Controllers\SearchController.cs:ligne 1871 à MvcExhausmed.Controllers.SearchController.Index_Anonymous(Nullable`1 idLabo, Nullable`1 int1, Nullable`1 int2, Boolean redirect, Boolean tri_ordre) dans C:\Users\dimo_\Documents\GitHub\dm.exhausmed.com\MvcExhausmed\Content\Controllers\SearchController.cs:ligne 2172 à lambda_method(Closure , ControllerBase , Object[] ) à System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) à System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c.b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState) à System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) à System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) à System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_0.b__0() à System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.b__2() à System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) à System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_5.b__4() à System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_0.b__1(IAsyncResult asyncResult) à System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) à System.Web.Mvc.Controller.<>c.b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) à System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) à System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) à System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) à System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) à System.Web.Mvc.MvcHandler.<>c.b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) à System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) à System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) à System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() à System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) à System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)