在用MicrosoftUpdaterApplicationBlock.msi安装后,使用示例时出现以下问题,不知道如何解决
希望高手指点.[DownloaderManager.CheckDownloadCompleteOrError] :
Error downloading files from the server for the application 'SelfUpdatingTest',
the following message was in the exception: 'SelfUpdatingTest'.
ERROR: HRESULT 中的异常:0x8007013D。
STACK: at Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.IBackgroundCopyError.GetErrorDescription(UInt32 LanguageId, String& pErrorDescription)
at Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.BITSDownloader.HandleDownloadErrorCancelJob(IBackgroundCopyJob copyJob, String& errMessage) in c:\program files\microsoft application blocks for .net\updater\code\cs\microsoft.applicationblocks.updater\microsoft.applicationblocks.applicationupdater\bitsdownloader.cs:line 485
at Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.BITSDownloader.Microsoft.ApplicationBlocks.ApplicationUpdater.Interfaces.IDownloader.GetJobStatus(Guid jobId) in c:\program files\microsoft application blocks for .net\updater\code\cs\microsoft.applicationblocks.updater\microsoft.applicationblocks.applicationupdater\bitsdownloader.cs:line 345
at Microsoft.ApplicationBlocks.ApplicationUpdater.DownloaderManager.CheckDownloadCompleteOrError() in c:\program files\microsoft application blocks for .net\updater\code\cs\microsoft.applicationblocks.updater\microsoft.applicationblocks.applicationupdater\downloadermanager.cs:line 754
希望高手指点.[DownloaderManager.CheckDownloadCompleteOrError] :
Error downloading files from the server for the application 'SelfUpdatingTest',
the following message was in the exception: 'SelfUpdatingTest'.
ERROR: HRESULT 中的异常:0x8007013D。
STACK: at Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.IBackgroundCopyError.GetErrorDescription(UInt32 LanguageId, String& pErrorDescription)
at Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.BITSDownloader.HandleDownloadErrorCancelJob(IBackgroundCopyJob copyJob, String& errMessage) in c:\program files\microsoft application blocks for .net\updater\code\cs\microsoft.applicationblocks.updater\microsoft.applicationblocks.applicationupdater\bitsdownloader.cs:line 485
at Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.BITSDownloader.Microsoft.ApplicationBlocks.ApplicationUpdater.Interfaces.IDownloader.GetJobStatus(Guid jobId) in c:\program files\microsoft application blocks for .net\updater\code\cs\microsoft.applicationblocks.updater\microsoft.applicationblocks.applicationupdater\bitsdownloader.cs:line 345
at Microsoft.ApplicationBlocks.ApplicationUpdater.DownloaderManager.CheckDownloadCompleteOrError() in c:\program files\microsoft application blocks for .net\updater\code\cs\microsoft.applicationblocks.updater\microsoft.applicationblocks.applicationupdater\downloadermanager.cs:line 754
解决方案 »
- 模仿QQ写了一个基于socket聊天程序,怎样才能在外网连接到服务器?
- Tables中主键的问题,C#
- 写了一个c#类,该类在退出程序时发生异常:ObjectDisposedException
- 请问各位高手 到北大青鸟培训机构当老师 与 到一个新高职职业学院当老师 那个选择更好??
- 大城小题,高手快来,十万火急!
- 研究了好久都找不到答案(如何使我在自定义控件中添加的button触发button_login事件?)
- 求教C# OO 高手
- 提问关于一个存储过程
- 帮忙啦!有关C#中数据类型转换的问题!!!
- 请问用什么控件输入日期好?
- 初学C#:请问如何定义函数?
- 关于字符串中包含双引号的问题,请指教!
你可以在配置文件中设成不校验接口。<application name="Demo" useValidation="false">useValidation设成false即可。
The Updater has started; the target application's name is 'SelfUpdatingTest'. Time started: 2004_12_03_23:16:04.
[DownloaderManager.RunDownloader] :
Checking on updates for application 'SelfUpdatingTest'.
线程 '<无名称>' (0xd94) 已退出,返回值为 0 (0x0)。[DownloaderManager.IsServerManifestDownloaded] :
DOWNLOAD STARTED: Downloading manifest for the application 'SelfUpdatingTest'. Time started: 2004_12_03_23:16:04
[DownloaderManager.IsServerManifestDownloaded] :
SOURCE FILE: 'http://localhost/selfupdating/ServerManifest.xml'
[DownloaderManager.IsServerManifestDownloaded] :
DEST FILE: 'C:\Program Files\Microsoft Application Blocks for .NET\Updater\Code\DemoFiles\SelfUpdaterClient\ServerManifest.xml'
“SelfUpdatingTest.exe”: 已加载“gqw4jehy”,未加载符号。[ServerApplicationInfo.Deserialize] :
Reading Server Manifest file from 'C:\Program Files\Microsoft Application Blocks for .NET\Updater\Code\DemoFiles\SelfUpdaterClient\ServerManifest.xml' to deserialize into a ServerApplicationInfo object.
********************************************************************
还是有问题的,好象不是这个问题,如果公钥跟私钥问题,检查manifest.xml就出错了,
但文件下载到本地临时文件夹了,然后就出错了,但有的电脑是可以的,不知道和sp2有没有关系.
1.更新URL地址都指向localhost,所以在别的机器上是不能Update成功,要根据外部访问的方式修改
2.程序的Config文件中,所有地址都是本机绝对物理地址。如果放在别的机器上要根据实际运行地址进行修改。
通过修改以上两点,我成功运行了SelfUpdaterClient,但是其他几个Demo我还没有运行成功。