Suhail Mumtaz Awan Suhail Mumtaz Awan - 2 months ago 28x
ASP.NET (C#) Question

Login failed. The login is from an untrusted domain

I deployed my application Here on GearHost, everything went well. I clearly understand that its database access issue within application because some of the pages are accessible where no db connection is required like about-us.

Error : Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

Connection String

<add name="IMConn" connectionString="Data;Initial Catalog=IMDb;Integrated Security=True;user id=****;password=******" providerName="System.Data.SqlClient" />

If someone have idea about that problem, please help.Thanks for your time.


Try IntegratedSecurity = false;

<add name="IMConn" connectionString="Data;Initial Catalog=IMDb;Integrated Security=False;user id=****;password=******"  providerName="System.Data.SqlClient" />