asp.net web 应用站点支持域账户登录

1、IIS站点应用程序池设置管道模式为classic模式,identity设置为管理员账户

2、站点验证设置,只打开windows验证,其他都关闭

3、应用程序配置web.config配置如下:

<?xml version="1.0" encoding="utf-8"?>

<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
http://go.microsoft.com/fwlink/?LinkId=169433
-->

<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<!--<identity impersonate="true" />-->
<authentication mode="Windows" />
</system.web>
<connectionStrings>
<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=wtcsps99;Initial Catalog=Testing_DBNew;Integrated Security=True;" />
</connectionStrings>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
</configuration>

原文地址:https://www.cnblogs.com/hqbird/p/5512109.html