Restarting IIS programmatically

后端 未结 5 1144
闹比i
闹比i 2020-12-30 18:04

I need to restart IIS from a C#/.NET application. This seems like a trivial issue, but I haven\'t had success thus far, and none of the answers from this question have worke

5条回答
  •  Happy的楠姐
    2020-12-30 18:30

    Right click on project name in Solution Explorer ->Add ->New Item-> Appliaction Manifest File.

    In it edit the

        
           
        
    

    this should solve your issue.

提交回复
热议问题