Saturday, May 16, 2015

XBAP Application : How to Configure Visual Studio 2013 to Debug a XAML Browser Application

Scenario:

XBAP Applications does not open in browser when run using Visual studio 2013. Instead, this gives download option..


Solution:


XAML browser applications (XBAPs) run within a partial-trust security sandbox that is restricted to the Internet zone set of permissions.

So, we need to configure Visual Studio to run the XBAP applications in browser..


Steps to configure:



To configure Microsoft Visual Studio to debug an XBAP :
  1. With a project selected in Solution Explorer, on the Project menu, click Properties.
  2. In the Project Designer, click the Debug tab.
  3. In the Start Action section, select Start external program and enter the following:
    C:\WINDOWS\System32\PresentationHost.exe
  4. In the Start Options section, enter the following into the Command line arguments text box:
    -debug filename
    The filename value for the -debug parameter is the .xbap filename; for example:
    -debug c:\example.xbap
Reference: https://msdn.microsoft.com/en-us/library/bb613597(v=vs.110).aspx 

No comments:

VS Code # Warning - npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead

Error : VS Code - NPM Warning - npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead Solution:  Foll...