none
[UWP][Windows 10 app] RRS feed

  • Question

  • Hi,

    we have develop windows 10 UWP app and we want to run it in enterprise tablet. The enterprise tablet will be lockdown using third party software like Soti mobi control. We tried to run the application when the device was lockdown but unable to run the app and always get an error "this application can only run in the context of an app container".

    Please let me know if anyone faces same issue andhow did they resolve it.

    thanks,

    nitesh

    Friday, January 13, 2017 5:04 AM

Answers

All replies

  • Hi NiteshKr12,

    There is a similar error in this case, please refer it in this link: http://stackoverflow.com/questions/33658746/this-application-can-only-run-in-the-context-of-an-app-container-new-to-vis#.

    In the comment:

    If this is a store/UWP app then it can only be installed via an appx package. Typically this should be via the store.
    It is not possible to install a modern/store/UWP app with an MSI.
    If you don't want to (or can't) distribute through the store then you can create a package that can be installed directly.
    In VS go to: PROJECT > Store > Create App Packages... > And select No to building a package for the store
    Before you can install the app on a machine you'll need to enable developer features on that machine:
    Settings > Update & Security > For developers > select: Sideload apps
    Then just run the PowerShell script created with the package to install it.


    Best Regards,

    Jayden Gu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Proposed as answer by Jayden Gu Sunday, January 22, 2017 12:03 PM
    Monday, January 16, 2017 6:48 AM
  • Hi ,

    Can i directly run the app from .exe file which is located in c:\programfile\windows apps

    Or it is impossible to run the app from any third party software to launch the app.

    thanks,

    niteshkr12

    • Proposed as answer by Jayden Gu Sunday, January 22, 2017 8:12 AM
    • Unproposed as answer by Jayden Gu Sunday, January 22, 2017 12:03 PM
    Tuesday, January 17, 2017 10:00 AM
  • Hi NiteshKr12,

    >>Can i directly run the app from .exe file which is located in c:\programfile\windows apps?

    No, we can not.  There is a document about Sideload your app package, please refer it in this link: https://msdn.microsoft.com/en-us/windows/uwp/packaging/packaging-uwp-apps#sideload-your-app-package.


    Best Regards,

    Jayden Gu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by NiteshKr12 Monday, February 6, 2017 6:06 AM
    Sunday, January 22, 2017 8:12 AM
  • Thanks Jayden
    Monday, February 6, 2017 6:06 AM