Skip to main content

All Questions

Tagged with
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 ...
Mike Lenart's user avatar
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 ...
Saeb Amini's user avatar
  • 23.8k
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 { ...
Deepak Verma's user avatar
-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 ...
Macus101's user avatar
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 ...
ndn's user avatar
  • 21
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 ...
dalevross's user avatar
  • 522
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 ...
Anandhavel T's user avatar
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 ...
Alexu's user avatar
  • 1,145
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 ...
ZorgoZ's user avatar
  • 3,238
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 ...
joegreen's user avatar
  • 127
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&...
Allen's user avatar
  • 39
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 ...
Apolonius's user avatar
  • 157
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</...
fingers10's user avatar
  • 7,649
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 ...
Dohrann's user avatar
  • 137
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 ...
DooDoo's user avatar
  • 13.3k

15 30 50 per page
1
2 3 4 5
21