Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8453823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:51:36+00:00 2026-06-10T11:51:36+00:00

I am running an ASP.Net web application on an IIS server that needs to

  • 0

I am running an ASP.Net web application on an IIS server that needs to talk to a SQL database. Below is the connection string that I am using:

<add name="myConn"
     connectionString="data source=serverName;initial catalog=dbName;integrated security=True; Trusted_Connection=Yes;"
     providerName="System.Data.SqlClient" />

And this is the error I continue to receive:

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

I checked a couple other threads with similar errors and was not able to find any solutions. Any ideas would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:51:38+00:00Added an answer on June 10, 2026 at 11:51 am

    There are two ways to handle security when connecting to a SQL server database. The configuration of the database server itself is going to tell you which way is even available.

    1. Integrated Security.
      This means that you will be executing the queries as the same user that the website is running under. For IIS 7 this is the App Pool user. Sometimes this is configured as Network Service, Local Service, Local System or ApplicationPoolIdentity. If the Database server is not the same as your web server (which it shouldn’t be), then you normally have to use a domain account for the app pool identity to get this to work. That domain account should have the appropriate rights to your database server. An alternative here is to use impersonation. Either way, this is a complicated setup and something you should both research and work with your network administrator on.

    2. SQL Server Security.
      This is the traditional username/password that most people are familiar with. You typically need to modify your config to remove the “integrated security=true” part and supply an actual username and password. Note that the database server itself needs to be configured to utilize sql server usernames and that the user should have the appropriate rights to execute your queries against the database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Context: IIS 6 on Windows 2003 Server ASP.NET 3.5 sp1 C# Web Application running
I am running an ASP.NET 3.5 web application on IIS 7 on Windows Server
I have an ASP.NET 2.0 web application running on a shared server of a
We have a asp.net 2.0 web application that is running on IIS7. It is
I am running an ASP.NET application. The web server is located on the same
I have an ASP.NET application running on multiple IIS6 web servers, with a SQL
I have a ASP.NET 1.1 application running on IIS 6 / Windows Server 2003.
I have a ASP.NET application that connects to a SQL server backend on another
I have one ASP.NET web application running at the web server root which provides
I have an ASP.NET web form application that on the server side I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.