Iis 使用Microsoft.Web.Administration禁用表单身份验证

Iis 使用Microsoft.Web.Administration禁用表单身份验证,iis,forms,authentication,iis-7,administration,Iis,Forms,Authentication,Iis 7,Administration,任何人都知道如何使用Microsoft.Web.Administration和C#?关闭表单身份验证,我必须更改网站的Web.config并设置 <authentication mode="Forms"> 到 我必须更改网站的web.config并设置 <authentication mode="Forms"> 到 不确定是否使用Microsoft.Web.Administration,但您可以在命令行中执行,并使用Process运行。开始:appcmd s

任何人都知道如何使用Microsoft.Web.Administration和C#?

关闭表单身份验证,我必须更改网站的Web.config并设置

<authentication mode="Forms">


我必须更改网站的web.config并设置

<authentication mode="Forms">



不确定是否使用Microsoft.Web.Administration,但您可以在命令行中执行,并使用Process运行。开始:appcmd set config/commit:WEBROOT/section:system.Web/authentication/mode:WindowsI不需要打开windows auth,我需要关闭forms auth.true,但它也有同样的副作用:)我希望有人能给你一个正确的答案。@PCurd,当我打开windows auth时,然后forms auth仍保持打开状态。不确定是否使用Microsoft.Web.Administration,但您可以使用命令行执行此操作,并使用Process运行它。开始:appcmd set config/commit:WEBROOT/section:system.Web/authentication/mode:WindowsI不需要打开windows auth,我需要关闭forms auth.true,但它也有同样的副作用:)我希望有人能给你一个正确的答案。@PCurd,当我打开windows auth时,表单auth仍然保持打开状态。