Every time i try to compile , this error shows up ! any solutions please ?

This is ther error in my log file :

2023-02-07 00:32:44,881 [149] ERROR IIS APPPOOL\Creatio Terrasoft.Core.UserConnection OnCurrentUserConnectionChanged - Overwriting UserConnection.Current in the same context is not allowed    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)

   at System.Environment.get_StackTrace()

   at Terrasoft.Core.UserConnection.OnCurrentUserConnectionChanged(AsyncLocalValueChangedArgs`1 args)

   at System.Threading.AsyncLocal`1.System.Threading.IAsyncLocal.OnValueChanged(Object previousValueObj, Object currentValueObj, Boolean contextChanged)

   at System.Threading.ExecutionContext.SetLocalValue(IAsyncLocal local, Object newValue, Boolean needChangeNotifications)

   at Terrasoft.WebApp.Global.Session_End(Object sender, EventArgs e)

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

   at System.Web.HttpApplication.InvokeMethodWithAssert(MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs)

   at System.Web.HttpApplication.ProcessSpecialRequest(HttpContext context, MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs, HttpSessionState session)

   at System.Web.HttpApplicationFactory.FireSessionOnEnd(HttpSessionState session, Object eventSource, EventArgs eventArgs)

   at Terrasoft.Redis.RedisSessionStateStoreProvider.RaiseSessionEnd(String sessionId)

   at Terrasoft.Redis.RedisSessionStateStoreProvider.<>c__DisplayClass33_0.b__0(IRedisClient redisClient)

   at Terrasoft.Redis.RedisSessionStateStoreProvider.RetryOperationIfNeed(IRedisClient client, Action`1 operation)

   at Terrasoft.Redis.RedisSessionStateStoreProvider.ClearExpiredSessions()

   at Polly.Policy.<>c__DisplayClass109_0.b__0(Context ctx, CancellationToken ct)

   at Polly.RetrySyntax.<>c__DisplayClass12_1.b__1(Context ctx, CancellationToken ct)

   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken, IEnumerable`1 shouldRetryExceptionPredicates, IEnumerable`1 shouldRetryResultPredicates, Func`1 policyStateFactory)

   at Polly.RetrySyntax.<>c__DisplayClass12_0.b__0(Action`2 action, Context context, CancellationToken cancellationToken)

   at Polly.Policy.Execute(Action`2 action, Context context, CancellationToken cancellationToken)

   at Polly.Policy.Execute(Action action)

   at Terrasoft.Redis.PerformanceMonitor.ExecuteWithMonitoring(String operationName, Action operation)

   at Terrasoft.Redis.RedisThrottledExecutor.Execute(Action action)

   at Terrasoft.Redis.RedisSessionStateStoreProvider.ClearExpiredSessionsCallback(Object state)

   at Terrasoft.Common.Timer.NonOverlappingTimerCallback(TimerCallback callback, Object state, Int32 dueTime, Int32 period)

   at Terrasoft.Common.Timer.<>c__DisplayClass2_0.b__0(Object currentState)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.TimerQueueTimer.CallCallback()

   at System.Threading.TimerQueueTimer.Fire()

   at System.Threading.TimerQueue.FireNextTimers()

2023-02-07 00:56:21,882 [91] ERROR IIS APPPOOL\Creatio Terrasoft.Core.UserConnection OnCurrentUserConnectionChanged - Overwriting UserConnection.Current in the same context is not allowed    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)

   at System.Environment.get_StackTrace()

   at Terrasoft.Core.UserConnection.OnCurrentUserConnectionChanged(AsyncLocalValueChangedArgs`1 args)

   at System.Threading.AsyncLocal`1.System.Threading.IAsyncLocal.OnValueChanged(Object previousValueObj, Object currentValueObj, Boolean contextChanged)

   at System.Threading.ExecutionContext.SetLocalValue(IAsyncLocal local, Object newValue, Boolean needChangeNotifications)

   at Terrasoft.WebApp.Global.Session_End(Object sender, EventArgs e)

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

   at System.Web.HttpApplication.InvokeMethodWithAssert(MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs)

   at System.Web.HttpApplication.ProcessSpecialRequest(HttpContext context, MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs, HttpSessionState session)

   at System.Web.HttpApplicationFactory.FireSessionOnEnd(HttpSessionState session, Object eventSource, EventArgs eventArgs)

   at Terrasoft.Redis.RedisSessionStateStoreProvider.RaiseSessionEnd(String sessionId)

   at Terrasoft.Redis.RedisSessionStateStoreProvider.<>c__DisplayClass33_0.b__0(IRedisClient redisClient)

   at Terrasoft.Redis.RedisSessionStateStoreProvider.RetryOperationIfNeed(IRedisClient client, Action`1 operation)

   at Terrasoft.Redis.RedisSessionStateStoreProvider.ClearExpiredSessions()

   at Polly.Policy.<>c__DisplayClass109_0.b__0(Context ctx, CancellationToken ct)

   at Polly.RetrySyntax.<>c__DisplayClass12_1.b__1(Context ctx, CancellationToken ct)

   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken, IEnumerable`1 shouldRetryExceptionPredicates, IEnumerable`1 shouldRetryResultPredicates, Func`1 policyStateFactory)

   at Polly.RetrySyntax.<>c__DisplayClass12_0.b__0(Action`2 action, Context context, CancellationToken cancellationToken)

   at Polly.Policy.Execute(Action`2 action, Context context, CancellationToken cancellationToken)

   at Polly.Policy.Execute(Action action)

   at Terrasoft.Redis.PerformanceMonitor.ExecuteWithMonitoring(String operationName, Action operation)

   at Terrasoft.Redis.RedisThrottledExecutor.Execute(Action action)

   at Terrasoft.Redis.RedisSessionStateStoreProvider.ClearExpiredSessionsCallback(Object state)

   at Terrasoft.Common.Timer.NonOverlappingTimerCallback(TimerCallback callback, Object state, Int32 dueTime, Int32 period)

   at Terrasoft.Common.Timer.<>c__DisplayClass2_0.b__0(Object currentState)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.TimerQueueTimer.CallCallback()

   at System.Threading.TimerQueueTimer.Fire()

   at System.Threading.TimerQueue.FireNextTimers()

2023-02-07 01:05:55,995 [44] ERROR IIS APPPOOL\Creatio Terrasoft.WebApp.FileWebEventProvider RaiseInternal - Date: 2/7/2023 1:05:55 AM

Date (UTC): 2/6/2023 11:05:55 PM

Exception Message: The remote host closed the connection. The error code is 0x800704CD.

Exception Type: System.Web.HttpException

Exception Source: System.Web

Exception Stack Trace:

   at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)

   at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()

   at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)

   at Microsoft.Web.WebSockets.WebSocketFixModule.b__0(Object sender, EventArgs e)

   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Request URL: /SE_8.0.6.3422/0/Nui/ViewModule.aspx.ashx

