![Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
I create a very simple website.
when I run website from VS2012 ,website easily can get data from SQLSERVER which run on server which is seperate (I mean SQLSERVER is on one server and I host website on my pc as server).
but when I publish website on my PC IIS,browsing the website from IIS manager cause below error:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON
Solution 1
You probably just need to provide a user name and password in your connectionstring and set Integrated Security=false