Silverlight: RadHtmlPlaceholder throws exception

7 posts, 0 answers
  1. Top Gun
    Top Gun avatar
    20 posts
    Member since:
    Nov 2009

    Posted 21 Jun 2012 Link to this post

    I am evaluating Test Studio on a Silverlight application.  The application uses a RadHtmlPlaceholder.  When Test Studio is run on the Silverlight application, an error appears stating, "The invocation of the constructor on type 'Telerik.Windows.Controls.RadHtmlPlaceholder'... threw an exception."  Is there a way to work around this issue?  Do I need to take the RadHtmlPlaceholder out of the Silverlight application in order for an automated test to run?
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 26 Jun 2012 Link to this post

    Hi Top Gun,

    I was able to successfully record and execute against our RadHtmlPlaceholder demos. See the following screen recording:

    http://screencast.com/t/2e6UkJSbB2.

    Would it be possible for us to get direct access to your application? This would be the fastest and easiest way to help you with the problem you are experiencing. If direct access is not an option, can you reproduce the issue against a public site? Do you have a specific set of reproduction steps I can follow?

    Kind regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Top Gun
    Top Gun avatar
    20 posts
    Member since:
    Nov 2009

    Posted 02 Jul 2012 Link to this post

    I saw the video demo.  I have created a simple SL app that uses the RadHtmlPlaceholder.  I am running this application in OOB.  As soon as I click record from Test Studio, my application opens and gives the following message:
    "An error has occurred in the script on this page.  Unhandled Error in Silverlight Application  The invocation of the constructor on type 'Telerik.Windows.Controls.RadHtmlPlaceholder' that matches the specified binding constraints threw an exception.  [Line: 16 Position: 46] at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator).."

    Here is the xaml code:
    <Grid x:Name="LayoutRoot" Background="White" ShowGridLines="True">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <TextBlock Text="Hello, World!" FontSize="15" HorizontalAlignment="Center" />
            <telerik:RadHtmlPlaceholder Grid.Row="1" x:Name="cmsHTMLPlaceHolder"                                     
                                            SourceUrl="http://www.google.com"
                                            Margin="0"
                                            RespectSilverlightLayoutMeasure="True"  />
        </Grid>

  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 06 Jul 2012 Link to this post

    Hi Top Gun,

    Thank you for providing the Visual Studio project. I was able to reproduce the issue and logged it as bug. You can track its progress and vote for it here: Public URL.

    Unfortunately, I wasn't able to find a workaround for you to use, so we'll do our best to fix the issue ASAP.

    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Top Gun
    Top Gun avatar
    20 posts
    Member since:
    Nov 2009

    Posted 09 Jul 2012 Link to this post

    Thanks for the help.
  6. Vishnu
    Vishnu avatar
    1 posts
    Member since:
    Jan 2011

    Posted 08 Sep 2012 Link to this post

    I am experiencing the same issue. Did you find any solution?
  7. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 13 Sep 2012 Link to this post

    Hello Vishnu,

    I checked the status on the RadHtmlPlaceHolder bug. It is assigned to a developer and being actively worked on. I just don't have a firm date when it will be finished. As soon as it's fixed it will be marked in the Public Tracker.

    Kind regards,
    Plamen
    the Telerik team
    Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
    Vote now
Back to Top