No authenticationScheme was specified, and there was no DefaultChallengeScheme found Cookies Authentication
I am using the below code for authentication in ASP.NET Core 2.0 using cookies ``` services .AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme) .AddCookie("MyCookieMiddlewar...
- Modified
- 10 Jun at 05:46
Cannot open new Jupyter Notebook [Permission Denied]
I have installed Jupyter Notebook on ubuntu 16.04 using pip3. I can execute `jupyter notebook` command. It opens and shows a list of current path directories. But I cannot create a new notebook(). It...
- Modified
- 27 Aug at 09:0
ServiceStack and Fody Costura
I'm pretty new to ServiceStack, so apologies in advance if the nomenclature is not 100%. I create a test self-hosted application and the ServiceStack Service was in the same assembly as the mainlin...
- Modified
- 18 Sep at 04:0
How can I use IConfiguration from my integration tests?
I have an API, and I'm trying to make some integration tests for it with XUnit. Here's my API controller constructor: ``` public class MyController : Controller { readonly IMyRepository _myReposi...
- Modified
- 18 Sep at 00:52
Is there something similar to C# regions in JavaScript? Visual Studio 2017
I am doing work for somebody who would like their JavaScript library organized into categories: CRUD functions, Form functions, etc. They really like the utility of regions in C# and are asking for th...
- Modified
- 17 Sep at 19:18
Unable to merge dex
I have Android Studio Beta. I created a new project with compile my old modules but when I tried launching the app it did not launch with the message: ``` Error:Execution failed for task ':app:transf...
- Modified
- 13 Nov at 22:36
Could not reliably determine the server's fully qualified domain name ... How to solve it in Docker?
I am just starting in Docker and I was following that [tutorial](https://www.youtube.com/watch?v=YFl2mCHdv24) that shows basically these steps: 1. Create a Dockerfile like this: From php:7.0-apache c...
Visual Studio Code: How to configure includePath for better IntelliSense results
I am a complete beginner to using Visual Studio Code and I have no clue what I am doing. I've searched around (maybe not enough), but I can't find just a simple explanation for someone like me on how...
- Modified
- 12 May at 23:40
MSBUILD throws error: The SDK 'Microsoft.NET.Sdk' specified could not be found
I'm trying to build a solution using msbuild command line and I keep getting this error: `error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.` The version of msbuild is the late...
Fall through in pattern matching
currently in c#7 (version 15.3.4) following code is valid to compile but both variables are legitimately unusable. ``` switch(fruit) { case Apple apple: case Orange orange: // impossible ...
- Modified
- 16 Sep at 15:34
How to upload a large file through an Azure function?
I am exploring Azure Functions. The scenarios I have tested so far work great. I am at a point where I am trying to figure out a way to upload files (20MB+) through an Azure Function. The idea is t...
- Modified
- 6 Dec at 22:19
Jest - how to test if a component does not exist?
How do I check if a component is not present, i.e. that a specific component has not been rendered?
Change arrow colors in Bootstraps carousel
I'm obviously missing something stupidly simple here. I have images with a white background so I want to be able to edit the arrows on the Bootstraps Carousel so they are visible. So many changing the...
- Modified
- 12 Jun at 18:50
Entity Framework Core 2 (Code First) updating value not working
I've been struggling with changing values in a database for a week and can't find out what I'm doing wrong. I managed to create tables, to add and delete entities but I can't change a value inside an ...
- Modified
- 15 Sep at 16:48
What is this invisible, performance eating cell in a recycling ListView?
So I've had performance issues in my Xamarin.Forms app (on Android) using a `ListView`. The reason is, because I'm using a very complex custom control in the ListView's `ItemTemplate`. To improve per...
- Modified
- 18 Sep at 10:17
opencv.imshow will cause jupyter notebook crash
I check other question on google or stackoverflow, they are talking about run cv2.imshow in script, but my code run in jupyter notebook. Here is my configuration: 1. ubuntu 16.4x64 2. python 3.5 3....
- Modified
- 18 Jul at 15:31
How to add an item to an ArrayList in Kotlin?
How to add an item to an `ArrayList` in Kotlin?
- Modified
- 17 Jun at 11:33
kubectl unable to connect to server: x509: certificate signed by unknown authority
i'm getting an error when running kubectl one one machine (windows) the k8s cluster is running on CentOs 7 kubernetes cluster 1.7 master, worker Here's my .kube\config ``` apiVersion: v1 clusters: ...
- Modified
- 15 Sep at 07:42
accessing appsetting.json values in startup.cs
I understand how to Configure services for appsettings.json and inject them into a controller. However, I need to use the values in the ConfigureServices when I configure Auth. How would I do this? ...
- Modified
- 15 Sep at 01:59
how to impersonate a user via odata
We have been succesful in using the odata v8.1 endpoint in 2016 to [impersonate a user.](https://msdn.microsoft.com/en-us/library/gg334744.aspx) Please note that the intended request flow is: Exam...
- Modified
- 15 May at 20:57
How to set up the DbContext in xUnit test project properly?
I have the following code to set up DBContext in the .Net core 2.0 console program and it's injected to the constructor of the main application class. ``` IConfigurationRoot configuration = GetConfig...
- Modified
- 14 Sep at 20:59
JSON.stringify (Javascript) and json.dumps (Python) not equivalent on a list?
In javascript: ``` var myarray = [2, 3]; var json_myarray = JSON.stringify(myarray) // '[2,3]' ``` But in Python: ``` import json mylist = [2, 3] json_mylist = json.dumps(mylist) # '[2, 3]' <-- Note...
- Modified
- 18 Nov at 12:32
Custom IUserAuthRepository with Servicestack
I'm in the process of trying to set up a server for a personal project. I'm using ServiceStack.Core with a Neo4j graph database as my persistence layer. I would like to set up user authentication usi...
- Modified
- 14 Sep at 17:2
ASP.NET Core 2 AuthenticationSchemes
There are several authentication schemes but I can't find any documentation on them. How do they differ? ```csharp options.DefaultScheme options.DefaultChallengeScheme options.DefaultForbidSchem...
- Modified
- 2 May at 02:48
C# HttpClient An existing connection was forcibly closed by the remote host
I'm working on an integration with Alternative Payments using their [hosted page integration](http://www.alternativepayments.com/developers/API/?shell#create-transaction). Their C# SDK does not have t...
- Modified
- 1 Aug at 14:47