All Questions
245
questions
0
votes
1
answer
36
views
How do I use Chrome API Sidepanel in a Blazor extension?
Currently I am trying to get my browser extension to utilize the Chrome API's SidePanel.
I have used this method in a react application, but I am stumped getting it to work in Blazor.
BackgroundWorker....
0
votes
0
answers
36
views
All model state validation errors localization
I'm developing a web API in .NET 6 and I'm faced with the problem of localizing model validation error messages that the framework generates. This includes both attribute-based validation, for example:...
1
vote
1
answer
122
views
.NET 6 - Type Agnostic Json Serialization with camelCase through PropertyNamingPolicy
I need a way to read json config via an asp.net 6 backend and send it to frontend in json format with camelCase property names. The original json config uses PascalCasing for its property names. The ...
0
votes
1
answer
64
views
Is there a way to perform windows authentication from prod IIS Server without Authorization(Sign-in)
In my .net6 web API project, the requirement is to perform a Windows identity authentication.
I have chosen the Authentication dropdown as "Windows" while creating the project. For testing ...
0
votes
1
answer
85
views
Flurl Client Usage with Placeholder in URL
We are aware that it's important to make sure Flurl clients are re-used where possible and that this is controlled via the URL that is supplied to the Get method of IFlurlClientFactory.
Some of the ...
0
votes
0
answers
84
views
Are there a way to avoid the blink at the beggining and the white space delay in the blazor virtualize component?
Using the blazor virtualize component, I noticed a blink in the first row (or item loaded) into the virtualize. Also I noticed, using the placeholder, when I scroll down, the "placeholder" ...
0
votes
0
answers
30
views
API does not store keys from IdentityServer to validate tokens
I have two machines, one identity server and second REST API
A user through the API logs in, goes post to IS, in response IS returns JWT
The user authenticates himself to the API with each data ...
2
votes
1
answer
337
views
How to access HttpContext in mediatr command without installing deprecated nuget packages [duplicate]
I have a .NET 6 API and I want to get the HttpContext in a mediatr command, I have read on the docs it is possible to register the HttpContextAccessor with builder.Services.AddHttpContextAccessor(); ...
0
votes
1
answer
93
views
.NET C# - How to sanitize the required error messages from ViewModel?
I have a question as regards to the handling of error messages in a form which I created.
Whenever the user doesn't fill out the information will be stored in here ModelState.Root.Children.
To iterate ...
1
vote
1
answer
91
views
Referencing a C# parameter name in an attribute, working on Windows, not on Linux
I am having an issue when running a pipeline to build for a .Net 6 Web API project. I have code that looks like this:
[HttpGet]
[MyAttribute(nameof(parameterName))]
public async Task<IActionResult&...
0
votes
1
answer
95
views
AWS C# Lambda Returns Empty Array For Object
I'm trying to POST a json object through postman and trying to get my lambda function to read it. Instead of returning the property value, it's returning an empty array.
Below is my simple lambda code....
0
votes
0
answers
417
views
How to disable assemblies from being trimmed?
My .net 6 web application is self contained and uses reflection to get classes that register services for Dependency Injection.
On my development machine, Release and Debug, everything works perfectly....
-2
votes
2
answers
202
views
Project .net framework to .net 6 core
I'm facing an issue in my C# project where I'm getting the following error message:
Severity Code Description Project File Line Suppression State Priority
Error CS1705 Assembly '...
2
votes
1
answer
319
views
Common Language Runtime detected an invalid program in a .NET 6 API?
I am using .net6, Microsoft.NET.Sdk.Web, with MVC and Microsoft.Extensions.DependencyInjection 6.0.0.
The exception is caused by Microsoft classes and there is nothing to debug.
On the API side, the ...
0
votes
0
answers
38
views
Issue with "update-data" in Package Manger Console
I tried the "update-data" after adding a table yet an error
The ConnectionString property has not been initialized
appeared instead.
It should have "Done" the "update-...