DesktopAlertManager sopped displaying the alert

1 Answer 36 Views
DesktopAlert
hhgm
Top achievements
Rank 1
Iron
hhgm asked on 29 Sep 2023, 05:18 PM

For several years I have been using the RadDesktopAlertManager in my application. Recently I noticed that it has stopped displaying the alert, but without any exceptions.

When I debug, everything works as expected, until I get to the .ShowAlert execution on the manager. Then this happens.

The rest of my code works just fine, and the only thing I am lacking is the alert... but this is of course an application wide outage.

Any ideas... missing a dll?  or....

Dinko
Telerik team
commented on 03 Oct 2023, 10:39 AM

Hi Hans-Henrik,

The error with the executioncontext.cs occurs because the debugger cannot find the source code for the Telerik API you want to debug. In that case that is the ShowAlert() method. To debug this, you should either download the source code and attach the Navigation_WPF.csproj project, or load the Telerik.Windows.Controls.Navigation.pdb file from your Telerik installation folder. 

However, before doing that, I suggest you to check the Missing Controls in the UI article.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

hhgm
Top achievements
Rank 1
Iron
commented on 04 Oct 2023, 08:18 PM | edited

I have been looking for the pdb files, but do not seem to find them...

Dinko
Telerik team
commented on 05 Oct 2023, 11:28 AM

Let me introduce you some easy steps to find the pdb files:

  1. Log in to your Telerik account and go to the WPF product's download page.
  2. In the list with the available files go to the Other Setup Files section.
  3. There you can find the pdb zip file. It looks like: Telerik_UI_for_WPF_[version]_[license]_PDBs.zip

1 Answer, 1 is accepted

Sort by
0
hhgm
Top achievements
Rank 1
Iron
answered on 04 Oct 2023, 11:00 PM

The answer to the problem was assembly redirection.

It was asking for version 4.0.0.0, but was upgraded to 7.0.0.0 and even though the automatic redirection flag was set in the project file, this was not handled.

So added this in the app.config:

<dependentAssembly>
<assemblyIdentity name="System.Resources.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>

And viola, the messages are displayed once again.

Tags
DesktopAlert
Asked by
hhgm
Top achievements
Rank 1
Iron
Answers by
hhgm
Top achievements
Rank 1
Iron
Share this question
or