Microsoft.AspNetCore.Antiforgery was not found

I'm deploying a asp.net core 2.0 website to IIS 10. I've made sure that my app is using the correct configuration for ISS in the program.settings file. ``` public class Program { public static v...

How can I add a border to a widget in Flutter?

I'm using Flutter and I'd like to add a border to a widget (in this case, a `Text` widget). I tried `TextStyle` and `Text`, but I didn't see how to add a border.

28 Feb at 16:56

Use the JWT tokens across multiple domains with Typescript JsonServiceClient - ServiceStack

After getting answers to [this SO question](https://stackoverflow.com/questions/47419921/what-is-the-point-of-the-httponly-ss-tok-bearertoken-cookie-in-servicestack-auth), I realized that I have a cro...

21 Nov at 20:33

Check if a list contains all of another lists items when comparing on one property

I am learning Linq and I have two object lists. I want to compare one of these lists against the other to see if all of one of the properties of the objects within it can be matched to those in the ot...

26 Oct at 06:26

Read appsettings.json from a class in .NET Core 2

I need to read a list of properties from `appsettings.json` file (section: `placeto`) in a business class, but I haven't been able to access them. I need these properties to be public. I add the file...

21 Nov at 19:58

What is the point of the httponly ss-tok bearerToken cookie in ServiceStack Authentication

I understand from security perspective the concept of an httponly flag for the value of Set-Cookie Response header and preventing XSS attacks. What I do not understand is, what is ServiceStack doing ...

.net core : incomplete JSON response

I'm trying to build simple API for training, in my database I got users (firstname, lastname, email password, `list<sports>`) and sports ( name, userID). All is okay when I want to get my users, I got...

How does the C# garbage collector find objects whose only reference is an interior pointer?

In C#, `ref` and `out` params are, as far as I know, passed by passing only the raw address of the relevant value. That address may be an interior pointer to an element in an array or a field within a...

Selenium ChromeDriver how to disable the message:"DevTools on ws

So I am creating a bot with chrome headless browser and it works just fine. I had quite a lot warnings so I disabled them after reasearch with those commands: ```csharp ChromeOptions option = new ...

Where to declare variable in react js

I am trying to declare a variable in a react-js class. The variable should be accessible in different functions. This is my code ``` class MyContainer extends Component { constructor(props) { ...

16 Aug at 18:57

Xamarin.Forms 2.5.0 and Context

Today I updated to [Xamarin.Forms 2.5.0](https://developer.xamarin.com/releases/xamarin-forms/xamarin-forms-2.5/2.5.0-sr1/) and saw, that I get the following warnings: - > Warning CS0618 'Forms.C...

The name WebHost does not exists in current context

I'm migrating from ASP.NET Core 1.x to v2.0 with the help of following post on docs.microsoft: [https://learn.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/](https://learn.microsoft.com/en-us/asp...

C# BeforeFieldInit explanation confusion

I read through Jon Skeet's [article][1] about `beforefieldinit` and I stumbled upon a question. He mentions that the type initializer can be invoked at any time before the first reference to a static ...

6 May at 00:56

Why caching access token is consider bad in oauth2?

I am following this article for revoking user access : [http://bitoftech.net/2014/07/16/enable-oauth-refresh-tokens-angularjs-app-using-asp-net-web-api-2-owin/](http://bitoftech.net/2014/07/16/enable...

How to "Add Service Reference" in .NET Standard project

I would like to do "Add Service Reference" in .NET Standard project.(Visual Studio 2017) I installed "System.ServiceModel.Http" and "System.ServiceModel.Security" on NuGet in order to make WCF access ...

11 Jan at 13:29

How to prevent HttpClient from sending the Connection header

HttpClient includes this as 'Keep-Alive' by default. I've been able to set it to 'Close' using `httpClient.DefaultRequestHeaders.ConnectionClose = true;` but how do I omit it altogether?

21 Nov at 11:57

AWSSDK Got error `Unable to load DLL 'Crypt32.dll'` in macos

I don't know the reason but it might be because macOS was recently updated to `10.13.1 (17B48)`. The code that used to worked some weeks ago just crash with this error > "Unable to load DLL 'Crypt32...

8 Mar at 07:26

ServiceStack Text - Serialize to JSON with CamelCase on a Dynamic variable

``` var results = await db.SelectAsync<dynamic>(q); ``` If I do `ToJson()` on the results, the names stay in PascalCase and not in CamelCase even if I use `ToCamelCase()` ``` var results = await db...

JwtAuthProvider issue bearToken in response header that is not httpOnly - ServiceStack

I have set ServiceStack AllowNonHttpOnlyCookies to true: ``` Config.AllowNonHttpOnlyCookies = true; ``` This did remove httponly from some Set-Cookie in the response header: [](https://i.stack.img...

21 Nov at 02:5

RefreshToken undefined after successful Authentication ServiceStack

- - The following code calls my Auth microservice and successfully authenticates a user and returned there bearer token: ``` var request = new Authenticate(); request.provider = "credentials"; requ...

21 Nov at 00:57

OpenCV + Android + Unity

I am looking for a way to use OpenCV in a Unity project and my target platform is an Android device. I know that some assets exists on Unity asset store but I want to use them as I find them way too...

21 Nov at 00:37

Entity Framework Scaffold-DbContext Login failed for user

I am trying to build an API using Visual Studio 2017 and .NET Core 2 with Entity Framework Core. I am following the directions from [This Link](https://learn.microsoft.com/en-us/ef/core/get-started/a...

Autofixture and read only properties

Let's consider two version (one with read only properties) of the same very simple entity: ``` public class Client { public Guid Id { get; set; } public string Name { get; set; } } ``` vs ...

20 Nov at 15:54

Can I execute npm commands directly from the visual studio

Can I execute npm commands (e.g. npm init, npm install) directly from Visual Studio 2017 on Asp.Net Core 2.0 project? May be from command line or context menu? Now I have context menu command for Bowe...

System.PlatformNotSupportedException: 'Operation is not supported on this platform.' when upgrading ServiceStack to .netcore 2.0

We are using ServiceStack(.netcore) as our web services layer, in an open source project yet to go-live. We are planning to migrate to .netcore2.0. We downloaded servicestacks's master branch on Nov 1...