I am having a problem connecting to my Database (which is on a different location) via my MVC application.
To test the DB connection, I made a Windows Form Application and used it to connect to the database with the same connection string which I am using in my MVC app
Server=192.168.16.243; Database=Precision_DB;Trusted_Connection=True;
The Windows form application connects and retrieves data perfectly, but the MVC app is giving me the following error:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
[SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.]
I should mention that I am using NHibernate in my MVC app. Does that make a difference? how can I resolve this issue.
Please help