将reportviewercontrol 14添加到项目后安装click-once的问题 [英] Problem with installing click-once after adding reportviewercontrol 14 to the project
问题描述
你好每一个
我有一个项目通过点击一次部署并发布然后安装得很好
然后在通过NuGet添加ReportViewerControl后,它发布了确认
当我尝试安装它时出现以下错误:
无法继续。应用程序格式不正确。
详情:
平台版本信息
Windows:10.0.14393.0(Win32NT )
公共语言运行时:4.0.30319.42000
System.Deployment.dll:4.6.1586.0内建者:NETFXREL2
clr.dll:4.6 .1637.0建立者:NETFXREL3STAGE
dfdll.dll:4.6.1586.0内建者:NETFXREL2
dfshim.dll:10.0.14393.0(rs1_release.160715-1616)
来源
部署网址
:file:/// D:/Projects/Published/UltimatePharmaForms.application
IDENTITIES
部署身份
:UltimatePharmaForms.application,Version = 17.3.30.1138,Culture = neutral,PublicKeyToken = 0000000000000000,processorArchitecture = msil
申请概要
*可安装的申请表。
错误摘要
以下是错误摘要,这些错误的详细信息将在后面的日志中列出。
*激活D:\ Project] \Published\UltimatePharmaForms.application导致异常。检测到以下失败消息:
+文件中的异常读取清单:/// D:/Projects/Published/Application%20Files/UltimatePharmaForms_17_3_30_1138/UltimatePharmaForms.exe.manifest:清单可能无效或无法打开文件。
+清单的解析和DOM创建导致错误。解析后发现错误:
-HRESULT:0x80070c81
起始行:0
起始栏:0
主机文件:
+来自HRESULT的异常:0x80070C81
组件商店交易失败概要
没有交易错误是检测到。
警告
*此应用程序的清单没有签名。签名验证将被忽略。
操作进度状态
* [31/03/2017 10:48:49 PM]:激活D:\Projects\Published\UltimatePharmaForms.application已经开始。
* [31/03/2017 10:48:49 PM]:部署清单的处理已成功完成。
* [31/03/2017 10:48:49 PM]:应用程序的安装已经开始。
错误详情
在此操作期间检测到以下错误。
* [31/03/2017 10:48:49 PM] System.Deployment.Application.InvalidDeploymentException(ManifestParse)
- 来自file:/// D:/Projects/Published/Application%20Files/UltimatePharmaForms_17_3_30_1138/UltimatePharmaForms.exe.manifest的异常读取清单:清单可能无效或文件无法打开。
- 来源:System.Deployment
- 堆栈跟踪:
在System.Deployment.Application.ManifestReader.FromDocument(String localPat h,ManifestType manifestType,Uri sourceUri)
在System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest,String targetDir,Uri deploymentUri,IDownloadNotification notification,DownloadOptions options,Uri& appSourceUri,String& appManifestPath)
在System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState,ActivationDescription actDesc,Int64 transactionId,TempDirectory& downloadTemp)
在System.Deployment.Application.ApplicationActivator .InstallApplication(SubscriptionState& subState,ActivationDescription actDesc)
在System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri,Boolean isShortcut,String textualSubId,String deploymentProviderUrlFromExtension,BrowserSettings browserSettings,String& errorPageUrl)
在System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(对象状态)
---内部异常---
System.Deployment.Application。 InvalidDeploymentException(ManifestParse)
- 清单的解析和DOM创建导致错误。解析后发现错误:
-HRESULT:0x80070c81
起始行:0
起始栏:0
主机文件:
- 来源:System.Deployment
- 堆栈跟踪:
在System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream( System.Deployment.Application.Manifest.AssemblyManifest..ctor(FileStream fileStream)
在System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType,Uri sourceUri)
---内部异常---
System.Runtime.InteropServices.COMException
- 来自HRESULT的异常: 0x80070C81
- 来源:System.Deployment
- 堆栈跟踪:
在System.Deployment.Internal.Isolation.IsolationInterop.CreateCMSFromXml(Byte [ ]缓冲区,UInt32 bufferSize,IManifestParseErrorCallback回调,Guid& riid)
在System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSF romStream(Stream stream)
COMPONENT STORE TRANSACTION DETAILS
没有交易信息。
我对此一无所知:(
你能帮我弄清楚为什么会出现这个错误以及如何解决这个错误吗?
谢谢非常。
我尝试了什么:
禁用签名点击一次清单
禁用签署程序集
将目标框架更改为4.6.1
将目标框架更改为4.6.2
我在这里找到了解决方案:
在将ReportViewerControl 14添加到项目后安装Click-Once的问题 [ ^
Hello every one
I had a project that deployed via click-once and published and then installed just fine
then after adding ReportViewerControl via NuGet , it is published Ok
when I tried to install it I got the following error :
Cannot continue. The application is improperly formatted.
Details :
PLATFORM VERSION INFO
Windows : 10.0.14393.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.6.1586.0 built by: NETFXREL2
clr.dll : 4.6.1637.0 built by: NETFXREL3STAGE
dfdll.dll : 4.6.1586.0 built by: NETFXREL2
dfshim.dll : 10.0.14393.0 (rs1_release.160715-1616)
SOURCES
Deployment url
: file:///D:/Projects/Published/UltimatePharmaForms.application
IDENTITIES
Deployment Identity
: UltimatePharmaForms.application, Version=17.3.30.1138, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of D:\Projects\Published\UltimatePharmaForms.application resulted in exception. Following failure messages were detected:
+ Exception reading manifest from file:///D:/Projects/Published/Application%20Files/UltimatePharmaForms_17_3_30_1138/UltimatePharmaForms.exe.manifest: the manifest may not be valid or the file could not be opened.
+ Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed:
-HRESULT: 0x80070c81
Start line: 0
Start column: 0
Host file:
+ Exception from HRESULT: 0x80070C81
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
* The manifest for this application does not have a signature. Signature validation will be ignored.
OPERATION PROGRESS STATUS
* [31/03/2017 10:48:49 PM] : Activation of D:\Projects\Published\UltimatePharmaForms.application has started.
* [31/03/2017 10:48:49 PM] : Processing of deployment manifest has successfully completed.
* [31/03/2017 10:48:49 PM] : Installation of the application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [31/03/2017 10:48:49 PM] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Exception reading manifest from file:///D:/Projects/Published/Application%20Files/UltimatePharmaForms_17_3_30_1138/UltimatePharmaForms.exe.manifest: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed:
-HRESULT: 0x80070c81
Start line: 0
Start column: 0
Host file:
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream(Stream stream)
at System.Deployment.Application.Manifest.AssemblyManifest..ctor(FileStream fileStream)
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
--- Inner Exception ---
System.Runtime.InteropServices.COMException
- Exception from HRESULT: 0x80070C81
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IsolationInterop.CreateCMSFromXml(Byte[] buffer, UInt32 bufferSize, IManifestParseErrorCallback Callback, Guid& riid)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream(Stream stream)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
I don't understand anything from it :(
Can you please help me figure out why this error is happening and how to solve it ?
Thanks very much.
What I have tried:
Disable signing the click-once manifest
Disable signing the assembly
Change Target Framework to 4.6.1
Change Target Framework to 4.6.2
I found the solution here :
Problem With Installing Click-Once After Adding ReportViewerControl 14 To the Project[^]
这篇关于将reportviewercontrol 14添加到项目后安装click-once的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!