Request Path: /SE_8.0.6.3422/0/Nui/ViewModule.aspx.ashx

Request Type: GET

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

User Host Address: 127.0.0.1

User: Supervisor

Is Authenticated: True

Authentication Type: Forms

Is Secure Connection: False

Application Version: 8.0.6.3422

Application Path: C:\inetpub\wwwroot\8.0.6.3422_SalesEnterprise_Softkey_MSSQL_ENU\Terrasoft.WebApp\

Application Virtual Path: /SE_8.0.6.3422/0

Application Trust Level: Full

Machine Name: LENOVO

Is Local: True

Process ID: 4136

Process Name: w3wp.exe

Process Account Name: IIS APPPOOL\Creatio

Thread Account Name: IIS APPPOOL\Creatio

OS Version: Microsoft Windows NT 10.0.22621.0

Net Framework Version: 4.0.30319.42000

DBExecutor Type: MSSqlExecutor

<-->

2023-02-07 01:05:55,995 [49] ERROR IIS APPPOOL\Creatio Terrasoft.WebApp.FileWebEventProvider RaiseInternal - Date: 2/7/2023 1:05:55 AM

Date (UTC): 2/6/2023 11:05:55 PM

Exception Message: The remote host closed the connection. The error code is 0x800704CD.

Exception Type: System.Web.HttpException

Exception Source: System.Web

Exception Stack Trace:

   at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)

   at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()

   at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)

   at Microsoft.Web.WebSockets.WebSocketFixModule.b__0(Object sender, EventArgs e)

   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Request URL: /SE_8.0.6.3422/0/Nui/ViewModule.aspx.ashx

Request Path: /SE_8.0.6.3422/0/Nui/ViewModule.aspx.ashx

Request Type: GET

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

User Host Address: ::1

User: Supervisor

Is Authenticated: True

Authentication Type: Forms

Is Secure Connection: False

Application Version: 8.0.6.3422

Application Path: C:\inetpub\wwwroot\8.0.6.3422_SalesEnterprise_Softkey_MSSQL_ENU\Terrasoft.WebApp\

Application Virtual Path: /SE_8.0.6.3422/0

Application Trust Level: Full

Machine Name: LENOVO

Is Local: True

Process ID: 4136

Process Name: w3wp.exe

Process Account Name: IIS APPPOOL\Creatio

Thread Account Name: IIS APPPOOL\Creatio

OS Version: Microsoft Windows NT 10.0.22621.0

Net Framework Version: 4.0.30319.42000

DBExecutor Type: MSSqlExecutor

<-->

 

Like 0

Like

2 comments

Hi,

The problem is probably lais in your dotnet sdk version. Here is the list of library's version where everything should work ok.

3.1.301 [C:\Program Files\dotnet\sdk]

6.0.405 [C:\Program Files\dotnet\sdk]

Microsoft.AspNetCore.App 3.1.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]

Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]

Microsoft.AspNetCore.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]

Microsoft.NETCore.App 3.1.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Microsoft.NETCore.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Microsoft.WindowsDesktop.App 3.1.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Microsoft.WindowsDesktop.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] 

Show all comments