Error S3925 : Update this implementation of 'ISerializable' to conform to the recommended serialization pattern

I have the following code written in [c#](/questions/tagged/c%23). Since I upgraded the package NuGet SonarAnalyzer.CSharp to the version 6.0.0.2033, I've got this error : ``` public class Gen...

22 Jun at 12:59

How to change Visual Studio 2017 default language version for all projects?

How to set language version on C#7.0 for all projects? ![Project/Properties/Build/Advanced.../Advanced Build Settings screen](https://i.stack.imgur.com/DWCJg.png) Where does default parameter come f...

25 Sep at 08:40

How to completely uninstall kubernetes

I installed kubernetes cluster using following this [guide](https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/). After some period of time, I decided to reinstall K8s but run into t...

9 Jan at 19:0

Can you completely disable CORS support in Spring?

As described in [CORS preflight request fails due to a standard header](https://stackoverflow.com/questions/38507370/cors-preflight-request-fails-due-to-a-standard-header) if you send requests to `OPT...

How-to migrate old WinForms projects to the new VS2017 project format

We are currently in the process of upgrading our projects to the new VS2017 project format. The main reason behind this was converting some libraries from PCL to .NetStandard and being able to use the...

How can I import a svg file to a Vue component?

In vue single file component.I import a svg file like this: `import A from 'a.svg'` And then how can I use A in my component?

22 Jun at 09:33

ServiceStack return custom response when can't deserialize request

I'm using servicestack to handle xml request from client, my client require always send response like that: ``` <?xml version="1.0" encoding="utf-8"?> <Response> <actionCode>01</actionCode> <errorCod...

C# volatile variable: Memory fences VS. caching

So I researched the topic for quite some time now, and I think I understand the most important concepts like the . However, I haven't found a satisfactory explanation for the relation between `volati...

22 Jun at 07:32

Stop Application Insights including path parameters in the Operation Name

Our ASP.NET MVC application includes some URI path parameters, like: > [https://example.com/api/query/14hes1017ceimgS2ESsIec](https://example.com/api/query/14hes1017ceimgS2ESsIec) In Application Ins...

26 Nov at 09:38

How to print out a dictionary nicely in Python?

I've just started to learn python and I'm building a text game. I want an inventory system, but I can't seem to print out the dictionary without it looking ugly. This is what I have so far: ``` def ...

27 May at 18:39

How to set culture for date binding in Asp.Net Core?

I have an Asp.Net Core application with MVC. I'm submitting a form with a date on the form. Form looks (roughly) like this: ``` @model EditCustomerViewModel <form asp-action="Edit"> <input asp-...

Saving a Log Object to sqllite no id only one record gets inserted?

``` using ServiceStack; using ServiceStack.OrmLite; public static string SqliteFileDb = "~/App_Data/db.sqlite".MapHostAbsolutePath(); private static void CreateX(Message msg) { //Using Sqlite DB- im...

21 Jun at 19:25

IdentityServer4 PostLogoutRedirectUri null

I am attempting to get the implicit flow working for IdentityServer4. Login and logout work correctly, however the PostLogoutRedirectUri is coming back null, despite setting the value where it needs t...

HttpContext null in constructor

I have a UserContext Service where I'll put some basic functionalities ("`IsAuthenticated`, `GetUser` etc...) In order to do that, I need to pass the `HTTPContext` from my WebAPI Controller to my Clas...

ServiceStack Fluent Validation - Message Issue

I am using ServiceStack Fluent Validation and it works great. I did see an issue. If my return object name is "xxxxStatusResponse", validation works but I do not see the validation message. If the re...

21 Jun at 17:44

Include all navigation properties using Reflection in generic repository using EF Core

I'm working on creating a generic repository for an EF Core project to avoid having to write CRUD for all models. A major roadblock I've hit is navigation properties not being loaded since Core doesn'...

An expression tree lambda may not contain a null propagating operator

The line `price = co?.price ?? 0,` in the following code gives me the above error, but if I remove `?` from `co.?` it works fine. I was trying to follow [this MSDN example](https://learn.microsoft.com...

Migrating ServiceStack project from mono to .NET Core /Standard

We deploy our project to mono environments. We target .NET 4.5. Now we are starting second project, which will have same ServiceModel as our current project. We are experimenting with .NET Core. Is i...

Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?

I have applied every solution available on internet but still I cannot run Docker. I want to use Scrapy Splash on my server. Here is `history` of commands I ran. ``` docker run -p 8050:8050 scrapinghu...

23 May at 19:10

How to send json data in POST request using C#

I want to send json data in POST request using C#. I have tried few ways but facing lot of issues . I need to request using request body as raw json from string and json data from json file. How can...

21 Jun at 12:47

CosmosDB Query Performance

I wrote my latest update, and then got the following error from Stack Overflow: "Body is limited to 30000 characters; you entered 38676." It's fair to say I have been very verbose in documenting my a...

23 Jun at 09:11

How to specify locale thousand separator for number pipe in Angular 4

How can I specify/override default (locale) thousand separator for number pipe in Angular 4, e.g.? ``` {{p.total | number}} ``` ?

27 Aug at 20:5

'ng' is not recognized as an internal or external command, operable program or batch file

I tried running npm install -g angular-cli [](https://i.stack.imgur.com/zHGBk.png) I also tried adding it to the Enviorment Variables under PATH: (C:\Users\Administrator\AppData\Roaming\npm\node_mod...

20 Jun at 15:25

How to truncate text in Angular2?

Is there a way that I could limit the length of the string to a number characters? for e.g: I have to limit a title length to 20 `{{ data.title }}`. Is there any pipe or filter to limit the length?

11 Nov at 20:41

How do i convert a List<Interface> to List<Class> in c#

I have an interface defined as ``` public interface IReaderInfo { string Displayname {get;} } ``` and a class that implements that interface ``` public class ReaderInfo : IReaderInfo { st...

21 Jun at 07:3