Using serilog with azure application insights and .Net core

Currently, I am using azure application insights directly for logging as given in this link [Use latest version of Application Insight with .net core API](https://stackoverflow.com/questions/61772015/...

ServiceStack.Text JsonConfig Scoping Ignoring Attributes

I'm looking to effectively create logic via attributes on a .net core API project that, depending on a attribute will serialise or de-serialise while ignoring certain properties. Eg. If a property w...

20 May at 03:35

ImportError: cannot import name 'joblib' from 'sklearn.externals'

I am trying to load my saved model from `s3` using `joblib` ``` import pandas as pd import numpy as np import json import subprocess import sqlalchemy from sklearn.externals import joblib ENV = 'dev...

InvalidOperationException: Can't use schemaId .. The same schemaId is already used for type

I receive the following error. ``` InvalidOperationException: Can't use schemaId "$Registration" for type "$PortalService.Models.Registration". The same schemaId is already used for type "$PortalServi...

30 Apr at 19:49

How to have JSON String without characters like '\u0022' or '\' while converting DataTable to JSON String using NewtonSoft in .Net Core 3.1

I am writing a simple API in .net core 3.1. To convert my DataTable to JSON String I am using NewtonSoft Library with following code: ``` string JSONresult = JsonConvert.SerializeObject(dt, Formattin...

Utilize JWTBearer from multiple Identity Providers in ServiceStack API

Is it possible for a ServiceStack api to accept jwt tokens from multiple identity providers? I have one admin application that will be calling all our apis across environments. I need to allow my api...

18 May at 13:29

iPhone is not available. Please reconnect the device

I'm on iOS 13.5 and using Xcode 11.4 to build on to it. I'm getting this error message: [](https://i.stack.imgur.com/SrbVf.png) The `KBlackberry` is my iPhone device name. I tried restarting the devic...

20 Sep at 11:12

Difference between MemoryPool<T> and ArrayPool<T>

What is the difference between [MemoryPool](https://learn.microsoft.com/en-us/dotnet/api/system.buffers.memorypool-1?view=netcore-3.1) and [ArrayPool](https://learn.microsoft.com/en-us/dotnet/api/syst...

17 May at 17:57

Web service on Linux

Post the question in a different way, because the previous one was closed because it was opinion-based. In the past I have developed several .NET applications that consumes WCF services hosted on IIS ...

17 May at 15:59

Endpoint contains authorization metadata, but a middleware was not found that supports authorization

I'm currently in the process of moving my locally developed app to an Ubuntu 16.04 droplet in digital ocean. I'm using .NET Core 3.1 and have configured my server for it just fine. However, when I nav...

Async void lambda expressions

A quick [google search](https://www.google.com/search?q=avoid%20async%20void&cad=h) will tell you to avoid using `async void myMethod()` methods when possible. And in many cases there are [ways to mak...

15 May at 20:12

Best practices to Fire and Forget an async method to send non essential metric

Waiting for a non-essential metrics to be sent makes no sense to me, as it adds latency (waiting for the server's response) on each call to the back-end dotnet core service, which might happen multipl...

The connected services component Microsoft WCF web service reference provider failed

I upgraded my project from dotNetCore 2.2 to 3.0 two weeks ago. Now I want to add a Webservice to it. I am using Visual Studio 2019 But I got this error when I clicked on **Microsoft WCF Web Service R...

6 May at 20:29

Stop VS from automatically adding using directives

I don't mind the using directives which are automatically created when the script is created. Those are fine. What I'm talking about are the using directives which are at the top of the script while ...

25 Feb at 03:36

ServiceStack.Redis Unknown Reply on Integer response and Zero Length Response

I am running into errors using ServiceStack's Redis client in production. The error is "Unknown reply on integer response: 43OK" for and "Zero length response" for . The application uses Redis Sent...

14 May at 09:41

Jest won't transform the module - SyntaxError: Cannot use import statement outside a module

I couldn't get rid of this `SyntaxError: Cannot use import statement outside a module` error no matter what I have tried and it got so frustrating. Is there anybody out here solved this issue? I have ...

13 May at 20:7

Skip JWT Auth during Tests ASP.Net Core 3.1 Web Api

I a have a very simple app with one JWT authenticated controller: ``` [ApiController] [Authorize] [Route("[controller]")] public class JwtController : ControllerBase { public JwtController() { }...

onChange event not firing Blazor InputSelect

I have the following Code for an InputSelect ``` <InputSelect class="form-control form-control form-control-sm" placeholder="Role" disabled=...

How to login using Windows Authentication in .NET Core with Servicestack

In previous applications using ServiceStack, me and my team have been using .NET Framework and the included AspNetWindowsAuthProvider. Having switched to .NET Core we have discovered that the includ...

ValueError: Shapes (None, 1) and (None, 2) are incompatible

I am training a facial expression (angry vs happy) model. Last dense output layer was previously 1 but when i predict an image it's output was always 1 with 64 % accuracy. So i changed it to 2 for 2 ...

22 Sep at 17:16

How do I disable the variable type hint for a 'var' declared variable in Rider?

In Jetbrains Rider the type of a 'var' declared variable is shown as hint by default. I don't want that. How can I get rid of it? [](https://i.stack.imgur.com/1iRFC.png)

11 May at 10:20

Decompressing requests using ServiceStack within a .Net Core Alpine container

I'm building a containerized micro-service that uses ServiceStack running with .Net Core on the ASPNET Core Alpine docker image. I want to be able receive compressed requests containing Gzipped JSON w...

Send additional parameters to social login

Is there anyway to save additional data to the session when doing a social login/signup? I noticed that if I send `returnUrl` parameter to the SS OAuth endpoint (i.e. `/auth/google?retunUrl=...`) the...

9 May at 17:56

Could not build wheels since package wheel is not installed

I am having this problem with wheels: 'Could not build wheels for ..., since package 'wheel' is not installed.' with several packages and I have no idea what to do since - as you can see in the very e...

8 May at 19:3

Does C# await keyword cause the function call to block?

I am trying to grok how async and await works in C#. Consider the two snippets below: ``` var appIdTask = GetAppIdAsync(); var clientSecretTask = GetClientSecretAsync(); var appId = await appIdTask;...

8 May at 09:32