asp.net-core-2.2 Questions

10

Solved

I am configuring this application Confirming the account and recovering passwords in ASP.NET Core but I have an error: HTTP Error 500.30 - ANCM In-Process Start Failure Common causes of this is...
Hereford asked 18/1, 2019 at 5:23

4

Solved

I want to seed "Location" data for my user object from my seed file The c# object, where Point is a NetTopologySuite.Geometries.Point is part of my user object public class User: IdentityUser&lt...
Matronymic asked 23/7, 2019 at 22:25

2

I'm working with a project built with ASP.NET Core 2.2. The main solution contains multiple projects, which includes API, web and other class libraries. We've used SignalR to displaying shared me...
Owenowena asked 21/1, 2020 at 11:23

6

Solved

Our enterprise application is a massive (1000+ pages) app and primarily it is glorified data entry application. There is no major business process. All most all pages have CRUD. We are trying...
Narcotic asked 3/6, 2019 at 6:9

2

Solved

I am running .NET Core 2.2 app and I have a bit of code that I want to run immediately after the initial setup in Startup.cs. The class relies on a registered type and I don't really understand how...
Peachey asked 9/1, 2020 at 10:25

2

I'm trying to use one of these namespaces //using Microsoft.Data.SqlClient; using System.Data.SqlClient; My model public class Get_Data_Scholar{ [Key] public Int32 ID_Transcript { get; set;...
Guienne asked 27/12, 2019 at 10:21

1

Solved

Basically I have a POCO model that has a encrypted string. Using EF core 2.2. We use DECRYPTBYKEY to decrypt strings using SYMMETRIC KEY. I am using DBSet.FromSQL to pass in SQL query which calls...
Toolis asked 5/12, 2019 at 9:23

1

Solved

I have an ASP.NET Core 2.2 Web Api and I added the swagger support with nswag. The web api is protected using a local IdentityServer4 that generates access tokens. I found the code to add an autho...

3

In MVC ASP.NET you can set the smtp configuration in the web.config file like this : <system.net> <mailSettings> <smtp from="MyEmailAddress" deliveryMethod="Network"> <netw...
Mur asked 6/11, 2019 at 12:50

0

I'm using SkiaSharp to resize an existing image. On resize I'd like to be able to test/set the quality on different levels. Here's my code: public static class ResizeImage { public static strin...
Brigantine asked 12/11, 2019 at 23:23

3

Solved

To connect via SignalR to an ASP.NET Core 2.1 server from any origin, we had to configure the pipeline as follows: app.UseCors ( builder => builder .AllowAnyHeader () .AllowAnyMethod () .Al...
Sawicki asked 14/12, 2018 at 21:16

1

Solved

I am adding Serilog to the project and I specifically want to add Serilog.Exceptions as well. Following the guideline I've added just the Exceptions enricher successfully, but I also need the destr...
Bengaline asked 28/10, 2019 at 8:27

1

Using ASP.NET Core I am creating a system to invite users to Join a Group, Get Free Credits, ... When inviting a User to Join a Group I create an Invitation which is saved in the database: The t...

3

Solved

We have built an ASP.NET Core 2.1 website where URLs like www.example.org/uk and www.example.org/de determine what resx file and content to show. After upgrading to ASP.NET Core 2.2, pages load but...
Confront asked 7/12, 2018 at 2:42

0

I am trying to log the exceptions from my ASP.NET Core 2.2 API using a custom middleware. Within the middleware I am reading the log path from appsettings.json I am reading this "ExceptionLogPath"...
Jobber asked 26/9, 2019 at 11:3

2

Solved

This is my very first question after many years of lurking here, so I hope I don't break any rules. In some of my ASP.NET Core API's POST methods, I'd like to make it possible for clients to provi...
Airglow asked 24/9, 2019 at 14:38

1

Solved

I'm developing a web app using ASP.net Core MVC 2.2, and in my Startup class I'm registering a dependency injection of type MyService, like so: public void ConfigureServices(IServiceCollection ser...

2

Solved

For service to service auth using a bearer token for the app (client id and secret no user context) in .net core using MSAL.NET v4 (nuget Microsoft.Identity.Client v4.3.0) is ConfidentialClientAppl...
Doris asked 23/8, 2019 at 16:1

2

Solved

I am trying the new functionality with EF Core 2.2. It is based on the following article. "Announcing Entity Framework Core 2.2" https://blogs.msdn.microsoft.com/dotnet/2018/12/04/announcing-entity...
Bedside asked 9/12, 2018 at 2:9

2

Solved

I'm using IdentityServer4 and I want to load signing certificate from file. For example, var certificate = new X509Certificate2( path, password, X509KeyStorageFlags.EphemeralKeySet); service...
Diplocardiac asked 28/5, 2019 at 7:51

1

Solved

I have a project with asp.net core 2.2 in windows os. I deploy the project and run with kesterl with this command: dotnet myapp.dll that's run in http://localhost:5000. I need to run the websi...
Nonstop asked 27/7, 2019 at 11:23

1

Solved

I am using ASP.NET core 2.2 for developing web apis. I have the following method in repository class: public async Task<Articles> AddAsync(Articles article) { return await _context.Articles...
Geis asked 24/7, 2019 at 14:37

1

Solved

Im making fixture to my tests. In my FixtureFactory im making my own ServiceCollection: private static ServiceCollection CreateServiceCollection() { var services = new ServiceCollection(); s...

1

Solved

I have containerized my ASP.NET Core 2.2 application into Docker image and then deployed it to Google Kubernetes Engine. Application regularly starts, but every now and then it just randomly ...

1

Solved

I would like to be able to populate the User Id field in Application Insights with my real username data. This is an internal application, so privacy concerns with a simple username field are moot....

© 2022 - 2024 — McMap. All rights reserved.