When i record my Silverlight application in WebUI Test Studio, it has thrown below message. Can any one help me on this? Thanks in Advance.
Unable to load silverlight application.Silverlight recording will not function. Try setting externalAccessfromCrossDomainCallers to script only in your application's AppManifest.xaml file.
10 Answers, 1 is accepted
The error message indicates that WebUI Test Studio is not able to connect with your Silverlight app in it's current deployment.
Please try the setting suggestion in the error message for your Silverlight app's Xaml file and retry navigating to your Silverlight page in the Recording Window. Also, please try clearing IE's cache before trying to connect to the app.
If your Silverlight app is already setup in this manner, please post back with more information on the app itself as in whether it is embedded in the page (using an object tag or an IFrame), if there are more than one Silverlight app on the page, if it is in a popup window, or any other information about your Silverlight app's deployment that may apply.
Best wishes,
Nelson Sin
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I am having the same problem in both VS 2008 and VS 2010 Beta 2. I can get the Silverlight app running in the same machine as where VS is running. Why WebUI Test Studio can't access the Silverlight app?
Thanks,
I need a little more information about your Silverlight application before I can assist troubleshooting your connection problem.
- Is your Silverlight application being hosted on your local computer i.e. you connect to it using a URL such as "http://localhost:31382/myapp.aspx"?
- Or is it being hosted on an external server i.e you connect to it using a URL such as "http://www.myserver.com/myapp.aspx"?
If you are using localhost, please add a '.' after localhost e.g. "http://localhost.:31382/myapp.aspx". It
seems IE requires this to properly interpret the host name from the port number and page name.
If it's on another server, were you able to set the setting that Nelson suggested in his previous response? Is there anything unusual about how you connect to the webserver, such as are you going through a VPN to get to it?
If that doesn't help, is the website public so that we can try connecting to it and diagnosing the problem?
Kind regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
The server I am connecting to is a remote server (glassfish server). This server has no public access. Using browsers (IE and Firefox) I can have my Silverlight running without any problems. But I can’t record actions using WebUI Testing Studio. I am not able to apply Nelson’s suggestion. I need detailed info of doing that.
Thanks,
Here is a link that gives an explanation on what you can try based on the error message screenshot that Muthukrishnan posted. Also, is clearing the entire browser cache no working? If you can also give any more detail on how your Silverlight app is deployed, it may help to determine why WebUI is not connecting.
So from my previous post, please let us know if the app is embedded in the page (using an object tag or an IFrame), if there are more than one Silverlight app on the page, if it is in a popup window, and also if the app has an inital load time longer than 30000 ms.
Also, if you can somehow allow us temporary access to your app, then it would help us determine why it may not be connecting more easily.
Best wishes,
Nelson
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I have applied the suggested change for "ExternalCallersFromCrossDomain". It did not work (can't record actions). Clean browser cache doesn't work either.
The Silverlight app is embedded in the html page. And it is the only SL app in that page.
The Silverligth app is hosted in Glassfish application server (Java-based).
Hope you can resolve this case soon.
John
Thanks for post back and the information. We are looking to put together a document that will contain a few more things you can check and try. I'll look to get back to you with it as soon as I can.
Kind regards,
Nelson Sin
the Telerik team
Quick Edit: After talking with my coworker, for this work around you would need both ot the following:
-the following in your html page:
<param value="true" name="enableHtmlAccess"/>
and
- the following in your SL Manifest:
ExternalCallersFromCrossDomain="ScriptableOnly"
The description for both are also in the thread link from my last post. Thanks.
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
My trial license has expired.
John
I'll forward this along to sales to see if they can help you out. I've also attached the full Silverlight connection draft to see if this will help.
Best wishes,
Nelson
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Donna
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.