| Author |
Message |
jmarbutt
Joined: 28 Jul 2011 Posts: 1 Location: United States
|
Posted: Thu Jul 28, 2011 4:32 pm Post subject: Urgent help with Silverlight App that calls service |
|
|
So I have been trying to profile a large Silverlight app that profiles a service but when I profile it with Memory Profiler, it doesn't make the service call. So I decided to make a test app that just has a button then calls the service but when I call the service it stops working in the profiler.
All that is in the code is :
private void button1_Click(object sender, RoutedEventArgs e)
{
var srvc = new ServiceReference1.Service1Client();
label1.Content = "Done";
}
If I take out the line "var srvc = ..." then the label1.content will change when profiling. But if I leave it in, when the button is pressed during a profiling session then the content doesn't change.
It does work if I run in debug from VS or if I just open it in a browser.
Any ideas? This is holding me up from profiling a much larger app. |
|
| Back to top |
|
 |
jrg
Joined: 02 Jul 2010 Posts: 13
|
Posted: Fri Jul 29, 2011 11:52 am Post subject: |
|
|
After pressing the button, does Internet Explorer display the 'Error on page' icon at the bottom right? And if so, what message appears when the icon is clicked?
(Silverlight exception details are normally written out to that location) |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Fri Jul 29, 2011 2:15 pm Post subject: |
|
|
Good suggestion! I suspect Visual Studio plumbs all of this debugging in for you when you create a Silverlight project using the Silverlight project template. Error information may not appear there if the app was not created using the VS template.
If nothing pops up there I can suggest attaching our debugger and see if the exception gets trapped. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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