How to enable or disable the windows and anonymous authentication in Microsoft Visual Studio 2019?

less than 1 minute read

To enable or disable Windows and anonymous authentication in Visual Studio 2019, you need to modify the properties from the project property window or from the project file.

Option 1 (Property window):

  1. Go to View, select the properties, or press F4.
  2. Select the project for which you want to enable or disable the windows and anonymous authentication.
  3. Choose the Windows authentication as “enabled” or vice versa.
  4. Choose the Anonymous authentication as “Disabled” or vice versa.

Option 2 (Project file):

  1. Right-click and edit the project file.
  2. Find and change the mode in the below tags.
<IISExpressAnonymousAuthentication>enabled</IISExpressAnonymousAuthentication>
<IISExpressWindowsAuthentication>disabled</IISExpressWindowsAuthentication>

Leave a comment