Best overloaded method

2 posts, 0 answers
  1. Justin
    Justin avatar
    15 posts
    Member since:
    Jan 2012

    Posted 16 Feb 2012 Link to this post

    I'm receiving two errors when trying to implement this control:

    Error    1    The best overloaded method match for 'Telerik.Windows.Controls.ApplicationUsageHelper.Init(string)' has some invalid arguments
    Error    2    Argument 1: cannot convert from 'double' to 'string'

    Here is some of my code:
    // Global handler for uncaught exceptions.
                UnhandledException += Application_UnhandledException;
     
                // Standard Silverlight initialization
                InitializeComponent();
     
                // Phone-specific initialization
                InitializePhoneApplication();
     
                RadDiagnostics diagnostics = new RadDiagnostics();
                diagnostics.EmailTo = "email";
                diagnostics.Init();
                diagnostics.ApplicationName = "app";
                diagnostics.ApplicationVersion = "1.1";
                diagnostics.IncludeScreenshot = true;          
     
    private void Application_Launching(object sender, LaunchingEventArgs e)
            {
                CheckTrialMode();
                ApplicationUsageHelper.Init(1.1);
            }

  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 17 Feb 2012 Link to this post

    Hello Justin,

    Are you by any chance mixing the Beta binaries with the official once?

    In Beta we had were using "double" for the application version, but for the official release we are using String. You may need to update your project.

    I'm also attaching a sample project so you can see what is the proper setup. Please let us know how it goes.

    Kind regards, Valentin.Stoychev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
Back to Top