Questions tagged [asp.net-core]
ASP.NET Core is an open-source, cross-platform framework for building web applications. Use this tag for questions about ASP.NET Core applications. Use a specific version tag when your question is specific to a particular version of ASP.NET Core.
asp.net-core
117
questions
0
votes
2
answers
50
views
How can i hadndle json data for registraton in my asp.net web api
Microsoft.AspNetCore.Http.BadHttpRequestException: Failed to read
parameter "RegisterRequest registration" from the request body as
JSON. ---> System.Text.Json.JsonException: JSON ...
0
votes
0
answers
30
views
WebApplicationFactory get server scope
I'm writing integration tests but I'm currently stuck... one of scoped services requires an extra initialization step to set up a private field, but when I try to call this extra step in my test code, ...
-3
votes
0
answers
35
views
In Visual Studio, Power Tools issue with Created Powertools templates are not showing on powertools window - ASP.NET zero
I have created templates in project directory(AspNetZeroRadTool) for Power Tools(Visual studio extension). But, the option to choose the created feature using power tools templates on Power Tools ...
-1
votes
2
answers
58
views
How to send dynamic HTML email with ASP.NET Core?
I have an e-commerce web application consisting of Blazor WASM for the client side, Blazor Server for administration, and Web API for integration with the database and services. After order completion,...
0
votes
0
answers
48
views
The type initializer for 'Npgsql.TypeMapping.BuiltInTypeHandlerResolver' threw an exception, Unable to load entity from database using powertools
I'm using ASP.NET zero and Power tools to load entity from database (PostgreSQL), but it is showing an exception shown in the screenshot(Click the link below):
https://i.sstatic.net/1FXoFb3L.png
My ...
0
votes
0
answers
30
views
Unable to find an entry point named 'SystemNative_GetSocketAddressSizes' in shared library 'libSystem.Native'. with .NET 8
I am attempting to use .NET 8 on Ubuntu to host a .NET Core application. When I run
dotnet --version
on the server I get 8.0.107
on the development Windows Machine it is 8.0.400-preview.0.24324.5
The ...
0
votes
1
answer
47
views
How do I disable access to ASP.NET Core 8 web API identity methods?
I have an ASP.NET Core 8 web API. I have disabled Swagger documentation in production, but the endpoints shown below are still available for use. For example, I can still use the register endpoint ...
0
votes
1
answer
23
views
FileNotFoundException: Could not load file or assembly 'System.DirectoryServices.Protocols'
I have an ASP .Net Core website which runs fine locally but receives the following error when deployed to the IIS server.
FileNotFoundException: Could not load file or assembly 'System....
0
votes
0
answers
14
views
Using AzureB2C Invite flow prevents EnableTokenAcquisitionToCallDownstreamApi from working. Can I use two custom policies?
I'm trying to work with AzureB2C's invite flow from their samples
(https://github.com/azure-ad-b2c/samples/tree/master/policies/invite)
I have setup the two custom policies
B2C_1A_InvitePolicy
...
0
votes
0
answers
44
views
Update Claims from Another Application, Update Cookie Claims
The following are 2 endpoints in my controller, goal here is to pass a list of roles, and add them to the current cookie authenticated user as claims. It is worth noting this API uses both ...
0
votes
0
answers
18
views
I am experiencing a 404 Not Found error for my new domain in smarter asp.net
SmarterASP.NET Generated Domain: [example.smarterasp.net]
This domain is working correctly and serving my website as expected.
New Domain: [www.mydomain.com] This domain is currently showing a 404 Not ...
0
votes
1
answer
68
views
ModelBuilder Entity in ASP.NET Core MVC
In ASP.NET Core 6, I need to rename the database model of ASP.NET Core Identity. I do not use APIs, but just ASP.NET Core 6 MVC.
This my code:
protected override void OnModelCreating(ModelBuilder ...
0
votes
2
answers
55
views
How to join tables and group the results using LINQ?
I have a table of Products and a table of Product_Images with a one to many relation (one product can have multiple images) and I am trying to retrieve all products with their related images. So far I ...
0
votes
1
answer
31
views
ASP.NET FormUrlEncode with child List KeyValuePair
I'm calling an API using HTTP POST with a form URL encoded body
The controller I'm calling looks like this:
public async Task<IHttpActionResult> DoSomethingAsync(ABCRequest widget)
[...
1
vote
1
answer
25
views
Sort ValidationMessageStore by display order attribute
I'm using Blazor Web App and have a component that uses EditForm and ValidationSummary. All works well, except I want to sort the error messages by the order specified in my model. Here's my ...