Peter Dzuya

Peter Dzuya

  • NA
  • 313
  • 40.8k

connection string

Oct 14 2014 3:21 AM
Hi all,
 
I am new to c#. I have an application running on a VPN structure (i.e. WAN). I get a connection timed out message when I run an application
compiled in vs 2013. I fail to understand because there is another application compiled in vs 2010 that is working very well.
Below is the connection string;
 
 
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="SmartPropertyContext" connectionString="Data Source= 192.168.0.2;Initial Catalog=PMS;Integrated Security=True; MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
<!--<add name="SmartPropertyContext" connectionString="Server= 192.168.0.2;Database=PMS;User Id = sa; Password = abc123" providerName="System.Data.SqlClient" />-->
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v11.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>
 
Thanking you all. 

Answers (5)