【问题标题】:Update.exe not found, not a Squirrel-installed app, hosted on ISS未找到 Update.exe,不是 Squirrel 安装的应用程序,托管在 ISS 上
【发布时间】:2020-11-22 22:14:22
【问题描述】:

我创建了一个简单的 WinForms 应用程序,我正在尝试实现托管在 Microsoft IIS 上的自动更新程序 我有一个总是返回的问题

Update.exe 未找到,不是 Squirrel 安装的应用程序

我已经检查了官方文档并按照link中的描述实现了 web.config 文件

在 ISS 我创建了一个带有 web.config 和 Releases 文件夹的虚拟目录 我的 Winform 应用程序的目标是“http://localhost/Downloads/Releases/”,如下所示

当我调试应用程序时,它在 IIS 上托管时总是返回前面提到的错误,当它以我的驱动器上的路径为目标时工作正常。

我认为我在 IIS 方面搞砸了,有没有人有线索或指针,将不胜感激。

我的应用

Public Form1()
        {
            InitializeComponent();

            AddVErsionNUmber();

            CheckForUpdates().Wait();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void AddVErsionNUmber()
        {
            System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
            FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location);

            lblVersion.Text = fileVersionInfo.FileVersion;
        }

        private async Task CheckForUpdates()
        {
            using (var manager = new UpdateManager(@"http://localhost/Downloads/Releases/"))
            {
                await manager.UpdateApp();
            }

        }

我的 web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".nupkg" mimeType="application/zip" />
      <mimeMap fileExtension="." mimeType="text/plain" />
    </staticContent>
        <security>
            <access sslFlags="None" />
        </security>
    </system.webServer>
</configuration>

我的 ISS 文件夹结构和适当的资源

文件夹结构

从Iss 浏览

【问题讨论】:

    标签: c# .net squirrel.windows


    【解决方案1】:

    如果你在本地调试松鼠,你必须将Updater.exe复制粘贴到bin文件夹上一层。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-14
      • 1970-01-01
      • 2013-05-25
      • 2020-07-21
      • 2018-03-07
      • 2019-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多