dodgerfan
asked on
SharePoint application page giving error 'Login Failed for user NT Authority\Anonymous Login'
I have a web page in SharePoint 2013 that is trying to call an external SQL Server database. Whenever you click a button to open the connection I get the error mentioned, 'Login Failed for user NT Authority\Anonymous Login'. The code and connection itself work in a regular .net web application. But it does not in SharePoint. I have added the user NTAUTHORITY\IUSR and given it the permissions. I have tried putting into the connection code a domain user name and password. I believe it must be something with SharePoint (which have a weeks worth of experience with), but that's because it all works correctly in a ASP.Net web application. What do I need to do to get it working within SharePoint? Thanks.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry for the delay and thanks for the input. We ended up going back to mixed mode authentication on our SQL Server. It was at Windows only for reasons I am not clear on. But once it was switched to mixed, everything worked fine. I'm not sure if this is the complete answer, as windows only may be a requirement down the road, but for now problem solved.
A possible solutionthat I should have included in my comment above