ServiceStack.Redis: No Redis sentinels were available

When sentinel excute the method of start(), it will throw an exception that No Redis sentinels were available. I've tried both approaches, but neither worked. - ## 1.Sentinel With Password ```...

14 Aug at 16:56

Why is the call ambiguous? 'Task.Run(Action)' and 'Task.Run(Func<Task>)'

Considering the following code: ``` public void CacheData() { Task.Run((Action)CacheExternalData); Task.Run(() => CacheExternalData()); Task.Run(CacheExternalDataTask); Task.Run(Cac...

14 Aug at 13:52

servicestack.redis can not visit sentinel

How is the sentry's password accessed?Why can't I visit my sentinel? I've tested my sentinels are accessible from the command line. I have changed the account password in the picture, which is not r...

14 Aug at 14:14

Readonly struct vs classes

Assuming you only have immutable types and you have all your code up to date to C# 7.3 and your methods are using the `in` keyword for inputs Why would you ever use a class instead of a readonly stru...

14 Aug at 09:13

Not being redirected to razor view and instead seeing snapshot page using servicestack 5.1

1. I have made a self hosting console application. -- added Plugins.Add(new RazorFormat()); in configuration -- added a default.cshtml in the same project. 2. Added an empty .Net project and added fo...

14 Aug at 07:27

Difference between User and System Installer of Visual Studio Code

Visual Studio code offers User and System Installer but I have not found any description about the differences between these two options. Could someone please shed a light on this for me?

6 Jan at 13:52

Comparison between datetime and datetime64[ns] in pandas

I'm writing a program that checks an excel file and if today's date is in the excel file's date column, I parse it I'm using: ``` cur_date = datetime.today() ``` for today's date. I'm checking if ...

13 Aug at 17:11

VSCode "please clean your repository working tree before checkout"

In Visual Studio Code I made some changes which I do not want to commit en sync yet. However, after my holiday, I want to sync the files from the server (changes from my colleagues). So In Visual Stud...

13 Aug at 07:44

Cannot implicitly convert type 'Microsoft.AspNetCore.Mvc.BadRequestObjectResult'

I have an asp.net core 2.1 project and I'm getting the following error in my controller action: > Cannot implicitly convert type 'Microsoft.AspNetCore.Mvc.BadRequestObjectResult' to 'System.Collect...

13 Aug at 07:33

how to pass data from angular material dialog to parent component?

I'm using angular 6 and I have a button which opens a dialog. in my dialog, I have a form that gets user's data and then I have two buttons to submit and cancel. I tried to show my form's data in the ...

SpeechSynthesizer doesn't get all installed voices 3

I have added many voices using "Add language" under region and language. These appear under Text-to-speech in Speech. (I am using Windows 10) I want to use these in my app with the `SpeechSynthesizer`...

sh: 1: node: Permission denied

Tried to run this command on ubuntu 18.04 ``` npm install -g pngquant-bin ``` but I got this error, ``` [..................] | fetchMetadata: sill resolveWithNewModule npm-conf@1.1.3 checking ins...

17 May at 13:46

The child/dependent side could not be determined for the one-to-one relationship

I am trying to update my database with "update-database" command in package manager console, But I have this kind of error: ``` The child/dependent side could not be determined for the one-to-one re...

ASP.NET Core MVC Localization Warning: AcceptLanguageHeaderRequestCultureProvider returned the following unsupported cultures

I have an ASP.NET Core MVC app that use resource localization. It currently supports only one culture (fa-IR) and I want to all localizations be processed based on this culture. In ASP.NET Core 1.1 I ...

IdentityServer4 discovery document returns 404

I am following the quick start for ID Server 4 with one exception that I am working on a Mac with .NET Core 2.1.302. Somehow when I navigate to `http://localhost:5000/.well-known/openid-configuration...

21 Apr at 11:52

Xamarin.Essentials "The current Activity can not be detected. Ensure that you have called Init in your Activity or Application class."

My application gives an error: > The current Activity can not be detected. Ensure that you have called Init in your Activity or Application class. I use the emulator Genymotion. GPS enabled ``` pub...

12 Aug at 17:6

Android Material and appcompat Manifest merger failed

I have next grade ``` dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0-rc01' implementation 'com.androi...

Random values seem to be not really random?

Trying to make a simple bacteria-killing game using WinForm in C#, but the bacteria (I am using `Panel` for the time being) doesn't seem to move around at random. Specifically, the problem I am havi...

10 Aug at 19:52

load WCF service by environment in .net core project

I have a problem while adding WCF in the .NET core project. When I used .net in the past I can add multiple environments in `web.config` so I can load the correct web service at runtime (Dev, Rec, Pro...

21 Dec at 18:41

Logging using AOP in .NET

I want to implement AOP for the logging in my .NET Core solution. I've never used it before and I've been looking online and cant seem to see any examples of people using it with Core. Does anyone kno...

AADSTS70011: The provided value for the input parameter 'scope' is not valid

So I have a scenario wherein the application should add users to a group on certain conditions. Also when the application starts running users should not be asked to login their microsoft id/pwd. So I...

27 Jun at 14:52

Read custom settings from local.settings.json in Azure functions

I am trying to retrieve a custom setting from local.settings.json file. Example I am trying to read tables list present in the below local.settings.json file ``` { "IsEncrypted": false, "Values":...

10 Aug at 07:37

Difference between readonly keyword/Expression-bodied members in c#?, which is better?

In c# readonly members can be reduced to readonly auto properties/expression-bodied members for immutable members is expression-bodied members are better then using readonly keywords? Using readonly ...

10 Aug at 07:32

Hangfire .NET Core - Get enqueued jobs list

Is there a method in the Hangfire API to get an enqueued job (probably by a Job id or something)? I have done some research on this, but I could not find anything. Please help me.

The Specified SDK "Microsoft.NET.Sdk" was not Found

So I'm using Rider without Visual Studio installed and its working fine for .NET but for .NET Core I'm getting the error: > Project 'Test2' load failed: Das angegebene SDK "Microsoft.NET.Sdk" wurde ni...

24 Feb at 08:17