skip to Main Content

Using old school ASP.NET / C# backend with web.config – I need a dynamic connection string

I have the following connection string in my web.config: <add name="ConvMapping.Properties.Settings.ifl" connectionString="Data Source=serverInfo;Initial Catalog=database;Persist Security Info=True;User ID=userid;Password=password" providerName="System.Data.SqlClient" />` The issue is now we have to use the database based on a selection. So, example I want to do something…

VIEW QUESTION

Docker SQL-Server login problem: AuthenticationException: The remote certificate was rejected by the provided RemoteCertificateValidationCallback

I'm working on a Docker related application, written in C#, based on Entity Framework. One of the Docker containers, is the ms-sql-server, which is used for database access. In order to access the SQL-server, following connectionString is created: Server=ms-sql-server;Initial Catalog=Ownobjects;User…

VIEW QUESTION

Getting a Connection String from Azure App Config via Configuration.GetConnectionString()

Is there a special way to define a Key Value setting for ConnectionStrings in Azure App Configuration? I have tried using: ConnectionStrings:DatabaseKeyName ConnectionStringsDatabaseKeyName Using the standard builder.Configuration.GetConnectionString("DatabaseKeyName") always results in a null value. Using builder.Configuration["ConnectionStrings:DatabaseKeyName"] also results in null, however…

VIEW QUESTION
Back To Top
Search