Unable to deploy WinJS apps - windows-8

I'm working on a WinJS app which works perfectly on one particular Windows 8 image, but will not deploy on another that we use.
Attempting to run any WinJS project from visual studio results in the following error:
Error 1 Error : DEP0800 : The required framework
"C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.WinJS.1.0\1.0
\Microsoft.WinJS.1.0.appx" failed to install.
Deployment Add operation on Package Microsoft.WinJS.1.0_1.0.9200.20602_neutral__8wekyb3d8bbwe
from: ([path]) failed with error 0x8007065E. See ]link] for help diagnosing app deployment
issues.
Attempting to sideload the app doesn't work either, producing a similar error about the WinJS dependency not being resolved.
Any ideas?

Try changing the package identifier in the manifest and see if that helps.

Is this the application already on the machine? When updating an existing application, I've run into this a few times and first uninstalling from the target machine and then deploying from VS works.

Related

"The library 'hostpolicy.dll' required" if run from deploy folder, but emitEntryPoint is true

I created a Web API project using the default ASP.NET Core Web Application (.NET Framework) template and then published to local folder using VS.
Now if I call dotnet application.exe in the console, I receive the following error:
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found
I have found in this answer and this issue on github, that the actual problem is a missing emitEntryPoint property. All is fine, except that my project.json already has "emitEntryPoint": true
What else can cause this error?
Once you publish the application and have a .exe file, you don't need to use dotnet anymore. The application is compiled!
Just run application.exe by double-clicking it, or launching it from the console.
Make sure you install the correct version of ASP Net Core in the server.
Here is the download link:
https://dotnet.microsoft.com/download/dotnet-core
We ran in the same problem building our app in CI. Apparantly a reference towards another unittest project slipped in. This Created the error at hand.

TFS error: when I'm giving checkin in my project one Rotativa.dll bug

I am using ASP .NET MVC 4 with Entity Framework 4.5
I downloaded the nuget something to be able to export my data pro PDF and found one called RotativaW7. The project is working normal but I try to check in the project to publish to TFS and is giving the following error message:
ERROR: Multiple errors occurred during the operation, the first of which is displayed below. A full error list is available in the Output Window.
..\packages\RotativaW7.1.5.4\RotativaW7.1.5.4.nupkg: Unable to write data to the transport connection: The cancellation of an existing connection was forced by the remote host.
nuget:
Install-Package RotativaW7 -Version 1.5.4
Could anyone help me solve this problem?
The nuget package contains an .exe, are you sure TFS allows you to check in executable files?

"Failed to sign" error when trying to create Windows store app package

I am struggling with this weird error all day.
I have developed a Windows store (Metro) app and successfully created an app package in the past.
But suddenly today, I can't create the app package and get an error message that says: Failed to sign 'C:\Users\XX\Documents\Visual Studio 2012\Projects\XX\AppPackages\XX_1.0.2.5_AnyCPU_Test\XX_1.0.2.5_AnyCPU.appx'. SignTool Error: An unexpected internal error has occurred.
The error details points me to the file Microsoft.AppXPackage.targets to the following line: <SignAppxPackage AppxPackageToSign="#(FinalAppxPackageItem)"
Who can I fix that and create the app package? Any help will be appreciated.
Did you applied the visual Studio 2012 update 2 ?
In this recent service pack (begenning if this month), their is some changes related to the app certifications. Anyway the upgrade could resolve your issue.
Nothing helped, finally I solved it by creating a completely new app, and then copying the files from the original app. The problem remained, so I have started to exclude folders from the project until I have found an unneeded folder that created the problem for some reason...
Finally fixed!

LC.exe" was not found?

currently i have changed the OS to windows 8 from Windows 7. While automation running 2005 project which refers LC.exe, wont compile successfully. But manually if i compile those project, get compiled.
please find the error i got while run those project from command prompt and also automating.
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1679,9): error MSB3091: Task failed because "LC.exe" was not found, or the .NET Framework SDK v2.0 is not installed. The task is looking for "LC.exe" in the "bin" subdirectory beneath the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework. You may be able to solve the problem by doing one of the following: 1.) Install the .NET Framework SDK v2.0. 2.) Manually set the above registry key to the correct location. 3.) Pass the correct location into the "ToolPath" parameter of the task.
Can anyone please help me ?
Re installing the .net framework 2.0 SDK would resolve this issue.
Framework SDK 2.0 refused to re-install on my machine but I was able to fix this by mucking about in the registry.

windows 8 store app - dependency issue - certification failed

We just submitted app in windows 8 store (metro style app) and got the error:
XXX takes a dependency on Microsoft Visual C++ Runtime Package framework but is missing the framework dependency declaration in the manifest.
We had our app working fine in release version but it was not getting accepted as package so we needed to migrate our app as Windows RTM. During that we had following entry
in manifest:
<Dependencies>
<PackageDependency Name="Microsoft.VCLibs.110" MinVersion="11.0.0.0" />
</Dependencies>
If we keep this, we get following error while build the app.
Error : DEP0700 : Registration of the app failed. Windows cannot install package 5d6f272d-c915-4de1-a9d6-c0c08d63ab94 because
this package depends on another package that could not be found. This package requires minimum version 11.0.50727.1 of framework Microsoft.VCLibs.110
published by any publisher to install. Provide the framework along with this package. (0x80073cf3) Test_App1
So we removed it and submit the app, it just got failed and gave following error.
XXXX takes a dependency on Microsoft Visual C++ Runtime Package framework but is missing the framework dependency declaration in the manifest.
We need to keep this package itself in the manifest but not getting it done.
I had similar problem.
Add a reference in your project to Microsoft Visual C++ Runtime Package
Just click on project i select Add reference and find this Package. Adding this should resolve your problem
The issue got resolved by updating
"Microsoft.VCLibs.110" to Name="Microsoft.VCLibs.110.00"
Just I've repaired the VS 2012 for windows 8 from Control panel > Programs and the designer works fine.