C#ClickOnce ftp无法正常工作

时间:2014-06-27 13:47:40

标签: c# ftp clickonce

经过一些研究后,我在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
  6. 所以主要的问题是:什么停止安装设置以及我做错了什么?

    有完整的错误记录:

    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.
    

1 个答案:

答案 0 :(得分:1)

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