代码之家  ›  专栏  ›  技术社区  ›  Omar

发布(.asmx)文件错误无法打开网站

  •  0
  • Omar  · 技术社区  · 6 年前

    我在ASP中创建了一个web服务项目。NET并将其从pc1移动到pc2,问题是我无法发布。pc2中的asmx文件错误如下

      Preparing to publish files...
    Connecting to C:\Users\ITA\Desktop\Ws...
    Unable to open the Web site 'C:\Users\ITA\Desktop\Ws'.  The Web site 'C:\Users\ITA\Desktop\Ws' does not exist.
    Unable to open the Web site 'C:\Users\ITA\Desktop\Ws'.  The Web site 'C:\Users\ITA\Desktop\Ws' does not exist.
    

    我编辑了 <publishUrl>C:\Users\Admin\Desktop\Ws</publishUrl> 到新的现有文件夹,但问题仍然存在。

    1 回复  |  直到 6 年前
        1
  •  1
  •   Omar    6 年前

    通过单击设置选项卡解决,如下所示 enter image description here

    然后单击发布 enter image description here

    我没有任何解释为什么这样做,但它没有修改任何内容。