Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6689281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:30:03+00:00 2026-05-26T05:30:03+00:00

I developed a ClickOnce application using MS Chart Controls. It works fine for the

  • 0

I developed a ClickOnce application using MS Chart Controls. It works fine for the charting part.
But, as Chart Control needs to be installed beforehand (with admin rights and not with classic ClickOnce deployment), I need to detect if the component is available on the machine.

So I tried to create a new Chart and to handle the possible Exception but it seems it is not possible to catch it (too low level Exception?) :

Try
  Dim oChart as New Chart
Catch
  ' Some user-friendly message to ask the user to contact the helpdesk
End Try

This code is never executed: I get a unhandled Exception as soon as I enter the event this code is in.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

***** Exception Text ******* System.IO.FileNotFoundException: Could not load file or assembly
‘System.Windows.Forms.DataVisualization, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its
dependencies. The system cannot find the file specified. File name:
‘System.Windows.Forms.DataVisualization, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35’ at
SIPReportingControl.Main.expMain_SelectedGroupChanged(Object sender,
GroupEventArgs e) at
Infragistics.Win.UltraWinExplorerBar.SelectedGroupChangedEventHandler.Invoke(Object
sender, GroupEventArgs e)

Do you have some ideas in order to:

  • be able to deploy MS Chart Controls with ClickOnce (I do not think it is possible).
  • detect if Chart Controls are installed or not.
  • catch this strange Exception.

Thanks in advance.

Edit
The calling method (the exception is generated even if I click in another group than Reporting):

Private Sub expMain_SelectedGroupChanged(sender As Object, e As Infragistics.Win.UltraWinExplorerBar.GroupEventArgs) Handles expMain.SelectedGroupChanged
    Try
        If blnDoEvent Then
            CleanControls()
            Select Case e.Group.Key
                Case "Search"
                    DisplayGrid(True)
                Case "AddEdit"
                    DisplayAddEdit(Nothing)
                Case "Reporting"
                    Dim oChart As New Chart
            End Select
        End If
    Catch ex As Exception
        MsgBox(ex.Message & vbCrLf & ex.StackTrace)
    End Try
End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:30:04+00:00Added an answer on May 26, 2026 at 5:30 am

    I have seen a interesting answer about an exception been thrown in generated MSIL code for a function call, unfortunately it has been deleted and I cannot add a comment to it.

    I have understood that your code is not responsible for firing the event. I would suggest to put the whole statement in a sub and to call it enclosed by a try catch this way :

    Private Sub expMain_SelectedGroupChanged(sender As Object, e As Infragistics.Win.UltraWinExplorerBar.GroupEventArgs) Handles expMain.SelectedGroupChanged 
        Try 
            RedirectTo(e.Group.Key)
        Catch ex As Exception 
            MsgBox(ex.Message & vbCrLf & ex.StackTrace) 
        End Try 
    End Sub 
    
    Sub RedirectTo(Screen as string)
        If blnDoEvent Then 
            CleanControls() 
            Select Case Screen 
                Case "Search" 
                     DisplayGrid(True) 
                Case "AddEdit" 
                     DisplayAddEdit(Nothing) 
                Case "Reporting" 
                     Dim oChart As New Chart 
            End Select 
        End If
    End Sub
    

    Is it better ?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developed an application using the JRE 7.0.0. In the simulator the app works
I've developed a .net 3.0 application, which is deployed using clickonce. I'd like to
I want to deploy(ClickOnce Deployment) my web application which is developed in visual studio
I developed a ASP.NET application that needs to run in multiple instances on my
i developed a login form that allows the use of openID. Works fine for
I have successfully developed and deployed a ClickOnce application which registers an associated file
I have a Windows Forms application developed using C# in .NET framework 3.5, Service
I developed an iphone application , But i need to put google Adsense in
I developed a winform application using C# in visual studio 2008. Now i want
I developed an application locally using the Visual Studio 2008 built-in web server and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.