Server Error in '/' Application.

An existing connection was forcibly closed by the remote host

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.ComponentModel.Win32Exception: An existing connection was forcibly closed by the remote host

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:


[Win32Exception (0x80004005): An existing connection was forcibly closed by the remote host]

[SqlException (0x80131904): A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)]
   System.Data.SqlClient.TdsParser.TdsExecuteRPC(SqlCommand cmd, _SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc, Boolean sync, TaskCompletionSource`1 completion, Int32 startRpc, Int32 startParam) +11545
   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.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +84
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +312
   Dapper.<QueryImpl>d__61`1.MoveNext() in D:\Dev\dapper-dot-net\Dapper NET40\SqlMapper.cs:1589
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +453
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +73
   Dapper.SqlMapper.Query(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in D:\Dev\dapper-dot-net\Dapper NET40\SqlMapper.cs:1479
   ChronoRace.Common.Registration.RegistrationCounter.Refresh() in C:\chronorace\git\chronorace-git\Modules\Registration\ChronoRace.Common.Registration\Service\RegistrationCounter.cs:125
   ChronoRace.Common.Registration.RegistrationCounterService.GetRegistrationCounter(Int64 eventId) in C:\chronorace\git\chronorace-git\Modules\Registration\ChronoRace.Common.Registration\Service\RegistrationCounter.cs:84
   ChronoRace.Common.Registration.Service.RegistrationService.AdjustRegistrationContext(RegistrationContext regContext, String langage) in C:\chronorace\git\chronorace-git\Modules\Registration\ChronoRace.Common.Registration\Service\RegistrationService.cs:860
   ChronoRace.Common.Registration.Service.RegistrationService.GetRegistrationContext(Nullable`1 eventId, Nullable`1 formId, Nullable`1 registrationId, Nullable`1 groupeQuestion, Nullable`1 groupeInscription, Nullable`1 paiementId, String langage, Boolean useCache) in C:\chronorace\git\chronorace-git\Modules\Registration\ChronoRace.Common.Registration\Service\RegistrationService.cs:962
   ChronoRace.WEB.Azure.Old_App_Code.Inscriptions.PageInscriptionTemplate.get_RegContext() in C:\chronorace\git\chronorace-git\Web\Registration\ChronoRace.WEB.Azure\Old_App_Code\Inscriptions\PageInscriptionTemplate.cs:774
   ChronoRace.WEB.Azure.Old_App_Code.Inscriptions.PageInscriptionTemplate.get_Version() in C:\chronorace\git\chronorace-git\Web\Registration\ChronoRace.WEB.Azure\Old_App_Code\Inscriptions\PageInscriptionTemplate.cs:135
   PageTemplate.get_MasterPageFile() in C:\chronorace\git\chronorace-git\Web\Registration\ChronoRace.WEB.Azure\Old_App_Code\PageTemplate.cs:650
   PageTemplate.OnPreInit(EventArgs e) in C:\chronorace\git\chronorace-git\Web\Registration\ChronoRace.WEB.Azure\Old_App_Code\PageTemplate.cs:661
   System.Web.UI.Page.PerformPreInit() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0