Share via


Debugging an OOB Silverlight Business Application

Recently, we came across a bug with the Silverlight Business Application with respect to an Out of Browser application. In the RTM bits for Silverlight 4 Tools a new feature was added to enable a better debugging experience with Out of Browser application. The feature basically launched the app in OOB window when run with the debugger attached. If you have tried that with the business application template, you will notice that the app does not run. It crashes with an exception, that the URI path is not valid.

We realize this is an issue most folks are running into and we have fixed this template and we are looking ways to get you access to it. However, there is a relatively easy workaround to fix this issue.

The steps involved are :-

  1. Create a new or open up an existing application that was created using the BusinessApplicationTemplate
  2. Once the project is open, go to the Project Properties page for the Silverlight Application.
  3. In that, first uncheck the OOB option which is enabled by default

image

  1. Save the project
  2. Close the Project Property Page
  3. Open the Project Property page again
  4. Then go ahead and check the OOB option.

image

  1. In doing the stop above, the web server information and all data are now setup correctly.
  2. Run the App
  3. Voila!

 image

 

Cheers!!

Comments

  • Anonymous
    July 19, 2010
    The comment has been removed
  • Anonymous
    July 20, 2010
    Thanks this did the trick.   Nice thing is I can now switch back forth between BusinessApplication1 and BusinessApplication1.Web project as my startup project to go back and for the between out-of-browser and in-browser debugging respectively.  I created a b4 and after copy of my default sl biz application project to capture what what following the process in this blog actually changes and found it results in the following changes. BusinessApplication1.csproj.user /Project/ProjectExtensions/VisualStudio/FlavorProperties/SilverlightProjectProperties/StartAction = OfflineApplication -> DynamicPage /Project/ProjectExtensions/VisualStudio/FlavorProperties/SilverlightProjectProperties/OutOfBrowserProjectToDebug = <empty> -> BusinessApplication1.Web