Ask the developer for a new app package. This package may conflict with a package already installed - deployment

I have converted an .EXE application using DesktopAppConverter, I have the .appX file. I installed the auto-generated certificate. Now When I try to install the appX file in my computer I get this error
Ask the developer for a new app package. This package may conflict with a package already installed, or it depends on things not installed here (package dependencies), or is made for a different architecture (0x80073CF3)
How Can I fix this??
the converter at one point says
VERBOSE: Added a new framework package dependency based on file 'C:\vfs0\Users\ContainerAdministrator\AppData\Local\Fun
Money\msvcp120.dll'. Package name: 'Microsoft.VCLibs.120.00.UWPDesktop'
WARNING: DesktopAppConverter : warning 'W_PACKAGE_DEPENDENCY_ADDED': A dependency on framework package
'Microsoft.VCLibs.120.00.UWPDesktop' was added to the AppxManifest.xml. See
'http://go.microsoft.com/fwlink/?LinkId=821959' for guidance on installing the package prior to local deployment.
Otherwise, if this is in error, remove the corresponding entry from Dependencies in the AppxManifest.xml before
packaging and deploying your application.
VERBOSE: --------------------------------------------------
I did visit go.microsoft.com/fwlink/?LinkId=821959 and I installed VC 14, 12 and 11. But Still The same error.
Note The appManifest.xml in .appX file (used winrar to open it) have this dependencies
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14393.0" />
<PackageDependency Name="Microsoft.VCLibs.120.00.UWPDesktop" MinVersion="12.0.40652.5" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
</Dependencies>
Yet when I visit C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs.Desktop\14.0
I only have the 14.0 version to install no 12.0 folder exists.
I'm not sure if this note helps fixing the problem but I added just in case.

When sideloading an .appx package that has dependencies, those dependencies are not downloaded from the Windows Store automatically. You will need to explicitly install them on the target machine. Users who get your app from the Store won't need to do this, the Store will install for them.
Here is how you do it in the sideloading scenario:
- open a powershell command prompt
- locate the .appx package for your dependency (in this case 'Microsoft.VCLibs.x86.12.00.Universal.appx')
- run Add-AppxPackage Microsoft.VCLibs.x86.12.00.Universal.appx
- now try deploying your app package again
Thanks,
Stefan Wick - Windows Developer Platform

Related

NU1102: Unable to find package Microsoft.Windows.SDK.BuildTools with version (>= 10.0.19041.8)

In my build pipeline, I have the following step:
I am getting the following error:
##[error]The nuget command failed with exit code(1) and error(NU1102: Unable to find package Microsoft.Windows.SDK.BuildTools with version (>= 10.0.19041.8)
When I go to the NuGet page for this package: Microsoft.Windows.SDK.BuildTools, I see that it only has one version: 10.0.18362.3-preview. I am not sure why the NuGet restore step is trying to get a higher version that does not exist. Why is this happening and how can I fix it? Note: this is my first Pipeline.
Agent Specification: Windows-2019.
From this page, you can see only two versions of the package Microsoft.Windows.SDK.BuildTools are listed:
10.0.19041.1
10.0.18362.3-preview
When open the page of version 10.0.19041.1, you can see the warning message to notify that this package version has been deprecated. But it seems that you can still download and install it.
I think the other package versions may have been permanently deleted by the owner due to some security vulnerabilities. So you no longer find them.
You can try to open your project using Visual Studio on your local machine, and change to use version 10.0.18362.3-preview in your program.

MongoDB can't compile on Windows 7

Trying to cmake mongodb C Driver on Windows 7 and got this error:
D:\db\mongodb\mongo-cxx-driver-master\build>cmake ..
-- No build type selected, default is Release
-- Auto-configuring bsoncxx to use boost std library polyfills since C++17 is in
active and compiler is MSVC
CMake Error at src/bsoncxx/CMakeLists.txt:81 (find_package):
By not providing "Findlibbson-1.0.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"libbson-1.0", but CMake did not find one.
Could not find a package configuration file provided by "libbson-1.0"
(requested version 1.10.0) with any of the following names:
libbson-1.0Config.cmake
libbson-1.0-config.cmake
Add the installation prefix of "libbson-1.0" to CMAKE_PREFIX_PATH or set
"libbson-1.0_DIR" to a directory containing one of the above files. If
"libbson-1.0" provides a separate development package or SDK, be sure it
has been installed.
libbson is installed
Don't understand where should I set a libbson directory

UWP Deployment Microsoft.NET.Native.Runtime.1.7 not found error

I have recently installed a few updates to windows / visual studio 2017, and now when I create a package of my UWP app and try deploying it to any of the machine where it used to work just fine - installation fails and there is this error message in windows error log:
AppX Deployment operation failed for package 92211ab1-5481-4a1a-9111-a3dd87b81b72_1.0.26.0_neutral_~_n78qa84z3g9aj with error 0x80073CF3. The specific error text for this failure is: Windows cannot install package 92211ab1-5481-4a1a-9111-a3dd87b81b72_1.0.26.0_x86__n78qa84z3g9aj because this package depends on a framework that could not be found. Provide the framework "Microsoft.NET.Native.Runtime.1.7" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x86 processor architecture and minimum version 1.7.25531.0, along with this package to install. The frameworks with name "Microsoft.NET.Native.Runtime.1.7" currently installed are: {}
I can not find any reference on the web for this package.
The package installs just fine on the developement machine.
Any help would be greatly appreciated.
EDIT 1:
Screenshot of my dependencies folder below:
UWP Deployment Microsoft.NET.Native.Runtime.1.7 not found
The problem is that there is no Microsoft.NET.Native.Runtime.1.7 dependence in current OS system. And you could install Microsoft.NET.Native.Runtime.1.7 dependence manually.
The Microsoft.NET.Native.Runtime.1.7 dependence will be stored in the Dependencies folder where under the appx folder.
Update1
I have checked your screenshot. It seems that you generate your package in debug mode and I can reproduce the same dependency in this way. The .NET Native tool chain is checked by default in the release mode. So you could regenerate your package in release mode to get files above.
Looks like these dependencies only appear on a Release build, and not in Debug.

