Suhail Mumtaz Awan Suhail Mumtaz Awan - 1 year ago 179
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.

Answer Source

Try IntegratedSecurity = false;

<add name="IMConn" connectionString="Data;Initial Catalog=IMDb;Integrated Security=False;user id=****;password=******"  providerName="System.Data.SqlClient" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download