Silverlight OOB hangs application.
-
- Posts: 9
- Joined: Thu Jun 04, 2015 8:44 pm
Silverlight OOB hangs application.
Hey admin,
Version number of .NET Memory Profiler: 5.0.80.0
OS Platform :Windows 8.1 enterprise 64 bit
Description of the problem:
I have been trying to profile the Out-of-Browser Silverlight application and the application hangs without response. After few seconds, I get a not responding blank screen only when I profile using .Net memory profiler. If I am running in a normal mode without profiler attached , everything seems to be fine. Also when profiling the in-browser application, I faced no problem.
These are the steps I have followed to profile the application:
1. selected the first radio button
2. Entered the full path of my startup XAP for which OOB is enabled.
Version number of .NET Memory Profiler: 5.0.80.0
OS Platform :Windows 8.1 enterprise 64 bit
Regards
Bhargav
Version number of .NET Memory Profiler: 5.0.80.0
OS Platform :Windows 8.1 enterprise 64 bit
Description of the problem:
I have been trying to profile the Out-of-Browser Silverlight application and the application hangs without response. After few seconds, I get a not responding blank screen only when I profile using .Net memory profiler. If I am running in a normal mode without profiler attached , everything seems to be fine. Also when profiling the in-browser application, I faced no problem.
These are the steps I have followed to profile the application:
1. selected the first radio button
2. Entered the full path of my startup XAP for which OOB is enabled.
Version number of .NET Memory Profiler: 5.0.80.0
OS Platform :Windows 8.1 enterprise 64 bit
Regards
Bhargav
-
- Posts: 1030
- Joined: Wed Mar 02, 2005 7:53 pm
Re: Silverlight OOB hangs application.
We launch an Out-of-Browser Silverlight package by using the command line:
In your e-mail to us you mentioned that you download XAP files on demand. Maybe this causes problems if the origin URI is not correctly specified (it's currently hardcoded to "http://localhost").
Can you try the command line above and see if you get the same error? And then can you also try with the correct origin URI for you Silverlight app (i.e. by replacing "http://localhost" with the location of your XAP files)?
Code: Select all
SlLauncher.exe debug "/emulate:<path to XAP>" /overwrite /origin:http://localhost
Can you try the command line above and see if you get the same error? And then can you also try with the correct origin URI for you Silverlight app (i.e. by replacing "http://localhost" with the location of your XAP files)?
Best regards,
Andreas Suurkuusk
SciTech Software AB
Andreas Suurkuusk
SciTech Software AB
-
- Posts: 9
- Joined: Thu Jun 04, 2015 8:44 pm
Re: Silverlight OOB hangs application.
Andreas,
I have tried the approach you have given. I am not able to launch the OOB application.
In the fullpath to execute I have :
C:\Program Files (x86)\Microsoft Silverlight\sllauncher.exe
Start up options in the command line arguments:
"/emulate:<D:\Projects\a\b\c\SourceCode\test.Web\ClientBin\test.Shell.xap>" /overwrite /origin:http://localhost/Project1.Web/ClientBin/test.Shell.xap
What am I missing to profile the application.
Regards,
Bhargava
I have tried the approach you have given. I am not able to launch the OOB application.
In the fullpath to execute I have :
C:\Program Files (x86)\Microsoft Silverlight\sllauncher.exe
Start up options in the command line arguments:
"/emulate:<D:\Projects\a\b\c\SourceCode\test.Web\ClientBin\test.Shell.xap>" /overwrite /origin:http://localhost/Project1.Web/ClientBin/test.Shell.xap
What am I missing to profile the application.
Regards,
Bhargava
-
- Posts: 9
- Joined: Thu Jun 04, 2015 8:44 pm
Re: Silverlight OOB hangs application.
Hi Admin,
If you can provide the steps on profiling silverlight OOB in detail and also with screen shots that would be great.
Please explain if we have to install the application first before profiling the application. I have tried all the approaches from your answer.I am not able to launch the OOB and profile the app.
if you please guide me through the profiling that will of real help.
Regards,
Bhragav
If you can provide the steps on profiling silverlight OOB in detail and also with screen shots that would be great.
Please explain if we have to install the application first before profiling the application. I have tried all the approaches from your answer.I am not able to launch the OOB and profile the app.
if you please guide me through the profiling that will of real help.
Regards,
Bhragav
-
- Posts: 1030
- Joined: Wed Mar 02, 2005 7:53 pm
Re: Silverlight OOB hangs application.
It should be possible to profile your Silverlight application using the "Profile Silverlight" command, but as I mentioned, there might be a problem with the origin parameter. That's why I asked you to try SLLauncher, to see if you are able to start your Silverlight application in emulation mode. My intention was that you should run this from the command line, outside of the profiler.
The command line I sent included the text "<path to XAP>". The full text "<path to XAP>" should be replaced by the path to XAP-file, the brackets ("<>") should not be included. E.g.
"/emulate:D:\Projects\a\b\c\SourceCode\test.Web\ClientBin\test.Shell.xap" /overwrite /origin:http://localhost/Project1.Web/ClientBin/test.Shell.xap
Can you try this again, and see if you are able to start your app using SlLauncher from the command prompt?
The command line I sent included the text "<path to XAP>". The full text "<path to XAP>" should be replaced by the path to XAP-file, the brackets ("<>") should not be included. E.g.
"/emulate:D:\Projects\a\b\c\SourceCode\test.Web\ClientBin\test.Shell.xap" /overwrite /origin:http://localhost/Project1.Web/ClientBin/test.Shell.xap
Can you try this again, and see if you are able to start your app using SlLauncher from the command prompt?
Best regards,
Andreas Suurkuusk
SciTech Software AB
Andreas Suurkuusk
SciTech Software AB
-
- Posts: 9
- Joined: Thu Jun 04, 2015 8:44 pm
Re: Silverlight OOB hangs application.
Hi Andreas,
I am able to launch the application using this command as you have mentioned
"C:\Program Files\Microsoft Silverlight\sllauncher.exe" /emulate:"D:\temp\Client\ClientBin\test.Shell.xap" /origin:http://localhost/sp.web/ClientBin/test.Shell.xap /shortcut:desktop+startmenu".
How can I profile this application in OOB mode. Which option should I be using. Do you want me to use
profile silverlight application or profile application .
Can you please provide detailed steps to profile. I am downloading the modules on demand in my project so, what can be done.
Regards,
Bhargav
I am able to launch the application using this command as you have mentioned
"C:\Program Files\Microsoft Silverlight\sllauncher.exe" /emulate:"D:\temp\Client\ClientBin\test.Shell.xap" /origin:http://localhost/sp.web/ClientBin/test.Shell.xap /shortcut:desktop+startmenu".
How can I profile this application in OOB mode. Which option should I be using. Do you want me to use
profile silverlight application or profile application .
Can you please provide detailed steps to profile. I am downloading the modules on demand in my project so, what can be done.
Regards,
Bhargav
-
- Posts: 1030
- Joined: Wed Mar 02, 2005 7:53 pm
Re: Silverlight OOB hangs application.
That's good. If you are able to run the Silverlight application using SlLauncher, then you should also be able to profile it. Since it is currently not possible to specify the origin parameter when using the "Profile Silverlight" command, you need to use the "Profile Application" command instead.
Can you try to start profiling using the same command line in the profiler? E.g. If this doesn't work, we will need to investigate this further, for example by examining log-files from the profiler.
Can you try to start profiling using the same command line in the profiler? E.g. If this doesn't work, we will need to investigate this further, for example by examining log-files from the profiler.
Best regards,
Andreas Suurkuusk
SciTech Software AB
Andreas Suurkuusk
SciTech Software AB
-
- Posts: 9
- Joined: Thu Jun 04, 2015 8:44 pm
Re: Silverlight OOB hangs application.
Hi Andreas,
Thanks for all the support. I am able to achieve this.
This what I had to do.
1. run this is in cmd prompt
"C:\Program Files\Microsoft Silverlight\sllauncher.exe" /emulate:"D:\temp\Client\ClientBin\test.Shell.xap" /origin:http://localhost/sp.web/ClientBin/test.Shell.xap /shortcut:desktop+startmenu".
2.go to profiler and set the command line arguments as (no quotes)
/emulate:"D:\temp\Client\ClientBin\test.Shell.xap" /origin:http://localhost/sp.web/ClientBin/test.Shell.xap
only then the profiler seems to work by following step 1 and 2.
If I go to step 2, I am not able to run the OOB application to profile.
Can you please update if this is a known issue.
Regards,
Bhargava
Thanks for all the support. I am able to achieve this.
This what I had to do.
1. run this is in cmd prompt
"C:\Program Files\Microsoft Silverlight\sllauncher.exe" /emulate:"D:\temp\Client\ClientBin\test.Shell.xap" /origin:http://localhost/sp.web/ClientBin/test.Shell.xap /shortcut:desktop+startmenu".
2.go to profiler and set the command line arguments as (no quotes)
/emulate:"D:\temp\Client\ClientBin\test.Shell.xap" /origin:http://localhost/sp.web/ClientBin/test.Shell.xap
only then the profiler seems to work by following step 1 and 2.
If I go to step 2, I am not able to run the OOB application to profile.
Can you please update if this is a known issue.
Regards,
Bhargava
Who is online
Users browsing this forum: No registered users and 19 guests