none
The operation was not completed because an unexpected host ID was encountered RRS feed

  • Question

  • Hi all,

    I am only able to deploy/debug my JavaScript UWP approximately 3 times with Visual Studio (Release - Any CPU and deploy on Local Machine.). After this, I get the following error:

    Activation for 77c7d7fc-ac18-4d93-aab3-c05ebe7de76d_wekztnmkwecqm!App failed. Error code: The operation was not completed because an unexpected host ID was encountered.. Activation phase: PLM prepare for activation

    I set debugging in Visual Studio to "native mode", reset my developer license multiple times, but it does not seem to work. I also tried to clean/rebuild the solution, and then deploying it, but it does not help either. After a reboot of my PC, everything is OK again, and I still can deploy to my Windows Mobile VM...

    Event log:

    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
     <System>
      <Provider Name="Microsoft-Windows-Immersive-Shell" Guid="{315A8872-923E-4EA2-9889-33CD4754BF64}" />
        <EventID>5961</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>5961</Task>
        <Opcode>0</Opcode>
        <Keywords>0x4000000000000000</Keywords>
        <TimeCreated SystemTime="2018-03-24T21:37:41.769656900Z" />
        <EventRecordID>11</EventRecordID>
        <Correlation />
        <Execution ProcessID="6072" ThreadID="6828" />
        <Channel>Microsoft-Windows-TWinUI/Operational</Channel>
        <Computer>{{my-computer-name}}</Computer>
        <Security UserID={{my user id}} />
       </System>
      <EventData>
       <Data Name="AppId">77c7d7fc-ac18-4d93-aab3-c05ebe7de76d_wekztnmkwecqm!App</Data>
        <Data Name="ErrorCode">-2147021830</Data>
        <Data Name="PhaseFlags">8</Data>
       </EventData>
     </Event>

    (this question has first been posted here but they advised to post this question in this forum)

    Many thanks and with kind regards,

    Tim

    Tuesday, April 3, 2018 8:09 PM

