Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Connection string issue with azure sql server #25

Open
andreespin opened this issue Jul 2, 2021 · 1 comment
Open

Connection string issue with azure sql server #25

andreespin opened this issue Jul 2, 2021 · 1 comment

Comments

@andreespin
Copy link

I'm having an issue to connect to an azure sql, the application was deployed but we can't see the roles when we try to register an user. Is anyone using az sql and can send us the connection string to comparison?

@DanielUlisses
Copy link

DanielUlisses commented Jul 9, 2021

I upgraded the entire project to target the .net 4.7.2 and added the conditional compilation symbol to net472 in all parts of the project

then I updated the connection string based on https://azure.microsoft.com/en-us/blog/securing-azure-sql-databases-with-managed-identities-just-got-easier/

as the module requires the .net 4.7.2 it may be the issue you have

image

the connection string now look like:

<add name="LOBMergedEntities" connectionString="metadata=res://*/EMIEDataModel.csdl|res://*/EMIEDataModel.ssdl|res://*/EMIEDataModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=tcp:<servername>.database.windows.net,1433;Initial Catalog=EMIEDatabase;UID=a;Authentication=Active Directory Interactive;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants