It works perfect when I run in Local and SQL Azure DB. But when I publish the website to azure it gives me error as following.
My web Config:
<configuration>
<connectionStrings>
<add name="systemReposConnectionString" connectionString="Server=tcp:ewsserver.database.windows.net,1433;Database=systemRepos;User ID=xxxdb@ewsserver;Password=xxxx;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<customErrors mode="Off"></customErrors>
<compilation targetFramework="4.5" debug="true"/>
<httpRuntime targetFramework="4.5" />
</system.web>
</configuration>
Error that I get as below: A network-related or instance-specific error occurred while establishing a connection to SQL Server.
The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
I have set the firewall setting for my azure SQL server from 0.0.0.0 and 254.254.254.254
Thanks
