Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D697110A1 for ; Mon, 21 Jul 2014 19:42:43 +0000 (UTC) Received: (qmail 50465 invoked by uid 500); 21 Jul 2014 19:42:42 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 50409 invoked by uid 500); 21 Jul 2014 19:42:42 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 50297 invoked by uid 99); 21 Jul 2014 19:42:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2014 19:42:42 +0000 Date: Mon, 21 Jul 2014 19:42:42 +0000 (UTC) From: "Jesse MacFadyen (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-7144) Windows8 run fails if replace default certificate MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-7144?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:all-tabpanel ] Jesse MacFadyen resolved CB-7144. --------------------------------- Resolution: Fixed Fixed in pull req from Sergey, thanks! > Windows8 run fails if replace default certificate > ------------------------------------------------- > > Key: CB-7144 > URL: https://issues.apache.org/jira/browse/CB-7144 > Project: Apache Cordova > Issue Type: Bug > Components: Windows 8 > Reporter: Sergey Grebnov > Assignee: Jesse MacFadyen > > This occurs in the following situations: > 1.=09User has replaced his original certificate (.pfx) with another one, = or changed his certificate inside Visual Studio. Cordova script incorrectly= handles this situation so runs .ps file with =E2=80=98=E2=80=93force=E2=80= =99 parameter (since we test for Developer license only).=20 > 2.=09(unlikely) Publisher certificate was removed from local certificate= s=E2=80=99 store (manually or automatically). > 3.=09(unlikely) Some error occurred during first launch of =E2=80=98cordo= va run windows8=E2=80=99 on clean machine, so Developer license was acquire= d but no publisher certificate was installed. > In all situations above 'cordova run windows8' will fail with the followi= ng error > Before installing this app, you need to do the following: > - Install the signing certificate > You must provide administrator credentials to proceed. Please run this s= cript > ithout the -Force parameter or from an elevated PowerShell window. > powershell -ExecutionPolicy RemoteSigned ". .\\cordova\lib\WindowsStoreAp= pUtils > ps1; Start-Locally 'io.cordova.hellocordova'" > ActivateApplication: ! > Get-AppxPackageManifest : Cannot validate argument on parameter 'Package'= . The > argument is null or empty. Provide an argument that is not null or empty,= and > then try the command again. > At C:\Users\clantz\Documents\cordova\win8run\platforms\windows8\cordova\l= ib\Win > dowsStoreAppUtils.ps1:108 char:41 > + $manifest =3D Get-appxpackagemanifest $package > + ~~~~~~~~ > + CategoryInfo : InvalidData: (:) [Get-AppxPackageManifest],= Para > meterBindingValidationException > + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.= Windo > ws.Appx.PackageManager.Commands.GetAppxPackageManifestCommand > Exception calling "ActivateApplication" with "4" argument(s): "Value does= not > fall within the expected range." > At C:\Users\clantz\Documents\cordova\win8run\platforms\windows8\cordova\l= ib\Win > dowsStoreAppUtils.ps1:115 char:5 > + > $appActivator.ActivateApplication($applicationUserModelId,$null,[StoreApp= Run > ... > + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~ > ~~~ > + CategoryInfo : NotSpecified: (:) [], MethodInvocationExcep= tion > + FullyQualifiedErrorId : ArgumentException > Error: C:\Users\clantz\Documents\cordova\win8run\platforms\windows8\cordo= va\run > bat: Command failed with exit code 2 > at ChildProcess.whenDone (C:\Users\clantz\AppData\Roaming\npm\node_mo= dules\ > ordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23) > at ChildProcess.EventEmitter.emit (events.js:98:17) > at maybeClose (child_process.js:735:16) > at Process.ChildProcess._handle.onexit (child_process.js:802:5) -- This message was sent by Atlassian JIRA (v6.2#6252)