404 from server events heartbeat endpoint

We are recieving proportionately low but consistent 404 from server events from a channel subscription. This seems to only be via our react interface which uses the typescript adapter here: [https://...

31 Jan at 13:28

How to return 403 instead of redirect to access denied when AuthorizeFilter fails

In Startup.ConfigureServices() I configure authorization filter like this: ``` services.AddMvc(options => { options.Filters.Add(new AuthorizeFilter(myAuthorizationPolicy)); }) ``` and I use eit...

How to detect we're running under the ARM64 version of Windows 10 in .NET?

I created a C# .NET console application that can run in Windows 10 x86, x64 and ARM64 (via emulator layer). I would like to know how to detect that the application is running in those platforms. I kno...

1 Sep at 11:7

Microsoft.SqlServer.Types incompatible with .NET Standard

I'm attempting to convert all of our C# class libraries from .NET Framework to .NET Standard projects, as we are starting to leverage .NET Core so need these to be consumable by both .NET Core and .NE...

ServiceModel vs ServiceInterface in Servicestack

What is the correct approach to structure a ServiceStack project? As of now I do it in the following way: Under `ServiceModel`, I have all the models (entities), and have defined the different route...

30 Jan at 23:1

How do I run/test my Flutter app on a real device?

I want to run/test (not automated test) my Flutter app on a real iPhone and Android phone during development. However, Flutter docs seem to only document how to do it with the iOS simulator or Android...

Nothing happens when clicking on routerLink href in Angular 6.1

Nothing happens when I click on the route defined in the following way. ``` <li> <a class="nav-link" routerLink="/about" routerLinkActive="active">About Us</a> </li> <router-outlet></router-outl...

How to read request body multiple times in asp net core 2.2 middleware?

I tried this: [Read request body twice](https://stackoverflow.com/questions/31389781/read-request-body-twice) and this: [https://github.com/aspnet/Mvc/issues/4962](https://github.com/aspnet/Mvc/issues...

30 Jan at 14:18

Learning asyncio: "coroutine was never awaited" warning error

I am trying to learn to use asyncio in Python to optimize scripts. My example returns a `coroutine was never awaited` warning, can you help to understand and find how to solve it? ``` import time i...

30 Jan at 13:39

"InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden]'"

I've deployed my API and Client app on Docker, but for the life of me, the web app cannot call the API, I keep getting an exception. I added the following line suggested in other posts, but it did not...

How are protobuf packages used?

I don't understand the first part of the last sentence on packages from google's Python protobuf docs: > The `.proto` file starts with a package declaration, which helps to prevent naming conflicts be...

TypeScript interface signature for the onClick event in ReactJS

The official [reactjs.org](https://reactjs.org/tutorial/tutorial.html) website contains an excellent introductory tutorial. The tutorial snippets are written in JavaScript and I am trying to convert ...

30 Jan at 04:0

ASP.NET Core API - ActionResult<T> vs async Task<T>

If I'm creating an API using .NET Core 2.1 with some typical POST and GET methods, which return type for those methods is most suitable, `ActionResult<T>` or `async Task<T>`? One of my friends uses th...

30 Jan at 03:57

Is there a keyboard shortcut to maximize the Game window in Unity in Play Mode?

+ maximizes most windows in unity 2018 when in edit mode. Is there a keyboard shortcut to maximize the Game window when you're playing your game? Can't find anything in the docs.

8 Jun at 10:50

How do I prevent Conda from activating the base environment by default?

I recently installed anaconda2 on my Mac. By default Conda is configured to activate the base environment when I open a fresh terminal session. I want access to the Conda commands (i.e. I want the pat...

26 Mar at 04:30

Do we really need to implement IDisposable in Repository or UnitOfWork classes?

, let's see what Microsoft says about Asp.Net Core's default Dependency Injection services: > The framework takes on the responsibility of creating an instance of the dependency and disposing of it w...

Deserializing json integers to longs results in exceptions and null values, seemingly randomly

I have the weirdest problem that suddenly occurred: In some (many) cases, suddently, parsing a DTO that contains `long` fails, depending on the value of the `long`. Let's look what happening. I am us...

2 Feb at 10:36

Command Failed: gradlew.bat installDebug error whenever installing dependencies like navigation, firebase, icons etc in React-Native

When ever i install any dependency in my react native project and when ever i use link command for e.g react-native link react-native-gesture-handler this causes me an error shown in the image [1]. It...

How to send multipart/form-data to ASP.NET Core Web API?

I'm trying to send a image and text fields to an API endpoint but I'm received > Unsupported content type 'multipart/form-data; boundary=---------------------------81801171514357 This is a ASP.NET Cor...

How to fix swagger.json not found in .net core 2.2 app

I'm deploying my .net core app on IIS server and facing the issue in swagger UI where swagger.json not found. When I run it locally (Development environment) everything is working perfectly but when I...

17 Sep at 18:54

IOC injection of IServerSideEvents

I am writing unit tests for my IOC. One of my interfaces injects IServerEvents. I am including events via: ``` ServerEventsFeature serverEventsFeature = new ServerEventsFeature() { ...

30 Jan at 10:54

EF Core with GraphQL

I'm currently exploring the GraphQL development and I'm currently exploring what kind of SQL queries are Generated via EF Core and I observed that no matter that my GraphQL query includes only a few f...

No suitable constructor found for entity type string

Yesterday I came her with a similar question about my own made entity type that head some errors. I fixed up these errors but now it throws one on entity type string and I have absolutely no clue how ...

ValueTuples lose their property names when serialized

While trying to serialize a named value tuple to JSON string, it loses the names assigned to items ``` (string type, string text) myTypes = ("A", "I am an animal"); var cnvValue = JsonConvert.Seriali...

28 Jan at 08:47

c# asp.net core Bearer error="invalid_token"

Can someone please help me to solve this problem? I'm testing the API using Postman I'm following a tutorial about asp.net core. And I'm on its Authentication part now. I don't really understand whats...

21 Feb at 17:7