This is a migrated thread and some comments may be shown as answers.

Silverlight: RadHtmlPlaceholder throws exception

6 Answers 163 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top Gun
Top achievements
Rank 1
Top Gun asked on 21 Jun 2012, 10:16 PM
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?

6 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 26 Jun 2012, 05:07 PM
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
0
Top Gun
Top achievements
Rank 1
answered on 02 Jul 2012, 09:56 PM
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>

0
Plamen
Telerik team
answered on 06 Jul 2012, 09:33 AM
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
0
Top Gun
Top achievements
Rank 1
answered on 09 Jul 2012, 03:38 PM
Thanks for the help.
0
Vishnu
Top achievements
Rank 1
answered on 09 Sep 2012, 03:01 AM
I am experiencing the same issue. Did you find any solution?
0
Plamen
Telerik team
answered on 13 Sep 2012, 09:17 AM
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
Tags
General Discussions
Asked by
Top Gun
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Top Gun
Top achievements
Rank 1
Vishnu
Top achievements
Rank 1
Share this question
or