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

Cannot connect to Sql server on Godaddy using the plesk delux hosting

I am using the Plesk hosting for my asp.net mvc 4 website with Sql Server 2012. My Connection string is the following: metadata=res://*/Models.FolioData.csdl|res://*/Models.FolioData.ssdl|res://*/Models.FolioData.msl;provider=System.Data.SqlClient;provider connection string="Data Source=184.168.47.13;Initial Catalog=MyDataBase;Integrated Security=True;User ID=*****;Password=*******;MultipleActiveResultSets=True;Application Name=EntityFramework" But i keep getting the error: Error. An error occurred…

VIEW QUESTION
Back To Top
Search