Could not install package 'Microsoft.Extensions.DependencyInjection.Abstractions 2.0.0

I'm attempting to use Net Core in my mvc application for security policies. Articles I've read said I need to install DependencyInjection which I'm doing through NuGet in VS 2017. I'm getting the fol...

Before and After pseudo classes used with styled-components

What is the proper way to apply `:before` and `:after` pseudo classes to styled components? I know that you can use `&:hover {}` to apply the `:hover` pseudo class to a styled-component. Does th...

How to get docker toolbox to work with .net core 2.0 project

I'm getting an error trying to use the Docker functionality with my .NET core 2.0 project. I've been getting an error message saying > Visual Studio Container Tools requires Docker to be running bef...

Only allow `EncryptedMessage` for ServiceStack host

I am building a [ServiceStack](https://servicestack.net) service that runs on several dozen embedded devices. I'd like to ensure that all communication to the device occurs over an encrypted channel....

24 Aug at 15:4

JSON parse error: Can not construct instance of java.time.LocalDate: no String-argument constructor/factory method to deserialize from String value

I am new to Spring Data REST project and I am trying to create my first RESTful service. The task is simple, but I am stuck. I want to perform CRUD operations on a user data stored in an embedded dat...

Asp.net Core 2 API POST Objects are NULL?

I have a .net Core 2 API setup with some test function. (Visual Studio 2017) Using postman I do a post with the raw data to that method, but the model is just blank? Why? ``` // POST api/Product/tes...

24 Aug at 13:6

ASP.Net Core 1 Logging Error - The description for Event ID xxxx from source Application cannot be found

I would like to write to the Windows Event Log from an ASP.Net Core application's Controller method. The issue I have is that, where I expect log information to be written I keep getting the error/in...

31 Aug at 09:24

LocalDB is not supported on this Platform

I'm trying to launch `.Net Core 2.0` application on `Ubuntu 17.04`. I developed it on Windows 10 before and it works well. The problem is that when I run `dotnet ef database update` I get the next exc...

Exclude certain column from Entity Framework select statment

I have an image column in the product table in a SQL Server database. The image column is used to save the images as bytes. I know it is better to make a separate table for images, but I did not do t...

24 Aug at 10:19

Customize JSON property name for options in ASP.NET Core

I want to use different property names for configuration, when loading the configuration from a JSON file. ``` public class MinioConfiguration { [DataMember(Name = "MINIO_ENDPOINT")] public s...

24 Aug at 08:6

How can I use an ES6 import in Node.js?

I'm trying to get the hang of ES6 imports in Node.js and am trying to use the syntax provided in this example: ### Cheatsheet Link I'm looking through [the support table](http://node.green/), but I...

12 Oct at 19:39

Set color for each vertex in a triangle

I want to set each three vertex of a triangle from a mesh red, blue and green. As seen in the first part [this](https://codea.io/talk/discussion/3170/render-a-mesh-as-wireframe) tutorial which is for...

24 Aug at 06:5

Visual Studio Help - The "RunCommand" property is not defined

I'm using Microsoft Visual Studio Community 2017. I have created a project with multiple classes to be compiled. The primary class I want the application to run first has `public static void Main(stri...

24 Aug at 03:16

Configuration for console apps .net Core 2.0

In .net Core 1 we could do this: ``` IConfiguration config = new ConfigurationBuilder() .AddJsonFile("appsettings.json", true, true) .Build(); ``` And that gave use...

6 Sep at 16:59

Call an action from within another action

I have the following setup for my actions: ``` get1: ({commit}) => { //things this.get2(); //this is my question! }, get2: ({commit}) => { //things }, ``` I want to be able to call one action f...

5 Oct at 11:53

Newtonsoft.Json.JsonSerializationException (Error getting value from 'Value' on 'System.Data.SqlTypes.SqlDouble) serializing SqlGeography

I tried to serialize a `DataTable` object to Json using Newtonsoft.Json version 'Newtonsoft.Json.10.0.3' in a database SQL server 2012. The table has a column with type 'geography', which contains ...

How to delete all columns in DataFrame except certain ones?

Let's say I have a DataFrame that looks like this: ``` a b c d e f g 1 2 3 4 5 6 7 4 3 7 1 6 9 4 8 9 0 2 4 2 1 ``` How would I go about deleting every column besides `a` a...

23 Aug at 17:40

Usage of Var Pattern in C# 7

I've seen this example of var pattern in the new C# 7 ``` if (o is var x) Console.WriteLine($"it's a var pattern with the type {x?.GetType()?.Name}"); ``` What is the different of just use: ``` va...

23 Aug at 16:4

Meaning of "The server returned an invalid or unrecognized response" in HttpClient

When awaiting an `HttpClient.PostAsync` response, I sometimes see an error stating : ``` System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHtt...

23 Aug at 15:22

ServiceStack + .NET Core + Kestrel = Swagger (OpenAPI) not working

I am trying to create a ServiceStack REST API project. So far I have everything working except Swagger (OpenAPI). When I load the Swagger UI it shows no APIs and I can see from the /openapi endpoint...

23 Aug at 15:59

Custom IExceptionHandler

I'm trying to get a custom `IExceptionHandler` to work with my Azure Function (C# class library). The idea is to have my own exception handler for unexpected exceptions that will contain my own in-mem...

IDbCommand missing ExecuteReaderAsync

I'm using .NET Core 2.0. I've got the following function that calls `IDbCommand.ExecuteReader` ``` public async Task<IEnumerable<Widget>> ReadAllAsync( System.Data.IDbConnection databaseConnectio...

Display a readonly field in ASP.NET Core

I am new in ASP.NET Core and would like to ask about displaying a field in w a view. I have a ``` class Person { public string Name {get; set;} public string Nickname {get; set;} } ``` ...

How to check for the previous path searched on a maze C#

I am trying to code an algorithm that solves a maze problem but I am facing some difficulty to apply it correctly. The algorithm runs over the walls instead of changing the direction after finding t...

25 Aug at 07:54

Can't inherit from IdentityUser and IdentityRole in ASP.NET Core 2.0

I'm trying to finish updating to .NET Core 2.0 but a couple of errors pop up: I have two classes, ApplicationRole and ApplicationUser which inherit some properties from IdentityRole and IdentityUse...

23 Aug at 04:46