Cant add bindings to IIS programmatically - redirection.config permissions (with a video!)

后端 未结 2 767
难免孤独
难免孤独 2021-01-05 06:44

Here is a video summary of my problem http://screencast.com/t/v6th4BuRLhV

I am trying to add bindings programmatically to IIS with this code:

public          


        
相关标签:
2条回答
  • 2021-01-05 06:53

    Figure out what account your application pool is running as. Then you need to give that account access to the entire %SystemRoot%\System32\inetsrv\config folder. It wasn't enough for me to give access to just %SystemRoot%\System32\inetsrv\config\redirection.config

    0 讨论(0)
  • 2021-01-05 07:09

    in my case "run as administrator" solved the problem

    0 讨论(0)
提交回复
热议问题