I'm getting "jarsigner.exe" exited with code 1 and I have to change the keystore location for which I don't know how to change in xamarin form in Windows bcoz I copied this project from MAC to Windows and I had a problem in PROGUARD as java.exe exited with error code 1 so I disabled PROGUARD and now jarsigner.exe error
1>C:\Program Files\Java\jdk1.8.0_131\\bin\jarsigner.exe -keystore "/Users/ekambaram/Desktop/CYBER/App Store - Cyb/Cyber Certifcate/my-release-key.keystore" -storepass 098765 -keypass 098765 -digestalg SHA1 -sigalg md5withRSA -signedjar bin\Debug\\com.Cyber.Cyber-Signed-Unaligned.apk E:\CyberPortable\CyberPortable\CyberPortable.Droid\obj\Debug\android\bin\com.Cyber.Cyber.apk Cyber
1>"jarsigner.exe" exited with code 1.
1>Done building project "CyberPortable.Droid.csproj" -- FAILED.
1>Build FAILED.
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
0) Open your Android project Options
1) Select Android Package Signing
2) Select configuration, that your trying to build
3) Check "Sign the .APK ..."
4) Select my-release-key.keystore file on your windows machine, you can copy it from your mac
Related
I'm having trouble deploying a service onto a local cluster.
...
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.47
-------- Package: Project: Project succeeded, Time elapsed: 00:00:01.8640999 --------
3>Started executing script 'Deploy-FabricApplication.ps1'.
3>powershell -NonInteractive -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -Command ". 'C:\repo\service\Scripts\Deploy-FabricApplication.ps1' -ApplicationPackagePath 'C:\repo\service\pkg\Debug' -PublishProfileFile 'C:\repo\service\PublishProfiles\Cloud.xml' -DeployOnly:$false -ApplicationParameter:#{} -UnregisterUnusedApplicationVersionsAfterUpgrade $false -OverrideUpgradeBehavior 'VetoUpgrade' -OverwriteBehavior 'SameAppTypeAndVersion' -SkipPackageValidation:$false -ErrorAction Stop"
3>Test-ServiceFabricApplicationPackage : The BuildLayout of the application in
3>C:\Users\username\AppData\Local\Temp\TestApplicationPackage_269749895297\o40yhtdd.vi3\Debug is invalid. Code is missing
3>for service Service.
3>At C:\Program Files\Microsoft SDKs\Service
3>Fabric\Tools\PSModule\ServiceFabricSDK\Publish-NewServiceFabricApplication.ps1:163 char:38
3>+ ... tionSuccess = (Test-ServiceFabricApplicationPackage $AppPkgPathToUse)
3>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3> + CategoryInfo : InvalidOperation: (:) [Test-ServiceFabricApplicationPackage], FabricImageBuilderValidati
3> onException
3> + FullyQualifiedErrorId : TestApplicationPackageErrorId,Microsoft.ServiceFabric.Powershell.TestApplicationPackage
3>
3>Finished executing script 'Deploy-FabricApplication.ps1'.
3>Time elapsed: 00:00:01.4326464
3>The PowerShell script failed to execute.
========== Build: 1 succeeded or up-to-date, 0 failed, 1 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
The above error message says "...\Debug is invalid. Code is missing for service<>". How exactly do I fix this problem? What code is missing?
+I did attempt creating that file path just in case, only to find out that the filepath seems to be randomly generated. That filepath did not exist before.
+I am running VSTS 2019 with admin privilege.
You are seeing the output of a Powershell command named Test-ServiceFabricApplicationPackage. It is reporting that your package layout has an issue:
The BuildLayout of the application in {folder} is invalid. Code is
missing
You can run this script yourself to reproduce, and fix the package layout issue. Compare your package with a working package, to see where the issue is. Maybe one of your manifest files is missing a CodePackage section?
I am publishing the asp.net web forms application build in asp.net 4.0
The application builds successfully but after build it gives the following error in the Output window
Generating AssemblyInfo.
Setting [assembly: AssemblyFileVersion("1.0.0.0")]
Setting [assembly: AssemblyVersion("1.0.0.0")]
Successfully generated AssemblyInfo file.
Running aspnet_merge.exe.
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\aspnet_merge.exe C:\Users\me\AppData\Local\Temp\WebSitePublish\project_folder-90277028\obj\Debug\AspnetCompileMerge\TempBuildDir -w project_name -copyattrs C:\Users\me\AppData\Local\Temp\WebSitePublish\project_folder-90277028\obj\Debug\AssemblyInfo\AssemblyInfo.dll -a aspnet_merge(0,0): Error occurred: An error occurred when merging assemblies: The relative virtual path 'VE/web_form.aspx' is not allowed here.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
Delete the following files from the project's main folder
App_Code.compiled
App_global.asax.compiled
and delete the following files from the "bin" folder
App_global.asax.dll
App_WebReferences.compiled
and the error will be solved. I am still looking for the reason behind this problem
This is re-Question about issue "SignTool Error: Access is denied." on my visual studio.
When I compile "SideLoad" application on Visual Studio 2017. This error happened again.
This is not first time for me. Previously, I could not resolve this error. Then, I bought New DELL PC :( Yes, During some period, It worked fine without any problem. but I saw same error again, Today !
Here is some additional information.
x64, Windows 10, Os ver 1703 , Build 15063.675.
Visual Studio 2017
This is new PC. Administrator, Local user, not MSN user.
Target version : Windows 10 Creator Update ( 10.0; Build 15063 )
Min version : Windows 10 November Update ( 10.0; Build 10586 )
After build of side load applicaiton, This error show ::
1> Bg7Uwp1 -> D:\develop\visualstudio2\xxx\Bg7Uwp1\Bg7Uwp1\bin\x86\Release\Bg7Uwp1.exe
1> Processing application code
1> Computing application closure and generating interop code
1> Loading 108 modules...
1> Generating code...
1> Interop code generated.
1> Generating serialization code
1> Compiling interop code
1> Generating System.Reflection.DispatchProxy proxy code.
1> Cleaning up unreferenced code
1> Generating native code
1> Generating fixups for native code
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(3787,5): error APPX1204: Failed to sign 'D:\develop\visualstudio2\xxx\Bg7Uwp1\Bg7Uwp1\bin\x86\Release\Bg7Uwp1_1.0.9.0_x86.appx'. SignTool Error: Access is denied.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(3787,5): error APPX1204: SignTool Error: An error occurred while attempting to sign: D:\develop\visualstudio2\xxx\Bg7Uwp1\Bg7Uwp1\bin\x86\Release\Bg7Uwp1_1.0.9.0_x86.appx
1>
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(3787,5): error APPX1204:
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Package: 0 succeeded, 2 failed ===========
========== App Bundle: 0 succeeded, 1 failed ===========
Please give me some idea. I tried everything from internet and here. but Previously, I could not resolve.. I can not buy new PC again !
Update 1
and After this trouble, I open new Uwp project and start sideload compile. it show same error ! This is same situation with previous PC ! Now, My Vs2017 can not make sideload for an
empty UWP project !!
in previous PC, I tried everything. Re-install VS2017, Re-install NuGet items. but it did not resolve at all. Only way was to buy new PC and re-install VS.
Update 2
With verbose mode of VS2017 compile output, I found , There is signtool.exe in SignAppxPackageExeFullPath=C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64\signtool.exe
with it, I tried to sign by myself.
Open command prompt tool with Admin
Run below command. I success to sign !??
Update 3
Next challenge is to add "Admin privilege" with "Signtool.exe" like this. but this was failed. Error was changed. "It need administrator privilege" and it make build error. not success.
Question
If I do sign manually, Is it enough ?
I signed with manual ( target file is : Bg7Uwp1_1.0.19.0_x64.appx ) "c:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64\signtool.exe" sign /fd SHA256 /a /f Bg7Uwp1_TemporaryKey.pfx bin\x64\Release\Bg7Uwp1_1.0.19.0_x64.appx
Done Adding Additional Store
Successfully signed: bin\x64\Release\Bg7Uwp1_1.0.19.0_x64.appx
I copy all "Release" folder to other PC.
I copy "Bg7Uwp1_TemporaryKey.pfx" to other PC too.
On 2nd PC, I install the certification key first "Bg7Uwp1_TemporaryKey.pfx". Success.
I tried to install with clicking Bg7Uwp1_1.0.19.0_x64.appx
I can not installed : (
Either you need a new certificate installed for this app package, or you need a new app package with trusted certificates. Your system administrator or the app developer can help. A certificate chain processed, but terminated in a root certificate which isn't trusted (0x800B0109)
Find! a solution but Not perfect yet.
with above error, I read this.. This is a step to install sideload application to PC. I follow this. I can resolve the error 0x800B0109.
In File Explorer, right-click on the app package, and in the pop-up context menu select Properties.
In the Properties dialog, select the Digital Signatures tab.
In the Signature list, select the signature and then click the Details button.
In the Digital Signature Details dialog, click the View Certificate button.
In the Certificate dialog, click the Install Certificate… button.
In the Certificate Import Wizard, select Local Machine and then click Next. You will need to grant administrator privileges to continue.
Select Place all certificates in the following store and browse to the Trusted People store.
Click Next, then click Finish to complete the wizard.
after this step, I can install my Sideload to my Own PC. but To install 2nd PC has error. ( New error 0x80073CF3 ) . but I get big improvement !
Update 4 ( Not resolve still ! )
Now, TO install other PC is not impossibile. Dependencies file can not create by VS. because signtool has error.I have to install other PC. Without it, All my time would be waste.. :( please help me...
This is old dependencies files. I have to make it for my ver 19.
Update 5
I check What Vs2017 is doing in background. I used ProcessMonitor. and She execute this command. It look like no problem. I tried with Admin-MS-prompt, It success.
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64\signtool.exe" sign /fd sha256 /f "Bg7Uwp1_TemporaryKey.pfx" "D:\develop\visualstudio2\shinwatec\Bg7Uwp1\Bg7Uwp1\bin\x64\Release\Bg7Uwp1_1.0.19.0_x64.appx"
but Without Admin, I got same error with VS2017 !
I found the solution ! and fix it.
with ProcessMonitor, I found this line.
signtool.exe has "Access denied" to access %appdata%\local\Temp
I check the folder permission. There is no permission on the Temp folder. I added my own user Networkname\username .
After this. I success to fix this issue. Now my visualStudio 2017 can make sideLoad application ! Yes, I do not need to buy new PC again :)
thank you. Mr. BugFinder.
I am compile a sample C# .NET project using build.cmd file. The content of the build.cmd is as bellow.
build.cmd
#echo off
setlocal
set devenv="c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com"
del *.log >nul
%devenv% WindowsFormsApplication3.sln /rebuild "Release" /out WindowsFormsApplication3.log
if ERRORLEVEL 1 GOTO failed
findstr /C:"========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========" WindowsFormsApplication3.log >nul
if ERRORLEVEL 1 GOTO failed
echo *** BUILD SUCCESSFUL ***
pause
goto :EOF
:failed
echo.
echo.
echo *** BUILD FAILED ***
pause
Project compiles properly. But when i opened the log file it hassome error
WindowsFormsApplication3.log
1>------ Rebuild All started: Project: WindowsFormsApplication3, Configuration: Release Any CPU ------
Package 'Code Analysis Package' failed to load.
1> WindowsFormsApplication3 -> E:\Bin\junk\WindowsFormsApplication3\WindowsFormsApplication3\bin\Release\WindowsFormsApplication3.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
I don't why i am getting this error (Package 'Code Analysis Package' failed to load) in log file.
I searched online but did not get any help.
how to solve this problem?
Note: WindowsFormsApplication3 is a sample project. i Opened VS2015 and New Project -> Visual C# -> Windows Form Application. I did not change any thing in the project.
Give Microsoft a chance to analyze and fix the problem.
I created a connect issue because the problem occurs on two PCs that both have vanilla VS 2015 installations.
https://connect.microsoft.com/VisualStudio/feedback/details/2423616/package-code-analysis-package-failed-to-load
Within the next few weeks, a guy from Microsoft will probably comment on that. You can followup there.
The other day I started up my monogame project and started it up to do a quick play test. It wouldn't work. I was getting 2 errors.
Error 1 The command "SETX MONOGAME_PLATFORM "PSM" > NUL" exited with code 9009. GameName1
Error 2 Metadata file 'C:\Users\Sean\Desktop\Prog\Learning\3D Learning\GameName1\GameName1\bin\PSM\IgnoreMe.dll' could not be found C:\Users\Sean\Desktop\Prog\Learning\3D Learning\3D Learning\CSC 3D Learning
And here is the output from the build.
1>------ Build started: Project: Learnplscon, Configuration: PSM Any CPU ------
1> MonoGame Platform PSM
1> 'SETX' is not recognized as an internal or external command,
1> operable program or batch file.
1>C:\Program Files (x86)\MSBuild\MonoGame\v3.0\MonoGame.ContentPipeline.targets(22,7): error MSB3073: The command "SETX MONOGAME_PLATFORM "PSM" > NUL" exited with code 9009.
2>------ Build started: Project: learnpls, Configuration: Debug x86 ------
2>CSC : error CS0006: Metadata file 'C:\Users\Sean\Desktop\Prog\Learning\learnpls\Learnplscon\Learnplscon\bin\PSM\IgnoreMe.dll' could not be found
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
But Building from last successful build works.
I did not change anything. And any new project I make gets the same problem.
The problem only happens when I add a reference to my content project.
(Referenced project this way: monogame-managing-content )
I made a new project, ran it, everything worked fine. Created a mono game content project, ran it and everything worked fine. Then I added the reference and got the errors. And when I remove the reference Error 2 goes away but error 1 is still there, but the project will run fine.
I have tried reinstalling xna, and monogame. Also tried to reinstall visual studios. I spent all night trying to find an answer online but came up with nothing.
I am using the most recent version of XNA and Monogame 3.2, and I am using windows 8.1.
In case you're still having this problem, or someone else finds the question (like I did trying to solve this a little while ago): for me, the problem was that my windows/system32 directory wasn't in my 'path' environment variable. That's where the setx.exe program resides, and the XNA content project seems to assume that it can call setx without qualifying the path.
Note: Visual Studio seems to need to be restarted after you've added your /system32 directory to the path.