Asked by:
Erro na instalação utilizando ClickOnce

Question
-
Em algumas máquinas estou tendo o problema na instalação.
Funciona normalmente em máquinas com WinXP, Win 7 e Win 10. Mas eu alguns casos ocorre o erro abaixo:
INFORMAÇÕES SOBRE VERSÕES DE PLATAFORMAS
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.7.2117.0 built by: NET47REL1LAST
clr.dll : 4.7.2117.0 built by: NET47REL1LAST
dfdll.dll : 4.7.2117.0 built by: NET47REL1LAST
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
ORIGENS
URL da Implantação : APP
Servidor : nginx/1.10.2
X-Powered-By : ASP.NET
URL do Provedor de Implantação : APP
URL do Aplicativo : URL/APP.exe.manifest
Servidor : nginx/1.10.2
X-Powered-By : ASP.NET
IDENTIDADES
Identidade da Implantação : APP.application, Version=2.0.1.203, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil
Identidade do Aplicativo : APP.exe, Version=2.0.1.203, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil, type=win32
RESUMO DO APLICATIVO
* Aplicativo instalável.
RESUMO DOS ERROS
Um resumo dos erros pode ser encontrado a seguir. Os detalhes desses erros são relacionados posteriormente no log.
* Exceção na ativação de URL/APP.application. As seguintes mensagens de erro foram detectadas:
+ Exceção ao carregar o manifesto do arquivo Newtonsoft.Json.dll: talvez o manifesto não seja válido ou o arquivo não pôde ser aberto.
+ O arquivo Newtonsoft.Json.dll não é um PE (executável portátil) válido.
+ O arquivo {0} não é um PE (executável portátil) válido.
RESUMO DA FALHA DA TRANSAÇÃO DE ARMAZENAMENTO DO COMPONENTE
Nenhum erro de transação foi detectado.
AVISOS
* O manifesto deste aplicativo não tem uma assinatura. A validação da assinatura hash será ignorada.
* O manifesto deste aplicativo não tem uma assinatura. A validação da assinatura hash será ignorada.
STATUS DO ANDAMENTO DA OPERAÇÃO
* [21/11/2017 10:50:05] : A ativação de URL/APP.application foi iniciada.
* [21/11/2017 10:50:06] : O processamento do manifesto da implantação foi concluído com êxito.
* [21/11/2017 10:50:06] : A instalação do aplicativo foi iniciada.
* [21/11/2017 10:50:06] : O processamento do manifesto do aplicativo foi concluído com êxito.
* [21/11/2017 10:50:08] : Encontrada versão 4.0.30319 do runtime compatível.
* [21/11/2017 10:50:08] : A solicitação de confiança e de detecção da plataforma foi concluída.
DETALHES DOS ERROS
Os erros a seguir foram detectados durante esta operação.
* [21/11/2017 10:50:17] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exceção ao carregar o manifesto do arquivo Newtonsoft.Json.dll: talvez o manifesto não seja válido ou o arquivo não pôde ser aberto.
- Origem: System.Deployment
- Rastreamento de pilha:
em System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
em System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
em System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
em System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
em System.Deployment.Application.FileDownloader.OnModified()
em System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
em System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
em System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
em System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
em System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
em System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
em System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
em System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
em System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Exceção interna ---
System.IO.IOException
- O arquivo Newtonsoft.Json.dll não é um PE (executável portátil) válido.
- Origem: System.Deployment
- Rastreamento de pilha:
em System.Deployment.Application.PEStream.ConstructFromFile(String filePath, Boolean partialConstruct)
em System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
--- Exceção interna ---
System.ComponentModel.Win32Exception
- O arquivo {0} não é um PE (executável portátil) válido.
- Origem: System.Deployment
- Rastreamento de pilha:
em System.Deployment.Application.PEStream.DosHeader..ctor(FileStream file)
em System.Deployment.Application.PEStream.ConstructPEImage(FileStream file, Boolean partialConstruct)
em System.Deployment.Application.PEStream.ConstructFromFile(String filePath, Boolean partialConstruct)
DETALHES DA TRANSAÇÃO DE ARMAZENAMENTO DO COMPONENTE
Nenhuma informação de transação está disponível.
- Moved by Stanly Fan Monday, December 4, 2017 8:09 AM
Tuesday, November 28, 2017 6:07 PM
All replies
-
Hi friend,
Welcome to ClickOnce forum.
Sorry that I can not understand what you mean, since this forum is an English forum, could you please provide your question with English?
Thanks for your understanding.
Regards,
Stanly
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, November 29, 2017 5:46 AM