Click here to Skip to main content
15,881,852 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: MVC4 using JWT tokens Pin
jkirkerx29-Apr-20 12:46
professionaljkirkerx29-Apr-20 12:46 
GeneralRe: MVC4 using JWT tokens Pin
Simon_Whale29-Apr-20 20:49
Simon_Whale29-Apr-20 20:49 
GeneralRe: MVC4 using JWT tokens Pin
jkirkerx30-Apr-20 7:21
professionaljkirkerx30-Apr-20 7:21 
GeneralRe: MVC4 using JWT tokens Pin
MadMyche30-Apr-20 10:57
professionalMadMyche30-Apr-20 10:57 
QuestionI can not connect to the web service Pin
gr_nik28-Apr-20 1:36
gr_nik28-Apr-20 1:36 
Questionproblem when publishing asp.net core project on a server Pin
ElenaRez18-Apr-20 22:15
ElenaRez18-Apr-20 22:15 
AnswerRe: problem when publishing asp.net core project on a server Pin
Mycroft Holmes19-Apr-20 12:25
professionalMycroft Holmes19-Apr-20 12:25 
AnswerRe: problem when publishing asp.net core project on a server Pin
jkirkerx20-Apr-20 8:07
professionaljkirkerx20-Apr-20 8:07 
Part of learning .Net Core requires you to take a deep dive into how to setup the environment using the Program.cs and Startup.cs, and how to use environment variables. For my database setup, I ran a database on my workstation to develop on, and one on the production server, and used the appSettings file to switch between production and development. If you can contact the database server from your workstation, then all is good.

So using the development mode to run off the production database server would be a good way to figure out what's happening. Then maybe take a step back and setup your environment.

appSettings.Development.json
appSettings.Production.json

and load the correct one in Programs.cs, this is just a sample of what you can do within the environment.
C#
bool.TryParse(Environment.GetEnvironmentVariable("ASPNETCORE_OPTIMIZE"), out var optimize);
bool.TryParse(Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER"), out var isDocker);
var env = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");

var config = new ConfigurationBuilder()
  .SetBasePath(Directory.GetCurrentDirectory())
  .AddJsonFile("hostSettings.json", optional: true, reloadOnChange: true)
  .AddJsonFile("secrets.json", optional: true, reloadOnChange: true)
  .AddJsonFile($"appSettings.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT")}.json", optional: false, reloadOnChange: true)
  .AddJsonFile($"certificate.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT")}.json", optional: false, reloadOnChange: true)
  .Build();
If it ain't broke don't fix it
Discover my world at jkirkerx.com

QuestionMVC Core 3.1 I need to display multiple images (with transparency) on top of each other as 1 image Pin
clemenslinders13-Apr-20 21:19
clemenslinders13-Apr-20 21:19 
AnswerRe: MVC Core 3.1 I need to display multiple images (with transparency) on top of each other as 1 image Pin
Richard Deeming14-Apr-20 0:51
mveRichard Deeming14-Apr-20 0:51 
GeneralRe: MVC Core 3.1 I need to display multiple images (with transparency) on top of each other as 1 image Pin
clemenslinders14-Apr-20 1:06
clemenslinders14-Apr-20 1:06 
GeneralRe: MVC Core 3.1 I need to display multiple images (with transparency) on top of each other as 1 image Pin
Richard Deeming14-Apr-20 1:30
mveRichard Deeming14-Apr-20 1:30 
GeneralRe: MVC Core 3.1 I need to display multiple images (with transparency) on top of each other as 1 image Pin
clemenslinders15-Apr-20 0:07
clemenslinders15-Apr-20 0:07 
Questionerror in logging when authenticating against active directory with asp.net core by ldap Pin
ElenaRez11-Apr-20 20:23
ElenaRez11-Apr-20 20:23 
AnswerRe: error in logging when authenticating against active directory with asp.net core by ldap Pin
jkirkerx15-Apr-20 8:42
professionaljkirkerx15-Apr-20 8:42 
QuestionReference non-core dll from core app Pin
Richard Jones24-Mar-20 6:29
Richard Jones24-Mar-20 6:29 
AnswerRe: Reference non-core dll from core app Pin
Afzaal Ahmad Zeeshan24-Mar-20 10:57
professionalAfzaal Ahmad Zeeshan24-Mar-20 10:57 
AnswerRe: Reference non-core dll from core app Pin
jkirkerx25-Mar-20 8:59
professionaljkirkerx25-Mar-20 8:59 
QuestionDisplay image and text Pin
Otekpo Emmanuel19-Mar-20 12:18
Otekpo Emmanuel19-Mar-20 12:18 
AnswerSolved: Display image and text Pin
Otekpo Emmanuel20-Mar-20 8:14
Otekpo Emmanuel20-Mar-20 8:14 
Questionhow hide menu link when submenu are hidden in .net core Pin
Member 1477503716-Mar-20 22:48
Member 1477503716-Mar-20 22:48 
AnswerRe: how hide menu link when submenu are hidden in .net core Pin
Member 1478358326-Mar-20 2:30
Member 1478358326-Mar-20 2:30 
QuestionHTTP Error 500.19 - Internal Server Error because of changing the URL Pin
simpledeveloper5-Mar-20 8:26
simpledeveloper5-Mar-20 8:26 
AnswerRe: HTTP Error 500.19 - Internal Server Error because of changing the URL Pin
Richard Deeming5-Mar-20 9:42
mveRichard Deeming5-Mar-20 9:42 
GeneralRe: HTTP Error 500.19 - Internal Server Error because of changing the URL Pin
simpledeveloper9-Mar-20 6:41
simpledeveloper9-Mar-20 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.