I am getting this error for no reason. Initially after app pool restart app works ok for some time. Then this error pops up to all clients.
Windows 2016, all updates installed
Microsoft.NETCore.App 8.0.12
Wisej 3.5.16
Hi Dino,
did you try Application.StartTask() as suggested by Luca? The code snippet you posted is incomplete.
We need a fully compilable test case to try to help you here.
Best regards
Frank
This solution was working OK until I moved to .net 8.0 and latest wisej version.
I am using a very simple background service that is sending mails in background (see attachement). Could it be the case that Application.Update is the problem?
The only interaction with GUI is by using service event handlers for messaging to update txt field.
private void BackgroundService_Message(object sender, BackgroundServiceEmailing.BackgroundServiceEmailingEventArgs e)
{
// Application.Update() can optionally call a code block in context before updating the UI.
Application.Update(this, () =>
{
this.txtSendLog.Text = DateTime.Now.ToString() + “: ” + e.Message + Environment.NewLine + txtSendLog.Text;
});
}
If you can reproduce in a small test case, we can look into it in case it is a bug with Wisej and not your own code. However, it’s likely that this issue is not easy to reproduce in a small test case.
Unfortunately, debugging your application is something that is out of scope of this free support forum.
Your options are to downgrade your version of Wisej as that seems to fix the bug, or to purchase a premium support package here: https://wisej.com/services-packages/
This error never popped out until I migrated from Wisej 3.1.12 on .net 6.0 to 3.5.16 and .net 8.0
In the whole codebase there is no call to Application.StartTask().
I am suing System.Threading for BackgroundService and ThreadStart() but this was not a problem so far.
Please login first to submit.