Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8929227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:37:37+00:00 2026-06-15T08:37:37+00:00

If someone launches my xbap from http://myserver/folder/application.xbap , I would like to get the

  • 0

If someone launches my xbap from http://myserver/folder/application.xbap, I would like to get the http://myserver/folder/ part of the url from within the application.

How can I do that?

I have tried:

  • System.IO.Directory.GetCurrentDirectory()
  • System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName)
  • Environment.CurrentDirectory
  • System.Reflection.Assembly.GetExecutingAssembly().Location
  • AppDomain.CurrentDomain.BaseDirectory
  • System.Windows.Application.Current.StartupUri.AbsolutePath
  • System.Environment.GetCommandLineArgs()[0]
  • System.Deployment.Application.ApplicationDeployment.CurrentDeployment.DataDirectory

They all return either the local location on my machine that the xbap got downloaded to and is running from, or the location of the executing assembly, such as C:\Windows\SysWOW64

How can I access the URL that was used to launch an xbap application from within the application itself?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:37:38+00:00Added an answer on June 15, 2026 at 8:37 am

    I believe it was BrowserInteropHelper.Source:

    Gets the uniform resource identifier (URI) for the location from which a XAML browser application (XBAP) application was launched.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Would someone please provide me an example of the following Activity/Service/Application combination. I have
I have a Cocoa app which launches a new NSThread (Thread A) from within
Someone can give me short explanation how to create bitmap runtime using GDI/GDI+ and
Someone recently taught me a useful thing: in css you can write the following:
Someone brought up the MySQLi multi_query function in an answer claiming that it would
I'm hoping someone can help with this, as it's driving me absolutely nuts. I
I was wondering how someone can specify an exit code when shutting a XULRunner
I hope someone can assist please. I have a Fragment hosting multiple list fragments
Can someone please tell me whats wrong with my Manifest file? I'm getting the
I over heard someone saying that system() call from libc is not safe. One

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.