I installed my VB application on client PC which in local network, but application can not reach database with err:40
Some details to describe the problem:
My connection string as it is in config file:
"PioneerHRSystem.My.MySettings.CON1"
connectionString="Data Source=SERVER\SQL2014ENT;Initial Catalog=MYDATABASE;Integrated Security=True"
providerName="System.Data.SqlClient" />
I checked the configuration in server to make sure about setting like:
- Instance name=
SERVER\SQL2014ENT
- SQL server and windows Authentication= Selected
- TCP = enabled
- Port (1433) = opened in both of them (server & PC)
- Allow remote connection to this server = selected
- Ping testing for IP=Received
- Server restarted
Also I played with connection string by adding IP & Port in like:
PioneerHRSystem.My.MySettings.PPECON1"
connection String="Data Source=192.168.8.3\SERVER\SQL2014ENT;Initial Catalog=MYDATABASE;Integrated Security=True"
providerName="System.Data.SqlClient" />
PioneerHRSystem.My.MySettings.PPECON1"
connectionString="Data Source=192.168.8.3\SERVER\SQL2014ENT1433;Initial Catalog=MYDATABASE;Integrated Security=True"
providerName="System.Data.SqlClient" />
PioneerHRSystem.My.MySettings.PPECON1"
connectionString="Data Source=192.168.8.3\SQL2014ENT,1433;Initial Catalog=MYDATABASE;Integrated Security=True"
providerName="System.Data.SqlClient" />
PioneerHRSystem.My.MySettings.PPECON1"
connectionString="Data Source=192.168.8.3\SQL2014ENT;Initial Catalog=MYDATABASE;Integrated Security=True"
providerName="System.Data.SqlClient" />
But still I get error:40 could not open connection to SQL Server
NOTE: all modification was done through the config file (as I know it should work if correct) am I correct?
UPDATE: The Complete message is:
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" /> </configuration>