.NET AppUpdater 组件未下载更新?
我计划在我们公司的一个应用程序中使用 .NET AppUpdater 组件,但为了测试它,我首先创建了一个小型测试应用程序(我遵循此处的文档:http://windowsclient.net/articles/appupdater.aspx)。
我的问题是这样的...
我已经严格按照文档进行操作,使用 IIS 在服务器上设置目录浏览,使用浏览器检查所有 URL,它们都指向正确的位置(并且我可以在服务器),更改Manifest文件以指向服务器上的版本2.0.0.0文件,应用程序的程序集版本设置为1.0.0.0等。
我已经对应用程序进行了各种调试,并且可以确认AppUpdater .CheckForUpdates 方法返回 TRUE。因此,这表明它正在下载 UpdateVersion.xml 文件并意识到有新版本可用 - 但它从不下载并安装更新...
但是,它所做的是下载 UpdateVersion.xml 文件并将其放入本地1.0.0.0 文件夹。它还创建一个 AppUpdater.xml 日志文件,其中包含大量垃圾,其中有这样的内容:
<_UpdateFailureEncoutered>false</_UpdateFailureEncoutered>
<_UpdateFailureCount>0</_UpdateFailureCount>
这似乎表明没有发生任何问题...我已经尝试了其底部的“调试”部分中建议的所有内容指南,但没有任何作用...我很茫然,有什么建议吗?
谢谢
I am planning on using the .NET AppUpdater component in one of our company applications, but to test it first of all I created a tiny test application (I followed there documentation here: http://windowsclient.net/articles/appupdater.aspx).
My problem is this...
I have followed the documentation to the letter, setup Directory Browsing on the server with IIS, checked all the URLS with my browser and they all point to the right places (and I can view the list of files on the server), changed the Manifest file to point to the version 2.0.0.0 files on the server, the Assembly version of the app is set to 1.0.0.0 etc.
I have done various debugging on the app, and can confirm that the AppUpdater.CheckForUpdates method returns TRUE. So that suggests it is downloading the UpdateVersion.xml file and realizing there is a new version available - but it never downloads and installs the update...
What it DOES do however, is download the UpdateVersion.xml file and put it in the local 1.0.0.0 folder. It also creates an AppUpdater.xml log file which has a load of garbage, amongst which there is this:
<_UpdateFailureEncoutered>false</_UpdateFailureEncoutered>
<_UpdateFailureCount>0</_UpdateFailureCount>
Which seems to indicate nothing went wrong... I've tried all of the things suggested in the Debugging section at the bottom of their guide, but nothing works... I'm at a loss, any suggestions?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是 IIS 中未启用 WebDAV。尽管这会带来一系列关于使用此 AppUpdater 的安全隐患的全新蠕虫病毒。
The problem was WebDAV was not enabled in IIS. Though this opens up a whole new can of worms with regards to security implications using this AppUpdater.