Red Gate forums :: View topic - How to configure ants to profile an out of browser silv app?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 6
ANTS Performance Profiler 6 forum

How to configure ants to profile an out of browser silv app?

Search in ANTS Performance Profiler 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
alexgoaga



Joined: 03 Mar 2011
Posts: 2
Location: Cyprus

PostPosted: Thu Mar 03, 2011 5:06 pm    Post subject: How to configure ants to profile an out of browser silv app? Reply with quote

Hi,

Currently, I am evaluating the software and I want to know how to configure ants to profile silverlight application.
I manage to run the silverlight application but when specifying only the path to xap file(For Silverlight Out-of-Browser applications, specify the path to the XAP file (prefixed by file:///). This is normally found in %LOCALAPPDATA%\Microsoft\Silverlight\OutOfBrowser\.) it starts the "out of browser" application with the silverlight host set to xaml file.
App.Current.Host.Source.AbsoluteUri="pointing to xaml file, as specified in ant"

How can I specify the origin, the uri to server? Ex:http://localhost/test/test.aspx.

Also, how do you run sllauncher from ants?

Kind Regards,
Alexandru.
Back to top
View user's profile Send private message
dom.smith



Joined: 03 Jun 2010
Posts: 94
Location: Cambridge, UK

PostPosted: Thu Mar 03, 2011 6:54 pm    Post subject: Reply with quote

Hi Alexandru,

I am currently in the process of rewriting this part of the documentation. Sorry it is a bit unclear at present.

Silverlight applications can either be in-browser, or out-of-browser. You choose which type of Silverlight application you want to build in the Visual Studio project.

The settings you enter in ANTS Performance Profiler depend on the type of Silverlight application that you are profiling.

If your Silverlight 4 application is a Silverlight out-of-browser application, you are correct:
(1) For the Silverlight application URL, enter the file path to the XAP file.
(2) Your Silverlight application launches inside sllauncher.exe (the out-of-browser launcher) automatically. You do not need to run sllauncher.exe separately.
This will not work if your Silverlight application is an in-browser application.

If your Silverlight 4 application is a Silverlight in-browser application, you need the Silverlight plugin in Internet Explorer. To profile the application:
(1) Close all running instances of Internet Explorer.
(2) For the Silverlight application URL, enter either:
* the file path to the HTML page that embeds the Silverlight application or
* the localhost URL of the HTML or ASPX page that embeds the Silverlight application (eg: http://localhost/test/test.aspx)
(3) Internet Explorer starts and loads your Silverlight application automatically.
This will not work if your application is a Silverlight out-of-browser application.

From your post, it sounds like your application has been built as a Silverlight out-of-browser application. If so, to profile it by specifying the address on the server, you need to rebuild it as a Silverlight in-browser application first.

I hope this helps,

Dom.
_________________
Dominic Smith,
Project Manager,
Red Gate Software.
Back to top
View user's profile Send private message
alexgoaga



Joined: 03 Mar 2011
Posts: 2
Location: Cyprus

PostPosted: Fri Mar 04, 2011 8:51 am    Post subject: Reply with quote

Hi,

I want to profile the silverlight application in out of browser and the problem that I encounter is the following:

Ants starts the silverlight application out of browser but instead of specifying as host source the URL to WEB SERVER, it specifies the source as
file:///path to xap. (App.Current.Host.Source)

The problem is that some of my services(RIA service, authentication service) used by the silverlight application are based on this source and they fail because file://path to xap is not a valid URL.
In order for this process to work properly we need to way to specify the URL to web server otherwise we will have this type of error message when trying to connect to server: "the provided uri scheme 'file' is invalid expected 'http'" http://social.msdn.microsoft.com/Forums/en/netfxnetcom/thread/a3511ba2-f069-446e-b2c7-d0fa7083e51f

Kind Regards,
Alexandru.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 588

PostPosted: Fri Mar 04, 2011 12:06 pm    Post subject: Reply with quote

It sounds to me that if you have other processes needing an http url, you need to configure your silverlight application as a web application first.

Doesn't your link help, when followed through:

http://forums.silverlight.net/forums/p/79118/187521.aspx#187521

?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group