Error DEP0700 0x80073cf3 during Windows 10 UWP application deployment with Visual Studio

I'm unable to deploy my UWP project anymore in the Release/x64 configuration with .NET Native.
It appears that it can't find the x86 version of the .NET Native Runtime package during deployment, while it has built a x64 package on the target platform that is really x64.
The error is below:
Error : DEP0700 : Registration of the app failed. Windows cannot install package XXXXXXXXX-d24ead15699e because this package depends on another package that couldn't be found.
This package requires minimum version 1.2.23231.0 of framework Microsoft.NET.Native.Runtime.1.2 published by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US to install;
The frameworks with name Microsoft.NET.Native.Runtime.1.2 available to the user are Microsoft.NET.Native.Runtime.1.2_1.2.23231.0_x86__8wekyb3d8bbwe.
Provide the correct framework along with this package. (0x80073cf3)
In fact this problems appeared after trying to install the app package with the Powershell script instead of from Visual Studio (ie on the development computer where Visual Studio is installed and that is used for debugging).
I had generated an deployment application package for both x86 & x64 platform at the same time. it seems now that there is a conflict in Microsoft.NET.Native.Framework referencing or between different kinds of deployment (with VS2015 or with PowerShell) on the PC but I don't know why and how resolve it.
Any help would be greatly appreciate.
Thanks,
Thibault
I had to manually add this to my project to get the CoreRuntime appx to deploy as a dependency when debugging. I assume you can do something similar with the native runtime
<ItemGroup>
<SDKReference Include="Microsoft.NET.CoreRuntime, Version=1.0">
<Name>Microsoft .NET Core Runtime Package for Windows</Name>
</SDKReference>
</ItemGroup>
For me, changing the Guids in the Package.appmanifest file helped:
<Identity Name="04135591-f637-4b60-ac7d-aa2fda03651d" ... />
<mp:PhoneIdentity PhoneProductId="04135591-f637-4b60-ac7d-aa2fda03651d" ... />
Replace with a new Guid.
My problem is solved by modify vs 2017 installation, adding ".NET Core cross-platform development". Along with the installation, ".NET Core 2.0 development tools" is installed. I guess it is required by vs deployment.
The error I got before,
DEP0700: Registration of the app failed. [0x80073CF3]
Windows cannot install package d6ff9b9c-06f8-4ead-a5cb-9389bd79cb13_2.3.0.0_x86__5xzajrpst8fmr
because this package depends on a framework that could not be found. Provide the framework "Microsoft.NET.CoreRuntime.2.1"
published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x86 processor architecture and minimum version 10.0.16299.0,
along with this package to install. The frameworks with name "Microsoft.NET.CoreRuntime.2.1"
currently installed are: {Microsoft.NET.CoreRuntime.2.1_2.1.26124.5_x86__8wekyb3d8bbwe}

Unable to Use Nuget with MvvmCross - PCL

Following the tutorial for mvvmcross here: http://www.youtube.com/watch?v=_DHDMNB_IeY&list=PLR6WI6W1JdeYSXLbm58jwAKYT7RQR31-W&index=1
I've set up my PCL xml files to include MonoTouch and Mono for Android as instructed here: http://slodge.blogspot.co.uk/2013/04/my-current-pcl-setup-in-visual-studio.html
If I try to use nuget I get an error that an item with the same key has already been added:
I can add other project types to the solution and NuGet works fine, it's something specific to PCL projects. Here is the console output:
PM> Install-Package MvvmCross.HotTuna.StarterPack
Attempting to resolve dependency 'MvvmCross.HotTuna.CrossCore (≥ 3.0.8.1)'.
Attempting to resolve dependency 'MvvmCross.PortableSupport (≥ 3.0.8.1)'.
Installing 'MvvmCross.PortableSupport 3.0.8.1'.
Successfully installed 'MvvmCross.PortableSupport 3.0.8.1'.
Installing 'MvvmCross.HotTuna.CrossCore 3.0.8.1'.
Successfully installed 'MvvmCross.HotTuna.CrossCore 3.0.8.1'.
Installing 'MvvmCross.HotTuna.StarterPack 3.0.8.1'.
Successfully installed 'MvvmCross.HotTuna.StarterPack 3.0.8.1'.
Adding 'MvvmCross.PortableSupport 3.0.8.1' to BLUBCNMOBL.Core.
Uninstalling 'MvvmCross.PortableSupport 3.0.8.1'.
Successfully uninstalled 'MvvmCross.PortableSupport 3.0.8.1'.
Install failed. Rolling back...
Install-Package : An item with the same key has already been added.
At line:1 char:1
Microsoft Visual Studio Premium 2012 (Version 11.0.60315.01 Update 2)
Nuget v 2.5
My guess is that one of the XML files you added git snafu'd during copy and paste.
Try deleting whatever you added and try adding them again.
Alternatively, it could be that someone else has added conflicting files? Eg xamarin have recently added pcl support so maybe they've added files?
To try collecting more info, you could try using the nuget command line - does that give you any more diagnostic info.