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 Solution: In web.config file you should change connectionString to sql login. It is something like this <connectionStrings> <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”/> </connectionStrings>