Login failed for user ‘NT AUTHORITY\ANONYMOUS LOGON’

This is the common error when you host your application on server.

This is due to database connection in web.config


In web.config file you should change connectionString to sql login.

It is something like this

<add name=”ConnectionStringName” connectionString=”Data Source=your_Sql_Server;Initial Catalog=your_database_name;Persist Security Info=True;User ID=your_database_user;Password=your_db_password” providerName=”System.Data.SqlClient”/>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s