none
WPF 浏览器应用程序发布部署之后,客户端访问出现的问题! RRS feed

  • 问题

  • 我发布了一个WPF浏览器应用程序,在客户端访问的时候大部分都很正常,有个别机器访问的时候出现错误,“下载应用程序错误”!!!有的事卡在空白页不动!!这个问题我整了快一周啦,没弄好,求指教啊!!!
    2014年6月5日 3:10

全部回复

  • 你好,

    请问你使用的是什么部署方式, 根据你的描述,应该是 ClickOnce,请参考以下文档检查部署问题:

    #Deploying a WPF Application (WPF)
    http://msdn.microsoft.com/en-us/library/aa969776(v=vs.110).aspx

    >>在客户端访问的时候大部分都很正常,有个别机器访问的时候出现错误,“下载应用程序错误”!!!有的事卡在空白页不动!!

    请提供具体的问题机器的环境,譬如系统版本,IE版本等等


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年6月6日 5:23
    版主
  • 把下载错误的详细内容贴出来。

    2014年6月6日 7:16
  • 这是错误日志:

    PLATFORM VERSION INFO
     Windows    : 6.1.7601.65536 (Win32NT)
     Common Language Runtime  : 4.0.30319.1022
     System.Deployment.dll   : 4.0.30319.1 (RTMRel.030319-0100)
     clr.dll    : 4.0.30319.1022 (RTMGDR.030319-1000)
     dfdll.dll    : 4.0.30319.1 (RTMRel.030319-0100)
     dfshim.dll    : 4.0.31106.0 (Main.031106-0000)

    SOURCES
     Deployment url  

    ERROR SUMMARY
     Below is a summary of the errors, details of these errors are listed later in the log.
     * An exception occurred while downloading the manifest. Following failure messages were detected:
      + Downloading  did not succeed.
      + The remote server returned an error: (407) Proxy Authentication Required.

    COMPONENT STORE TRANSACTION FAILURE SUMMARY
     No transaction error was detected.

    WARNINGS
     There were no warnings during this operation.

    OPERATION PROGRESS STATUS
     No phase information is available.

    ERROR DETAILS
     Following errors were detected during this operation.
     * [2014/6/4 17:56:13] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
      - Downloading “访问的网址” 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.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
       at System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
       at System.Deployment.Application.DeploymentManager.BindCore(Boolean blocking, TempFile& tempDeploy, TempDirectory& tempAppDir, FileStream& refTransaction, String& productName)
       at System.Deployment.Application.DeploymentManager.BindAsyncWorker()
      --- Inner Exception ---
      System.Net.WebException
      - The remote server returned an error: (407) Proxy Authentication Required.
      - Source: System
      - Stack trace:
       at System.Net.HttpWebRequest.GetResponse()
       at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

    COMPONENT STORE TRANSACTION DETAILS
     No transaction information is available.

    2014年6月16日 5:09
  • 大家看下错误日志

    PLATFORM VERSION INFO
     Windows    : 6.1.7601.65536 (Win32NT)
     Common Language Runtime  : 4.0.30319.1022
     System.Deployment.dll   : 4.0.30319.1 (RTMRel.030319-0100)
     clr.dll    : 4.0.30319.1022 (RTMGDR.030319-1000)
     dfdll.dll    : 4.0.30319.1 (RTMRel.030319-0100)
     dfshim.dll    : 4.0.31106.0 (Main.031106-0000)

    SOURCES
     Deployment url   : “客户端访问程序输入的链接"

    ERROR SUMMARY
     Below is a summary of the errors, details of these errors are listed later in the log.
     * An exception occurred while downloading the manifest. Following failure messages were detected:
      + Downloading “客户端访问程序输入的链接” did not succeed.
      + The remote server returned an error: (407) Proxy Authentication Required.

    COMPONENT STORE TRANSACTION FAILURE SUMMARY
     No transaction error was detected.

    WARNINGS
     There were no warnings during this operation.

    OPERATION PROGRESS STATUS
     No phase information is available.

    ERROR DETAILS
     Following errors were detected during this operation.
     * [2014/6/4 17:56:13] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
      - Downloading “客户端访问需要输入的链接地址” 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.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
       at System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
       at System.Deployment.Application.DeploymentManager.BindCore(Boolean blocking, TempFile& tempDeploy, TempDirectory& tempAppDir, FileStream& refTransaction, String& productName)
       at System.Deployment.Application.DeploymentManager.BindAsyncWorker()
      --- Inner Exception ---
      System.Net.WebException
      - The remote server returned an error: (407) Proxy Authentication Required.
      - Source: System
      - Stack trace:
       at System.Net.HttpWebRequest.GetResponse()
       at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

    COMPONENT STORE TRANSACTION DETAILS
     No transaction information is available.

    2014年6月16日 5:12
  • 你好,

    定位到这一句错误信息:
    + The remote server returned an error: (407) Proxy Authentication Required.

    先验证在出问题的机器上,可否访问"客户端访问程序输入的链接"

    然后可以尝试用这个帖子中的方法:

    http://social.msdn.microsoft.com/Forums/vstudio/en-US/d6b018bf-df4c-4cf8-90db-98e502d619e6/xbap-downloaded-does-not-use-connection-properties-of-ie-for-proxy?forum=wpf

    <configuration> 
        . . . 
       <system.net> 
          <defaultProxy enabled="true" useDefaultCredentials="true"/> 
       </system.net> 
    </configuration>

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年6月16日 8:07
    版主
  • 你好,我找到了这个文件,但里面没有 <system.net>
         
    <defaultProxy enabled="true" useDefaultCredentials="true"/>
       </system.net> 怎么没有这个属性?
    2014年6月16日 10:14
  • 输入URL打开部署在iis上的wpf浏览器应用程序,一直卡在加载页面。有些电脑上能顺利加载,有些电脑上就一直卡着不动,请问是什么原因?
    2014年6月17日 5:43
  • 你好,我找到了这个文件,但里面没有 <system.net>
         
    <defaultProxy enabled="true" useDefaultCredentials="true"/>
       </system.net> 怎么没有这个属性?

    你好,

    >>我找到了这个文件,但里面怎么没有这个属性?

    参照此文档:

    #<defaultProxy> Element (Network Settings)
    http://msdn.microsoft.com/en-us/library/kd3cf2ex.aspx

    直接按照格式添加进去


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年6月17日 7:38
    版主
  • XP系统,IE版本都是IE8以上
    2014年6月18日 1:28
  • 你说的这个是在microsoft visual studio开发环境里面改的吗?是app.config文件里面吗?
    2014年6月18日 6:22
  • 你说的这个是在microsoft visual studio开发环境里面改的吗?是app.config文件里面吗?

    开发环境中:

    32-bit
    %windir%\Microsoft.NET\Framework\[version]\config\machine.config

    64-bit
    %windir%\Microsoft.NET\Framework64\[version]\config\machine.config


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年6月19日 8:30
    版主
  • 输入URL访问WPF浏览器程序,需要从服务器端下载 相应的文件,一直卡在加载页面,"%USERPROFILE%\AppData\Local\Apps\2.0里面是空的,没有文件写进来,用户已经是管理员权限,并且具有完全控制这个文件夹的权限。
    2014年6月20日 9:31
  • WPF浏览器程序ClickOnce部署之后,客户端访问的时候,部分机器卡在空白页面,我发现"%USERPROFILE%\AppData\Local\Apps\2.0里面是空的,没有文件写进来,用户已经是管理员权限,并且具有完全

    控制这个文件夹的权限,请问是啥原因呢?

    2014年6月23日 1:28
  • 启动 URI: http://132.35.141.49:10060/wpf/CoolTest.Online.Wpf.Tools.xbap?UserGuid=ccadb74ec1b64b79bcdf70a928b4e6cc&OperatType=4&StrQuery=ImportBuilding
    应用程序标识: 

    拒绝访问。


    -----------------------

    PresentationHost.exe v4.0.31106.0 built by: Main - C:\Windows\System32\PresentationHost.exe
    ntdll.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SYSTEM32\ntdll.dll
    kernel32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\kernel32.dll
    KERNELBASE.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\KERNELBASE.dll
    SYSFER.DLL v12.1.2015.2015 - C:\Windows\System32\SYSFER.DLL
    ADVAPI32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\ADVAPI32.dll
    msvcrt.dll v7.0.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\msvcrt.dll
    sechost.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\SYSTEM32\sechost.dll
    RPCRT4.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\RPCRT4.dll
    USER32.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\system32\USER32.dll
    GDI32.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\system32\GDI32.dll
    LPK.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\LPK.dll
    USP10.dll v1.0626.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\system32\USP10.dll
    ole32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\ole32.dll
    OLEAUT32.dll v6.1.7601.17514 - C:\Windows\system32\OLEAUT32.dll
    mscoree.dll v4.0.40305.0 (Main.040305-0000) - C:\Windows\System32\mscoree.dll
    SHLWAPI.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\SHLWAPI.dll
    WININET.dll v8.00.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\WININET.dll
    urlmon.dll v8.00.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\urlmon.dll
    CRYPT32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\CRYPT32.dll
    MSASN1.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\system32\MSASN1.dll
    iertutil.dll v8.00.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\system32\iertutil.dll
    SHELL32.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\system32\SHELL32.dll
    IMM32.DLL v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\system32\IMM32.DLL
    MSCTF.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\MSCTF.dll
    CRYPTBASE.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\CRYPTBASE.dll
    uxtheme.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\uxtheme.dll
    CLBCatQ.DLL v2001.12.8530.16385 (win7_rtm.090713-1255) - C:\Windows\system32\CLBCatQ.DLL
    CRYPTSP.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\CRYPTSP.dll
    rsaenh.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\rsaenh.dll
    RpcRtRemote.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\System32\RpcRtRemote.dll
    dwmapi.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\dwmapi.dll
    comctl32.dll v6.10 (win7_rtm.090713-1255) - C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll
    SspiCli.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\System32\SspiCli.dll
    profapi.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\profapi.dll
    ws2_32.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\ws2_32.DLL
    NSI.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\NSI.dll
    dnsapi.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\dnsapi.DLL
    iphlpapi.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\iphlpapi.DLL
    WINNSI.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\WINNSI.DLL
    RASAPI32.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\RASAPI32.dll
    rasman.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\rasman.dll
    rtutils.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\System32\rtutils.dll
    sensapi.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\sensapi.dll
    mswsock.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\mswsock.dll
    wshtcpip.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\wshtcpip.dll
    Normaliz.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\Normaliz.dll
    NLAapi.dll v6.1.7601.17514 (win7sp1_rtm.101119-1850) - C:\Windows\system32\NLAapi.dll
    rasadhlp.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\rasadhlp.dll
    napinsp.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\napinsp.dll
    pnrpnsp.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\pnrpnsp.dll
    winrnr.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\winrnr.dll
    wship6.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\wship6.dll
    fwpuclnt.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\fwpuclnt.dll
    PresentationHostDLL.dll v3.0.6920.5011 built by: Win7SP1 - C:\Windows\Microsoft.NET\Framework\v3.0\WPF\PresentationHostDLL.dll
    MSVCR80.dll v8.00.50727.4940 - C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_d08cc06a442b34fc\MSVCR80.dll
    VERSION.dll v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\VERSION.dll
    PSAPI.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\system32\PSAPI.DLL
    ieproxy.dll v8.00.7601.17514 (win7sp1_rtm.101119-1850) - C:\Program Files\Internet Explorer\ieproxy.dll
    SXS.DLL v6.1.7600.16385 (win7_rtm.090713-1255) - C:\Windows\System32\SXS.DLL
    PresentationHostProxy.dll v4.0.40305.0 built by: Main - C:\Windows\System32\PresentationHostProxy.dll
    2014年6月23日 7:28
  • WPF浏览器程序ClickOnce部署之后,客户端访问的时候,部分机器卡在空白页面,我发现"%USERPROFILE%\AppData\Local\Apps\2.0里面是空的,没有文件写进来,用户已经是管理员权限,并且具有完全

    控制这个文件夹的权限,请问是啥原因呢?


    你好,

    根据之前的错误信息,安装过程中的代理认证问题导致无法下载本地部署文件,所以导致部署目录中没有文件。

    这个问题出现在个别机器上,请问这些机器有环境上的共性吗?比如.NET版本,操作系统版本,IE版本。如果创建相同的环境去重现,重现失败的话,那应该就是和这些机器自身的问题相关,比如注册表。


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年6月23日 8:41
    版主
  • 你好,谢谢您的回答,我看了看他们的系统都是Xp,并且IE版本都是IE8,我仔细看了下注册表,应该是注册表的问题,如果第一次访问需要从服务器上下载文件,并且需要往注册表写文件,但是出现这个问题的机器,访问ClickOnce发布的URL时候 注册表下这个路径HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\SideBySide\2.0根本没有写入文件,正常的机器都会写入注册表的。。请问这个问题该如何解决呢?
    2014年6月24日 1:36
  • 你好,谢谢您的回答,我看了看他们的系统都是Xp,并且IE版本都是IE8,我仔细看了下注册表,应该是注册表的问题,如果第一次访问需要从服务器上下载文件,并且需要往注册表写文件,但是出现这个问题的机器,访问ClickOnce发布的URL时候 注册表下这个路径HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\SideBySide\2.0根本没有写入文件,正常的机器都会写入注册表的。。请问这个问题该如何解决呢?

    你好,

    对于这种环境问题,只能清理系统或者修复来尝试解决,没有通用的办法。并且对于XP系统,微软已经停止技术支持,建议升级系统。



    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年6月24日 8:32
    版主