.net-core-2.1 Questions

3

Solved

Given the following .Net Core 2.1 Console App... using System; using System.Diagnostics; using System.Net.Http; using System.Net.Http.Headers; namespace TestHttpClient { class Program { static...
Couloir asked 7/6, 2018 at 19:40

2

Solved

In the latest .NET Core 2.1, an automatic validation for the model state validation is introduced (https://blogs.msdn.microsoft.com/webdev/2018/02/02/asp-net-core-2-1-roadmap/#mvc). Previously I c...
Ohm asked 1/7, 2018 at 17:39

1

Solved

Trying to add Azure AD authentication to an Angular 7 webapp with a .net core 2.1 backend. However, I get the CORS error during the request. "Access to XMLHttpRequest at 'https://login.microsofto...
Arching asked 19/11, 2018 at 16:9

1

Solved

I am really trying a long time to use certificates in .NET Core API. Basically where I need to use them is in a .NET Core web api running on IIS and docker. Certificates I need to use are for: M...

1

Solved

I am trying to reuse the same _Layout.cshtml file, throughout multiple .net core 2.1 Razor Page projects. Currently I have a Razor Page Class Library (Common shared project) that is where the _Layo...
Syllabify asked 9/11, 2018 at 18:47

0

I have a .net framework app that consumes a WCF service successfully, and when i try to duplicate the settings onto my .net standard 2.0 class library - which is used by a .net core 2.1 web applica...
Commonable asked 1/11, 2018 at 10:6

1

Solved

I am trying to access the current user (i.e. ClaimsPrincipal from identity) in a custom ValidationAttribute, and I haven't figured out how I could do that. public class UniqueTitleValidator : Val...
Carlicarlick asked 28/10, 2018 at 11:9

1

Solved

I'm trying to encrypt a string with RijndaelManaged in order to send it to a third-party service. I've implemented the procedure in older versions of .Net framework (4.5, 4.6.x) like below: Rijnda...
Dupuis asked 8/10, 2018 at 9:48

2

Solved

How can I get the serial number of USB storage devices in .Net Core 2.1? I found different solutions, but sadly they don't work due the lack of Windows registry and WMI support in .Net Core. In ...
Limonite asked 5/3, 2018 at 20:15

1

Solved

Apparently, with .Net Core 2.1, views are now supported. I was wondering if it is possible to scaffold a view using Pomelo, and if so, what the syntax is? I tried the "table" syntax with a view but...

2

Configuring Serilog using a JSON config, it is possible to configure log level switches as such: "LevelSwitches": { "$appLogLevel": "Debug", "$netLogLevel": "Information", "$sysLogLevel": "Erro...
Infest asked 17/7, 2018 at 20:16

2

Solved

There are multiple c# class library (DotNet Core 2.1) projects and User Interface (WPF project) in my solution. Let say a class library project properties have Assembly version 2019.1.15341.0: ...

© 2022 - 2024 — McMap. All rights reserved.