清单中的引用与下载的程序集prog1.exe的标识不匹配。

编程入门 行业动态 更新时间:2024-10-22 21:41:26
本文介绍了清单中的引用与下载的程序集prog1.exe的标识不匹配。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Hello社区 我有一个Windows C#应用程序。 我无法找到如何添加ReportViewer 11,但我找到了一个包含ReportViewer11并复制该项目的项目,并在需要报告时在其中创建了一个报告。 我在每个项目中重命名了命名空间以匹配每个项目中的报告名称,除了。 问题是,当我尝试运行ClickOnce将项目部署到其他计算机上时,我收到一条错误消息,指出: 问题是,当我尝试运行ClickOnce将项目部署到其他计算机上时,我收到一条错误消息,说明: "清单中的引用与下载的程序集prog1.exe的标识不匹配。" 要清除错误: ; 1)我在调试 配置中构建了程序 2)"创建没有清单的申请" 3)删除项目bin文件夹中的所有内容,然后重建项目 4)选择"启用ClickOnce安全 设置" 程序编译但 当我尝试在计算机上安装时无论我做什么,我仍然会收到相同的错误消息。 这个错误意味着什么,我该怎么做摆脱它,以便我可以安装该应用程序? 谢谢你 Shabeaut

解决方案

嗨Shabeaut,

>>我无法找到如何添加ReportViewer 11

你的VS版本是什么?你可以通过Toolbox-> Reporting-ReportViewer获得ReportViewer。如果没有,我想你可以从Nuget安装ReportViewer。您可以参考下面的链接来安装您想要的内容:

www.nuget/packages?q=Microsoft.ReportViewer

>>我找到了一个项目,它有ReportViewer11并复制了该项目,并在需要报告时在其中创建了一个报告。

我假设清单已嵌入您的原始项目中。我建议您打开Visual Studio IDE并从菜单中打开可执行文件(File-> Open-> File),删除RT_MANIFEST并保存可执行文件。

您可以参考以下链接获取更多信息。

#清单中的参考与下载的程序集的标识不匹配

blogs.msdn.microsoft/vsnetsetup / 2013/11/15 / reference-in-the-manifest-does-the-identity-of-downloads-assembly /

最诚挚的问候,

爱德华

Hello Community I have a Windows C# application. I couldn’t find out how to add ReportViewer 11 but I found a project that had ReportViewer11 and copied that project and created a report in it whenever I needed a report. I renamed the namespace in each project to match the report name in each project except . The problem is that when I try to run ClickOnce to deploy the project onto other computers I get a error message stating: The problem is that when I try to run ClickOnce to deploy the project onto other computers I get a error message stating: "Reference in the manifest does not match the identity of the downloaded assembly prog1.exe." To get rid of the error: 1) I built the program in debug configuration 2) "Create application without a manifest" 3) delete everything in the projects bin folder then rebuilt the project 4) Selected "Enabled ClickOnce security settings" The program compiles but when I try to install on the computer No matter what I do however I still keep getting the same error message. What does this error mean and how do I get rid of it so I can install the application? Thank you Shabeaut

解决方案

Hi Shabeaut,

>> I couldn’t find out how to add ReportViewer 11

What is your VS version? Could you get ReportViewer by Toolbox->Reporting-ReportViewer. If not, I think you could install ReportViewer from Nuget. You could refer the link below to install what you want:

www.nuget/packages?q=Microsoft.ReportViewer

>> I found a project that had ReportViewer11 and copied that project and created a report in it whenever I needed a report.

I assume the manifest has been embedded in your original project. I suggest you open Visual Studio IDE and Open the executable file from the menu (File—>Open—>File), delete RT_MANIFEST and save the executable file.

You could refer the link below for more information.

# Reference in the manifest does not match the identity of the downloaded assembly

blogs.msdn.microsoft/vsnetsetup/2013/11/15/reference-in-the-manifest-does-not-match-the-identity-of-the-downloaded-assembly/

Best Regards,

Edward

更多推荐

清单中的引用与下载的程序集prog1.exe的标识不匹配。

本文发布于:2023-11-03 16:16:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555550.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:清单   标识   不匹配   程序   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!