我们已经配置了一个作业,可以在bitbucket上的每个提交上自动构建和部署。我们通过使用msbuild成功地构建和打包了解决方案,但是当我们尝试使用deploy部署解决方案时会发生以下错误。
Error Code: ERROR_INSUFFICIENT_ACCESS_TO_APPHOSTCONFIG
More Information: An error occurred when committing changes to the IIS Configuration System. The identity performing the operation was 'NT AUTHO
我一直在使用Microsoft.Web.Administration,并且在我的设置中运行了以下代码:
{
using (ServerManager serverManager = new ServerManager())
{
foreach (Site site in serverManager.Sites)
{
site.Delete();