Category : connection-string

I want to connect my Azure SQL databae to docker container Asp.net Core , which containe integration test when i run docker build -t test -f dockerFile i get these erreurs 1- Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler[3] Exception occurred while processing message. System.InvalidOperationException: IDX20803: Unable to obtain configuration from: ‘System.String’. at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() 2- The instance of ..

Read more

I’m missing something here, and if someone could help clarify I’d greatly appreciate it: I have a Docker Ubuntu container running mcr.microsoft.com/mssql/server:2019-latest called sql1 on my Mac I also have an outside .net core 2 project from a friend i’m wanting to connect to and simply run update-database or dotnet ef database update or even ..

Read more

Original (which works fine) docker file which connects to a SQL Server database in Azure looks like this: version: ‘3.4’ services: my.service: build: dockerfile: Test/Test/Dockerfile environment: – ASPNETCORE_ENVIRONMENT=Development – MyDatabase__ConnectionString=Server=tcp:xxx.windows.net,1433;Initial Catalog=my-catalog;User [email protected];Password=’xxx’;Persist Security Info=False;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30 What should the "MyDatabase__ConnectionString" be if I want to connect to my local SQL Server Express? I tried these options, ..

Read more

Original (which works fine) docker file which connects to a SQL Database in Azure looks like this: version: ‘3.4’ services: my.service: build: dockerfile: Test/Test/Dockerfile environment: – ASPNETCORE_ENVIRONMENT=Development – MyDatabase__ConnectionString=Server=tcp:xxx.windows.net,1433;Initial Catalog=my-catalog;User [email protected];Password=’xxx’;Persist Security Info=False;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30 What should the "MyDatabase__ConnectionString" be if I want to connect to my local SQLExpress? I tried these options, but none work? ..

Read more

I have created a simple console application in .NET Core with EF Core executing a SQL Server stored procedure from the server that’s accessible only through a VPN connection. I was able to run the application on its own, but the container always exists throwing network error when I start it. URL referred to implement ..

Read more

developing an ASP.NET Core 3.0 application, with centralized MySQL Database. I am using a Connection String, which looks like this: Server=mysql;Database=db-name;Uid=User;Pwd=Pass;SslMode=Preferred;persistsecurityinfo=false; “mysql” is an internal DNS Record, which points to the central MySQL Server. In Visual Studio, it works fine. Now I want to deploy it to kubernetes. I already did that with MSSQL successfully. ..

Read more