All Questions
Tagged with asp.net-core .net-8.0
306
questions
0
votes
1
answer
19
views
How do we use a value from a strongly typed configuration options class and have other services use it - for example AllowedHosts?
I have a strongly typed POCO class that is bound to Configuration Settings being retrieved from Azure App Configuration Services.
As an example, the strongly typed class is:
public class ...
2
votes
1
answer
32
views
How to make .NET 8's minimal identity APIs work with a global Authorization FallbackPolicy?
My API is enforcing a global authorization policy to require authenticated users on all endpoints, unless they explicitly specify another policy or opt out via [AllowAnonymous].
This works fine with ...
0
votes
2
answers
57
views
Double Response Issue with JWT Authentication in ASP.NET Core
I'm facing an issue with my JWT authentication in ASP.NET Core where I'm getting duplicate responses.
Here's the relevant code for the JWT authentication:
public static class JwtAuthExtension
{
...
-1
votes
0
answers
62
views
Why is HttpClient too slow for some requests and fast for others? How can I fix it? [closed]
I use HttpClient with .NET 8, injecting it via dependency injection and making requests to another server. I have a problem where some requests are very slow, while others are very fast. The fast ...
2
votes
2
answers
72
views
Check screen width in Blazor
Currently I use MudBlazor's MudTable and display a list of 3 columns, but when displaying the widths of the 3 columns are not equal. I used the CSS "width: calc(100% / 3)" and the 3 columns ...
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
0
answers
48
views
Model Binding Issues
**Model Binding Issues **
I'm facing model binding issues in my ASP.NET Core app. The same code works with ResourceManagement1 database but fails with RMT database, though both have identical ...
0
votes
1
answer
32
views
can not access rest API running in docker container [duplicate]
I have a REST API built in .net 8. When it runs on my machine, I can test it using Postman (http://localhost:8009/api/...) without issue. But when I running it from inside a docker container, the ...
1
vote
1
answer
38
views
How to get rid of Microsoft.AspNetCore.Authentication.Abstractions deprecated package [duplicate]
Microsoft.AspNetCore.Authentication.Abstractions on its own is deprecated and now is part of Microsoft.AspNetCore.App.Ref package. But that package is an internal implementation of the .NET Core SDK ...
1
vote
3
answers
73
views
Display Multi-select dropdown list in .NET 8
I'm new to .NET 8 and I've build a form using MVC, EF and X.PagedList. My form has a multi-select drop-down list. I'm able to save the form to database. The Multi-select drop-down list is saved to ...
0
votes
1
answer
46
views
ASP. NET Core Web API project did not generate the request header "Authorization" into the "swagger. json" document file
The ASP. NET Core Web API project did not generate the request header "Authorization" into the "swagger. json" document file
tried to output the request header "Authorization&...
0
votes
0
answers
60
views
YARP minimal API MapForwarder always returns 502
i have the following problem in my Blazor (.Net 8) App. I Try to use the YARP Map Forwarder (Microsoft.Extensions.ServiceDiscovery.Yarp 8.0.2) to forward requests, that reach Blazor Server from Blazor ...
0
votes
1
answer
29
views
Locale "ar-KW" is not getting listed CultureInfo.GetCultures(CultureTypes.AllCultures) in Windows10 .NET 8 Blazor WASM
I'm trying to list all the cultures available in a dropdown so that end user can choose a language-REGION locale code.
I have <BlazorWebAssemblyLoadAllGlobalizationData>true</...
1
vote
1
answer
65
views
How to save Stream data from external GET request in .NET
I am currently in my .NET (c#) backend, making a GET call to an external URL which returns a responseType: 'stream'. In this case it is streaming back data which should be a valid .PDF file once ...
1
vote
1
answer
52
views
Write and read string from MemoryStream
Please consider this scenario:
I want to read a file and then place its bytes to MemoryStream and then write some strings to it and then immediately read entire MemotyStream. For example I have a text ...