Red Gate forums :: View topic - Urgent help with Silverlight App that calls service
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler 7
ANTS Memory Profiler 7 forum

Urgent help with Silverlight App that calls service

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
jmarbutt



Joined: 28 Jul 2011
Posts: 1
Location: United States

PostPosted: Thu Jul 28, 2011 4:32 pm    Post subject: Urgent help with Silverlight App that calls service Reply with quote

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
View user's profile Send private message
jrg



Joined: 02 Jul 2010
Posts: 13

PostPosted: Fri Jul 29, 2011 11:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6580

PostPosted: Fri Jul 29, 2011 2:15 pm    Post subject: Reply with quote

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.
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