这是 build/web.config 转换后的输出:
Copying all files to temporary location below for package/publish:
obj\Release\Package\PackageTmp.
Publishing folder /...
Site was published successfully path_goes_here
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
然而,当它加载根文件夹时,什么都没有。访问该站点会出现服务器错误
401 - unauthorized: access is denied due to invalid credentials
我相信,考虑到该目录中没有任何内容,这是可以理解的。如果可能误导。
为了解决这个问题,我将部署服务器的版本复制并粘贴到了生产服务器。我这样做没有访问问题,所以我认为它不会因为权限而阻止我进行部署。
如何解决此特定情况?