Step 1: Add 'NT Authority / Network Service' to the Administrator group My Computer -> Right-click -> Management -> Local Users and Group Select "Group" -> Double click Administrators -> Click " Add "-> Click" Advanced "-> Click" Find Now "-> Select NetWork Service Users in the following list -> Click" OK "-> Add.
The second step is to join the NetWord Service user in Enterprise Manager to open SQL Server Enterprise Manager -> Select Database Instance -> Open "Security" Node -> Select "Log in" -> Click in the list on the right Right-click -> Select "New Login" -> Click on the button "..." -> Select "Administrators" Group -> Click "Members" in the "Name" in the "General" tab. Button -> Select "Network Service" -> Click Add button -> Click "OK" to return "New Login" dialog -> Guaranteed authentication type to "Windows Authentication" and "Allow Access "-> Click" OK "-> Close Enterprise Manager
The third step re-runs the ASP.NET program, and the database connection string selects Windows authentication.