gpt4 book ai didi

ClickOnce list 和部署问题

转载 作者:行者123 更新时间:2023-12-05 08:02:45 25 4
gpt4 key购买 nike

有些用户(但不是全部)在尝试从特定 Web 服务器安装 ClickOnce 应用程序时遇到错误。这是他们得到的错误:

PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3615 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3615 (GDR.050727-3600) dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000) dfshim.dll : 4.0.31106.0 (Main.031106-0000) SOURCES Deployment url : http://TheCorrectDeploymentURL/MyApp.application ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://TheCorrectDeploymentURL/MyApp.application resulted in exception. Following failure messages were detected: + Exception reading manifest from https://TheWrongServer.TheUrlForLoggingIntoTheVPN.com/url_3/welcome.cgi: the manifest may not be valid or the file could not be opened. + The 'link' start tag on line 14 does not match the end tag of 'noscript'. Line 15, position 3. COMPONENT STORE TRANSACTION FAILURE SUMMARY No transaction error was detected. WARNINGS There were no warnings during this operation. OPERATION PROGRESS STATUS * [8/24/2010 1:15:12 PM] : Activation of http://TheCorrectDeploymentURL.com/MyApp.application has started. ERROR DETAILS Following errors were detected during this operation. * [8/24/2010 1:15:37 PM] System.Deployment.Application.InvalidDeploymentException (ManifestParse) - Exception reading manifest from http://TheCorrectDeploymentURL.com/publish.htm

它正试图从错误的位置读取 list 。当 ClickOnce 认为 VPN 的网页是应用程序的 list 时,就会发生异常。知道为什么 Clickonce 试图从 VPN 连接的 URL 而不是部署 clickonce 应用程序的服务器读取 list 吗?

谢谢!

最佳答案

list 位置在 ClickOnce 部署的 .application 文件中定义(在 dependentAssembly 标记中)。如果您通过在项目的属性中定义它来生成它,我不确定如何将其混淆。此外,一旦生成 list ,您就无法更改它,因为哈希码存储在其中以对其进行验证。

我会检查 .application 文件并验证其中定义的 URL 是否正确,以及它的根是否与 .application 文件的路径相匹配。事实上, list 文件的路径通常被定义为相对 URL,这意味着如果用户能够访问 .application 文件,他们就没有理由不能访问 list 文件.

除非——您是否在存储 .application 文件的文件夹下的子文件夹上定义了不同的安全性?也许 Web 服务器试图让用户在没有适当的子文件夹安全访问权限但可以访问根文件夹时登录。

关于ClickOnce list 和部署问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3560801/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com