Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

A network-related or instance-specific error occurred while establishing a connection to SQL Server azure

$
0
0

I have added my web api services on azure. For storing data I am using SQL Server. My database too on azure. I am able to call services from client side. But when I try to make any database call (CRUD operations). It's giving me error.

A network related issue

It is giving me above error when I call Store procedure in code. I am using EF6.

My connection string is,

<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="tcp:q89jcwtry3.database.windows.net,1433;Database=JodoData;User ID={My id};Password={password};Trusted_Connection=False;Encrypt=True;Connection Timeout=30"/><add name="JodoDataEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=tcp:q89jcwtry3.database.windows.net;initial catalog=JodoData;integrated security=False;User ID={user id};Password={password};MultipleActiveResultSets=True;Encrypt=True;TrustServerCertificate=False;App=EntityFramework&quot;" providerName="System.Data.EntityClient"/>

Is there anything wrong with my JodoDataEntities connection string ?

During debug application, I am able to see correct connection string of database.

Where do I need to change ?


Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>