I'm creating a C# application which accesses a SQL Server database on another PC in the local network. I have Windows 7 running on my PC and have SQL Server installed, and Windows 10 running on the remote PC from where I am accessing the database.
I am getting an error
Cannot generate SSPI context
when I try to connect to the SQL Server remotely from SSMS on client PC.
- I have installed the same SQL Server version on the client PC
- I checked to allow remote connections for the SQL Server
- I allow connection in firewall
I have connection string below that I am using to access the database from remote pc
<add name="FazalConstructions.Properties.Settings.ConnString"
connectionString="Data Source=192.168.10.2;Initial Catalog=FCProject;persist security info=true"
providerName="System.Data.SqlClient" />
What else do I have to do?