Authorization header requires 'Credential' parameter
We are using Identity Server4 with .NET Core and deploy the application as AWS Serverless lambda function. When are calling the token endpoint to generated access token we got the following error mess...
- Modified
- 9 Dec at 15:57
Error `Async test method must have non-void return type` when upgrading from NUnit 2 to NUnit 3
I have to refactor am unit test from NUNIT 2 to NUNIT 3 and the following syntax throws an error: ``` var expectedResponseMessage = new HttpResponseMessage(); Func<Task<HttpResponseMessage>> continua...
- Modified
- 18 Apr at 13:47
Error: 'types' can only be used in a .ts file - Visual Studio Code using @ts-check
I am starting to use TypeScript in a Node project I am working on in Visual Studio Code. I wanted to follow the "opt-in" strategy, similar to Flow. Therefore I put `// @ts-check` at the top of my `.js...
- Modified
- 1 Mar at 19:29
How to use .settings files in .NET core?
I'm porting an application to .NET core which relies on a `.settings` file. Unfortunately, I can't find a way to read it from .NET core. Normally, adding the following lines to the `.csproj` would gen...
Disable "Name can be simplified" IDE0003 fix hint
Visual Studio 2017 shows a hint for unnecessary `this` qualifiers even when the inspection is disabled in the options. This is how it looks:  (First line is th...
- Modified
- 19 Feb at 00:6
.NET Core Singleton Creation is called multiple times
I'm registering a service as a singleton in .NET Core. Yet I'm seeing the constructor for the singleton called multiple times. ``` services.AddSingleton<DbAuthorizationOptions, ContextAuthorizationO...
- Modified
- 18 Feb at 21:53
C# How to Open HEIC Image
I have an image upload form in ASP.NET that supports JPG/PNG/GIF and I thought it would be enough. Until Apple introduced their new HEIC image format. How do I handle that in C#? Searching for C# and...
How to debug "You do not have permission to view this directory or page"?
After I published an ASP.NET Core app to Azure from Visual Studio 2017 I am getting this message when I click on the app url: [](https://i.stack.imgur.com/8sSbyh.jpg) It was working fine before. Is th...
- Modified
- 6 Mar at 13:48
Usage of Fody/Costura and Obfuscar in Visual Studio 2017
I would like to ask if it is possible to use [Fody-Costura](https://github.com/Fody/Costura), which embeds dependencies into the executable and [Obfuscar](https://github.com/lextm/obfuscar), for obfus...
- Modified
- 19 Feb at 08:44
Tensorflow estimator ValueError: logits and labels must have the same shape ((?, 1) vs (?,))
I'm classifying movie reviews as positive or negative using binary crossentropy. So, when I'm trying to wrap my keras model with tensorflow estimator, I get the error: ``` Tensorflow estimator ValueEr...
- Modified
- 30 Mar at 09:29
Is the Chain of Responsibility used in the .NET Framework?
I am trying to learn more about the Chain of Responsibility design pattern. Every single example I see online gives the simplest example i.e. a Logger that writes a different message to the Console de...
- Modified
- 6 May at 18:46
How to set default content-type to Json with servicestack serializer
I want if client did not provide content-type in calling web api, in server side set that to application/json, I found this : ``` SetConfig(new HostConfig { PreferredContentTypes = new []{ MimeTy...
- Modified
- 18 Feb at 17:36
How to reference Microsoft.JQuery.Unobtrusive.Ajax within my ASP.NET Core MVC project
I am trying to use `Microsoft.JQuery.Unobtrusive.Ajax`. I started by installing the package using NuGet and as expected I am able to see it among my dependencies. [](https://i.stack.imgur.com/i5F87.j...
- Modified
- 16 Jun at 14:4
package org.springframework.boot does not exist
I am trying to run a Small basic Spring boot program on my machine and I when I run `clean compile` (even before trying spring-boot:run) on maven I get the following Error : ``` [INFO] --------------...
- Modified
- 18 Feb at 03:22
Module not found: Can't resolve 'bootstrap/dist/css/bootstrap-theme.css' in 'C:\react-form-validation-demo\src'
I am newbie in react.js. I have been following instruction in [how-to-do-simple-form-validation-in-reactjs](https://learnetto.com/blog/how-to-do-simple-form-validation-in-reactjs) and I can run [http:...
- Modified
- 27 Aug at 22:11
How do I correctly use EF Core with AutoMapper ProjectTo and Unions?
## My Setup - - - --- ## Problem I have a project with a DTO called `PersonDetail` and an Entity called `Person`. When I call ``` db.People.Where(p => p.FirstName == "Joe").Union(db.P...
- Modified
- 11 Nov at 13:21
Store files in database using Entity Framework Core
How to store files in a SQL Server database using Entity Framework Core (Code-First) in an ASP.NET Core app? I have tried using `Filestream` but unfortunately I get this error: > Cannot call Propert...
- Modified
- 17 Feb at 21:33
How to use string interpolation in a resource file?
I would like to use a resource file to send an email. In my resource file I used a variable "EmailConfirmation" with the value "Hello {userName} ... " In my class I used: ``` public static string me...
- Modified
- 18 Feb at 14:12
ServiceStack and .NET Core Middleware
I wonder if it is possible to use ServiceStack on .NET core along with middleware. My use case is that I'd like to have API implemented with ServiceStack, and use authorisation policies and openid co...
- Modified
- 17 Feb at 10:17
What exactly is 'UseAuthentication()' for?
I have a question regarding authentication in ASP.NET Core 2: what exactly is the call for? Is it a basic prerequisite so that I can implement my custom authentication logic? I already had a look a...
- Modified
- 17 Feb at 01:24
How to use Functions of another File in Dart / Flutter?
I have a Flutter app where I'm using the flutter_web_view package. I'm using it over several different files and would love to create its own file and simply reference with the _launchwebview functio...
Failing to understand what the expression *(uint32_t*) does
I am failing to understand what the expression `*(uint32_t*)` does. I have broken the statement down to an example that declares the parts so I can try and interpret what each one does. ``` uint32_t* ...
Error when running unit tests in visual studio: Test-case objects missing
I'm getting the following error when running unit tests from visual studio using resharper: `Test-case objects missing for the following elements: ... Rebuild the project and try again` In the tool...
- Modified
- 16 Feb at 18:4
Dynamically change a type with C#
I am very new to C# and ServiceStack and I am working on a small project that consists on calling a third party API and loading the data I get back from the API into a relational database via ServiceS...
- Modified
- 16 Feb at 08:51
Dockerfile can't see local file or private nuget server
I am trying to start my .net core web api on container tech. using docker. Environments=Windows 10,Visual Studio Docker version: > Client:Version: 17.12.0-ceAPI version: 1.35Go version: ...
- Modified
- 16 Feb at 07:29