【问题标题】:C# ClickOnce ftp not working properlyC# ClickOnce ftp 无法正常工作
【发布时间】:2014-06-27 13:47:39
【问题描述】:

经过一些研究,我在 ftp 上发布了我的文件。

但是当我从网上下载“setup.exe”文件并尝试运行它时,我收到错误“无法启动应用程序”

我查找了相同的错误,但所有答案都是针对其他错误

错误摘要是说我的清单可能无效或文件无法打开,但是为什么其他人可以使用 ftp,请创建其工作的指南。

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of http://www.marzuk.site11.com/webtest/ClickOnceWebTest.application resulted in exception. Following failure messages were detected:
        + Exception reading manifest from http://www.marzuk.site11.com/webtest/Application%20Files/ClickOnceWebTest_1_0_0_0/ClickOnceWebTest.exe.manifest: the manifest may not be valid or the file could not be opened.
        + Unexpected end of file has occurred. The following elements are not closed: br, br. Line 3, position 254.

发布的一些属性:

  1. 使用的软件 Visual Studio 2013
  2. 虚拟主机http://www.000webhost.com/
  3. 发布文件夹位置ftp://web.site11.com/public_html/webtest/
  4. 安装文件夹地址http://www.web.site11.com/webtest/
  5. 部署网页default.htm

所以主要问题是:什么停止了安装以及我做错了什么?

有完整的错误日志:

PLATFORM VERSION INFO   Windows             : 6.2.9200.0 (Win32NT)  Common Language Runtime     : 4.0.30319.34014   System.Deployment.dll       :
4.0.30319.33440 built by: FX45W81RTMREL     clr.dll             : 4.0.30319.34014 built by: FX45W81RTMGDR   dfdll.dll           : 4.0.30319.33440 built by: FX45W81RTMREL   dfshim.dll          : 6.3.9600.16384 (winblue_rtm.130821-1623)

SOURCES     Deployment url          : http://www.web.site11.com/webtest/ClickOnceWebTest.application
                        Server      : Apache    Deployment Provider url     : http://www.web.site11.com/webtest/ClickOnceWebTest.application

IDENTITIES  Deployment Identity     : ClickOnceWebTest.application, Version=1.0.0.0, Culture=en-US, PublicKeyToken=b3b9502bd69c8e4f, 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 http://www.web.site11.com/webtest/ClickOnceWebTest.application resulted in exception. Following failure messages were detected:         + Exception reading manifest from http://www.web.site11.com/webtest/Application%20Files/ClickOnceWebTest_1_0_0_0/ClickOnceWebTest.exe.manifest: the manifest may not be valid or the file could not be opened.      + Unexpected end of file has occurred. The following elements are not closed: br, br. Line 3, position 254.

COMPONENT STORE TRANSACTION FAILURE SUMMARY     No transaction error was detected.

WARNINGS    There were no warnings during this operation.

OPERATION PROGRESS STATUS   * [2014-06-27 16:09:22] : Activation of http://www.web.site11.com/webtest/ClickOnceWebTest.application has started.     * [2014-06-27 16:09:23] : Processing of deployment manifest has successfully completed.     * [2014-06-27 16:09:23] : Installation of the application has started.

ERROR DETAILS   Following errors were detected during this operation.   * [2014-06-27 16:09:23] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
        - Exception reading manifest from http://www.web.site11.com/webtest/Application%20Files/ClickOnceWebTest_1_0_0_0/ClickOnceWebTest.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.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, 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.Xml.XmlException
        - Unexpected end of file has occurred. The following elements are not closed: br, br. Line 3, position 254.
        - Source: System.Xml
        - Stack trace:          at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)           at System.Xml.XmlTextReaderImpl.ParseElementContent()           at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()          at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()          at System.Xml.XmlTextReaderImpl.Skip()          at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()          at System.Xml.XmlTextReaderImpl.Skip()          at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()          at System.Xml.XmlCharCheckingReader.Read()          at System.Xml.XsdValidatingReader.Read()            at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)

COMPONENT STORE TRANSACTION DETAILS     No transaction information is available.

【问题讨论】:

    标签: c# ftp clickonce


    【解决方案1】:

    您是否检查过清单文件是否有效?网络服务器是否配置为提供 .manifest 文件?需要在服务器上进行一些配置才能部署 clickonce 应用程序。尝试先将其部署到本地 Web 服务器。

    【讨论】:

    • 这是一个边缘评论。我不会投反对票,但这实际上是在提出澄清问题并提供建议而不是答案。
    • 我通过 filezilla 从网上下载了清单,一切正常。但是关于你说的是什么配置,从来没有做过任何配置。
    • 为什么对那些只想提供帮助的人投反对票?
    • 您的网络服务器需要知道如何处理 .manifest 文件。在 IIS 下,您可以将其添加为 mime 类型(据我回忆)。否则服务器不知道如何将其发回给客户端,或者即使允许它发回。
    • 哦,我会进一步研究这个。谢谢。
    猜你喜欢
    • 1970-01-01
    • 2015-03-07
    • 2011-08-31
    • 2020-08-01
    • 2013-08-26
    • 2010-11-29
    • 2015-02-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多