Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2010 ClickOnce安装文件夹始终为C:\Downloads?_Visual Studio 2010_Clickonce - Fatal编程技术网

Visual studio 2010 ClickOnce安装文件夹始终为C:\Downloads?

Visual studio 2010 ClickOnce安装文件夹始终为C:\Downloads?,visual-studio-2010,clickonce,Visual Studio 2010,Clickonce,我正在尝试将应用程序部署到文件服务器并生成一个html文件,以便用户可以从此页面下载我的应用程序。然而,由于某些原因,当从该页面下载文件时,安装文件夹似乎变得不正常。下载链接到正确的文件(已存在),但当clickonce清单运行时,它找不到应用程序文件,因为它在我的本地下载文件夹中查找。我觉得这对我来说是一个愚蠢的疏忽,但我无法理解。有什么建议吗 PLATFORM VERSION INFO Windows : 6.1.7601.65536 (Win32NT

我正在尝试将应用程序部署到文件服务器并生成一个html文件,以便用户可以从此页面下载我的应用程序。然而,由于某些原因,当从该页面下载文件时,安装文件夹似乎变得不正常。下载链接到正确的文件(已存在),但当clickonce清单运行时,它找不到应用程序文件,因为它在我的本地下载文件夹中查找。我觉得这对我来说是一个愚蠢的疏忽,但我无法理解。有什么建议吗

    PLATFORM VERSION INFO
    Windows             : 6.1.7601.65536 (Win32NT)
    Common Language Runtime     : 4.0.30319.18408
    System.Deployment.dll       : 4.0.30319.18408 built by: FX451RTMGREL
    clr.dll             : 4.0.30319.18408 built by: FX451RTMGREL
    dfdll.dll           : 4.0.30319.18408 built by: FX451RTMGREL
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
    Deployment url          : file:///C:/Users/USERNAME/Downloads/DeploymentTest.application

IDENTITIES
    Deployment Identity     : DeploymentTest.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e1db13b08bdedb27, processorArchitecture=x86

APPLICATION SUMMARY
    * Online only application.

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\Users\Z50BXH\Downloads\DeploymentTest.application resulted in exception. Following failure messages were detected:
        + Downloading file:///C:/Users/Z50BXH/Downloads/Application Files/DeploymentTest_1_0_0_0/DeploymentTest.exe.manifest did not succeed.
        + Could not find a part of the path 'C:\Users\USERNAME\Downloads\Application Files\DeploymentTest_1_0_0_0\DeploymentTest.exe.manifest'.
        + Could not find a part of the path 'C:\Users\USERNAME\Downloads\Application Files\DeploymentTest_1_0_0_0\DeploymentTest.exe.manifest'.
        + Could not find a part of the path 'C:\Users\USERNAME\Downloads\Application Files\DeploymentTest_1_0_0_0\DeploymentTest.exe.manifest'.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [7/7/2014 1:08:50 PM] : Activation of C:\Users\Z50BXH\Downloads\DeploymentTest.application has started.
    * [7/7/2014 1:08:50 PM] : Processing of deployment manifest has successfully completed.
    * [7/7/2014 1:08:50 PM] : Installation of the application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [7/7/2014 1:08:50 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
        - Downloading file:///C:/Users/USERNAME/Downloads/Application Files/DeploymentTest_1_0_0_0/DeploymentTest.exe.manifest did not succeed.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
            at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
            at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
            at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            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.Net.WebException
        - Could not find a part of the path 'C:\Users\USERNAME\Downloads\Application Files\DeploymentTest_1_0_0_0\DeploymentTest.exe.manifest'.
        - Source: System
        - Stack trace:
            at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
            at System.Net.FileWebRequest.GetResponse()
            at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
        --- Inner Exception ---
        System.Net.WebException
        - Could not find a part of the path 'C:\Users\USERNAME\Downloads\Application Files\DeploymentTest_1_0_0_0\DeploymentTest.exe.manifest'.
        - Source: System
        - Stack trace:
            at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
            at System.Net.FileWebRequest.GetResponseCallback(Object state)
        --- Inner Exception ---
        System.IO.DirectoryNotFoundException
        - Could not find a part of the path 'C:\Users\USERNAME\Downloads\Application Files\DeploymentTest_1_0_0_0\DeploymentTest.exe.manifest'.
        - Source: mscorlib
        - Stack trace:
            at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
            at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
            at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
            at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
            at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
            at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.


我看过这个参考资料,但它没有解决我的问题。

正如pSattele提到的,有效的答案是链接必须通过IE。奇怪的是,虽然SSRS报表生成器在ClickOnce chrome扩展中工作,但我的应用程序没有。无论哪种方式,它现在都“有效”。谢谢大家!

正如pSattele提到的,有效的答案是链接必须通过IE。奇怪的是,虽然SSRS报表生成器在ClickOnce chrome扩展中工作,但我的应用程序却没有。无论哪种方式,它现在都“有效”。谢谢大家!

看起来你的部署url是你的下载文件夹-对吗?我知道。这就是问题所在。不是。我将其设置为Publish目录,但它只是默认设置为Publish目录。我认为这是一个明显的问题,当我说“默认为那个”时,我的意思是默认为下载目录。在清单中,它似乎没有指定路径,因此它只是将路径设置为下载目录所指定的路径。您是否从Visual Studio发布应用程序?如果您是从visual studio发布,发布文件夹的位置是什么?安装文件夹URL是什么?这些路径应该有效。确保您正在使用IE。当我尝试使用chrome运行clickonce应用程序时,我会遇到与您类似的错误。您的部署url似乎是您的下载文件夹-正确吗?我知道。这就是问题所在。不是。我将其设置为Publish目录,但它只是默认设置为Publish目录。我认为这是一个明显的问题,当我说“默认为那个”时,我的意思是默认为下载目录。在清单中,它似乎没有指定路径,因此它只是将路径设置为下载目录所指定的路径。您是否从Visual Studio发布应用程序?如果您是从visual studio发布,发布文件夹的位置是什么?安装文件夹URL是什么?这些路径应该有效。确保您正在使用IE。当我尝试使用chrome运行clickonce应用程序时,我会遇到与您类似的错误。或者您可以只提供
setup.exe
bootstrapper作为下载链接。它将下载必要的arry文件,并兼容所有浏览器,因为它直接在机器上执行,而不是在浏览器上执行。这是一个非常好的观点。这不是html所做的吗?是的。但请注意:html部署页面仅由VisualStudio生成。如果您想自动化构建过程,您将使用msbuild。但是,这不会生成html文件。当我使用IE而不是ChromeOr时,你需要创建自己的。或者你可以提供
setup.exe
bootstrapper作为下载链接。它将下载必要的arry文件,并兼容所有浏览器,因为它直接在机器上执行,而不是在浏览器上执行。这是一个非常好的观点。这不是html所做的吗?是的。但请注意:html部署页面仅由VisualStudio生成。如果您想自动化构建过程,您将使用msbuild。但是,这不会生成html文件。那时你需要创建自己的。在我使用IE而不是Chrome时工作