Hello,
I have a WCF service that has reference to business logic (bll.dll) that use entity framework to interact database(sql azure)
Whenever i call any restful service it gives
The server encountered an error processing the request. The exception message is 'The underlying provider failed on Open.'. See server logs for more details. The exception stack trace is at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation...
Same bll used by an asp.net application it just fine.
Connection strings
<add name="SqlConnection" connectionString="Data Source=xxxx.database.windows.net;Initial Catalog=xxxCloudDB;Integrated Security=False;User ID=xxx;Password=xxxx;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False" />
<add name="xxxxEntities" connectionString="metadata=res://*/Data.DataModel.csdl|res://*/Data.DataModel.ssdl|res://*/Data.DataModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=xxxx.database.windows.net;Initial Catalog=xxxxCloudDB;Integrated Security=False;User ID=xxxx;Password=xxxx;Encrypt=True;TrustServerCertificate=False"" providerName="System.Data.EntityClient"/>
Any idea?
Thanks for your help!