Child pages
  • How to profile silverlight application

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. Start website with silverlight in VS development server or in IIS or even deploy to other webserver. Copy URL to buffer.
  2. Start dotTrace as standalone (from Start->All Programs, and not from VS)
  3. Select Profile -> Silverlight application. Put url field to web page with silverlight. Select Browser to be started or restarted. Paste the URL from buffer to field "Url"
  4. If you want Line-by-Line profiling type, then press small Arrow down button to show additional options. Press "Edit symbol search policy..." button, and fill search path by the path to your dll and pdb folder.
  5. Click "OK" to start.
  6. Exercise your Silverlight application.
  7. Get snapshot. We are done.

Possible problems and Workarounds:

1. Restarting browser may stop VS debug session. Thus you may need two browsers. VS start for example IE and use Firefox from dotTrace.

2. Getting error "The port is busy".The reason is that Visual Studio doesn't stop Development server at once after application is stopped. The workaround is to close the remaining Development server by right click on its icon in tray and select "Stop".