All replies

  • Hi beste-spellen,

    Welcome to the Developing Universal Windows apps forum! Please utilize tagging when posting to this forum, thanks!

    I suggest you can create a blank project and try it again to check whether the issue will happen.

    Besides, what's your project target version, the OS build and the Visual Studio Version?

    Best Regards,

    Yong Lu


    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.

    Wednesday, April 4, 2018 7:16 AM
  • Same issue. I can only debug once or twice before having to reboot the PC. I have rebuilt the solution from scratch with same results. I'm guessing there is a file handle stuck open between sessions.

    Microsoft Visual Studio Professional 2017

    Version 15.6.7
    VisualStudio.15.Release/15.6.7+27428.2043
    Microsoft .NET Framework
    Version 4.7.03056
    Installed Version: Professional
    Visual C++ 2017   00369-60000-00001-AA108
    Microsoft Visual C++ 2017
    Visual F# Tools 10.1 for F# 4.1   00369-60000-00001-AA108
    Microsoft Visual F# Tools 10.1 for F# 4.1
    ASP.NET and Web Tools 2017   15.0.40314.0
    ASP.NET and Web Tools 2017
    ASP.NET Core Razor Language Services   1.0
    Provides languages services for ASP.NET Core Razor.
    ASP.NET Web Frameworks and Tools 2017   5.2.51214.0
    For additional information, visit https://www.asp.net/
    AWS Toolkit for Visual Studio 2017   1.14.2.0
    AWS Toolkit for Visual Studio 2017.
    Copyright 2011-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    Release notes: https://aws-vs-toolkit.s3.amazonaws.com/versioninfo.html
    This software includes third party software subject to the following copyrights:
    - Logging from log4net, Apache License
      [http://logging.apache.org/log4net/license.html]
    - Putty for PPK to PEM conversion, MIT license
      [http://www.chiark.greenend.org.uk/~sgtatham/putty/licence.html]
    - NGit for AWS Elastic Beanstalk incremental push
      [https://github.com/mono/ngit/blob/master/NGit.license.txt]
    - NSch dependency for NGit
      [https://github.com/mono/ngit/blob/master/NSch.license.txt]
    - Sharpen dependency for NGit
      [https://github.com/mono/ngit/blob/master/Sharpen/AssemblyInfo.cs]
    - ICSharpCode.SharpZipLib dependency for NGit
      [http://www.icsharpcode.net/opensource/sharpziplib/]
    - Mono.Posix.dll and Mono.Security.dll dependencies for NGit
      [http://mono-project.com/FAQ:_Licensing#Licensing]
    - MPFProj for Visual Studio Project Framework
      [http://mpfproj10.codeplex.com/license]
    - JSON Checker for JSON validation
      [http://www.raboof.com/projects/jsonchecker/]
    - Newtonsoft Json.NET
      [http://www.newtonsoft.com/json]
    - YamlDotNet
      [http://aaubry.net/pages/yamldotnet.html]
    Azure App Service Tools v3.0.0   15.0.40215.0
    Azure App Service Tools v3.0.0
    C# Tools   2.7.0-beta3-62715-05. Commit Hash: db02128e6e3c4bdfc93e6ec425ac9162b4d4fe80
    C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
    Common Azure Tools   1.10
    Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
    GitHub.VisualStudio   2.5.1.2234
    A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
    JavaScript Language Service   2.0
    JavaScript Language Service
    JavaScript Project System   2.0
    JavaScript Project System
    JavaScript UWP Project System   2.0
    JavaScript UWP Project System
    License Header Manager   2.0.3
    An extension for automatically inserting license information file headers.
    Microsoft Azure Tools   2.9
    Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.51212.2
    Microsoft Continuous Delivery Tools for Visual Studio   0.3
    Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.
    Microsoft JVM Debugger   1.0
    Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
    Microsoft MI-Based Debugger   1.0
    Provides support for connecting Visual Studio to MI compatible debuggers
    Microsoft Visual C++ Wizards   1.0
    Microsoft Visual C++ Wizards
    Microsoft Visual Studio Tools for Containers   1.1
    Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
    Microsoft Visual Studio VC Package   1.0
    Microsoft Visual Studio VC Package
    NPM Task Runner   1.4.81
    Adds support for npm scripts defined in package.json directly in Visual Studio's Task Runner Explorer. Includes full support for Yarn
    NuGet Package Manager   4.6.0
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
    ProjectServicesPackage Extension   1.0
    ProjectServicesPackage Visual Studio Extension Detailed Info
    SQL Server Data Tools   15.1.61801.210
    Microsoft SQL Server Data Tools
    TypeScript Tools   15.6.20202.3
    TypeScript Tools for Microsoft Visual Studio
    Visual Basic Tools   2.7.0-beta3-62715-05. Commit Hash: db02128e6e3c4bdfc93e6ec425ac9162b4d4fe80
    Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
    Visual Studio Code Debug Adapter Host Package   1.0
    Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
    Visual Studio Tools for Apache Cordova   15.123.7102.2
    Visual Studio Tools for Apache Cordova
    Visual Studio Tools for CMake   1.0
    Visual Studio Tools for CMake
    Visual Studio Tools for Universal Windows Apps   15.0.27428.01
    The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

    Thursday, May 3, 2018 3:22 PM
  • Hi Yong, 

    creating a new blank project does not help.

    The project target version is 10.0.16299.0, min version is 10.0.10240.0, OS Build is Windows 10 version 1803 (17134.48), Visual Studio version is the latest version 15.7.1.

    Many thanks and with kind regards,

    Tim

    ---

    In addition, the following "warning" is shown in the error list:

    Warning MSB3842 Project "TreinInformatie" depends upon SDK "Windows Mobile Extensions for the UWP v10.0.16299.0" which supports apps targeting "UAP 0.0". To verify whether "Windows Mobile Extensions for the UWP v10.0.16299.0" is compatible with "UAP 10.0.16299.0", contact the SDK author or see http://go.microsoft.com/fwlink/?LinkID=309181. TreinInformatie C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 2373 

    • Edited by beste-spellen Monday, May 14, 2018 9:01 PM added the warning
    Monday, May 14, 2018 8:59 PM
  • Hi all,

    I've faced the same issue today. That was my first day developing under Spring Creators Update.

    Additional information:
    1. Uninstalling application does not help.
    2. Deploy without starting works.
    3. Starting an app without Visual Studio doesn't work. App tile doesn't respond on mouse clicks.

    Sunday, May 27, 2018 1:27 PM
  • Same issue.

    Visual Studio Version: 15.8.0

    Visual Studio Subscription: Community 2017 Preview

    App Target Version: April Update 2018 (10.0.17134.0)

    App Minimum Version: Fall Creators Update (10.0.16299.0)

    Tuesday, July 24, 2018 10:53 AM
  • This issue is happening not only while debugging via VS but also if try running the standalone automation scripts to launch the UWP application (x86 arch) using protocol launcher..

    The app goes into this state after some time when automated test runs for the app on desktop. Tests usually launches the app using the protocol launcher mechanism and verify some UI elements and then kill the app process. And similar test repeats..

    Error observed in the event viewer:

    Activation for xxxxxxx_xxx!App failed. Error code: The operation was not completed because an unexpected host ID was encountered.. Activation phase: PLM prepare for activation.

    I started observing this issue from Windows 10 RS4 (1803). Anyone aware on this?? Really looking for solid fix..

    Only workaround works is signout and sign in back and try OR restart the device and then try.

    Uninstall and reinstall of app does not work as well.


    • Edited by MS QA Wednesday, August 15, 2018 9:08 AM
    Wednesday, August 15, 2018 9:00 AM
  • Seems LOTS of people are hitting this, including me.  It's driving me crazy, the only work around I've found so far is annoyingly time consuming which is to reset the appx manifest certificates, but I have to do this over and over every time F10 fails with this error.   Reset the appx package certificate to a test certificate using Package.appxmanifest editor, Packaging tab, Choose Certificate, Create Test Certificate in the dropdown Configure Certiciate.  Unfortunately you have to keep doing this every time this error pops up, which seems to correlate to every time you kill the app in the debugger.
    Sunday, August 26, 2018 11:46 PM