All Questions
3,693
questions
0
votes
1
answer
72
views
How to loop through Inner list of object
I have a need where I need to loop through sublist of each class.
public Class A
{
public int IdA {get;set;}
public string Name {get;set;}
public List<Class B> Items {get;set;}
}
public Class ...
0
votes
1
answer
69
views
Is there a way to make a Blazor website fully work offline?
We have a Blazor website made, but the client needs it to work offline.
I need to load all the data necessary when there is internet connection so that i can later use it in the pages. Not just ...
2
votes
2
answers
58
views
How to Refresh IConfiguration
I am using .Net 8 DI to load IConfiguration on startup.
It will be loading key-values from azure keyvault.
But, after few hours the key-values would change.
So how to refresh IConfiguration ...
0
votes
0
answers
42
views
.net running on kestrel cannot start BackgroundService in staging/production environment
I have created a QueuedHostedService extending BackgroundService following official docs here. This runs just fine on development mode and I am able to step into/debug the task passed to the ...
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
...
1
vote
4
answers
104
views
How to ensure a specific method is called after method chaining in C#?
I'm trying to create an API in C# that uses method chaining. I want to ensure that at the end of the chain, a specific method (e.g., Throw()) is called. If this method is not called, an exception ...
0
votes
2
answers
43
views
Set selected values in multi-select drop-down list in .net core 8
In my .Net 8 form, I have a multi-select drop-down list. The selected values are stored in the DB as a string delimited by commas e.g. A,B,C. How should I bind selected values to my drop-down list?
...
0
votes
0
answers
52
views
Char code is different between .NET 4.8 and .NET 6
Previously with VB.NET (.NET 4.8) I have read files with the encoding windows-1252 in that way:
File.ReadAllText(filePath, Encoding.GetEncoding(1252))
Now in my ASP.NET Core 6 application I'm reading ...
0
votes
1
answer
32
views
RabbitMQ Client .Net Core Timing Out under load after rabbitmq upgrade. Consumer System.TimeoutException
We have a system that was running RabbitMQ 3.8.5 with RabbitMQ.Client 5.2.0. Part of the way the system uses rabbit is by creating a consumer to wait for a specific command from a different executable ...
0
votes
0
answers
26
views
Need to order by list using row value using entity framework [duplicate]
I have data in following format as shown in the sample table data. I want to order by this data in ascending order for ND values.
Means like from ND1 to ND10.
I tried the following way:
return await ...
-1
votes
1
answer
72
views
Synchronize large csv file into DB with dotnet core
I want to develop a batch process in .NET Core to synchronize a CSV file containing 3 million lines. The process reads data from the file, updates existing items in the database, and creates new items ...
-1
votes
0
answers
23
views
How do I Copy Metronic(8.2.6) Files into my Asp.net Core project?
I'm a beginner at metronic,and now i have metronic8(8.2.6) Files.
I create asp.net core admin Project,and want use Metronic for UI.but i don't know how to copy Metronic's JS/CSS etc files into my ...
0
votes
0
answers
85
views
How can I improve performance and increase the speed of processing data so that it takes short time read and process 500,000 records
I'm having a .net core console application that reads parts of the JSON files stored in a folder the part of the JSON that I'm reading contains greater than 500,000 records in it, I'm able to read all ...
0
votes
1
answer
33
views
Error during XSLT transformation: An error occurred while loading document 'https://ex.com/example.xml'. See InnerException forcomplete description
I keep getting an error during XSLT transformation: An error occurred while loading document 'https://www.example.com/myxml/example.xml'. See InnerException for a complete description of the error. I ...
0
votes
1
answer
47
views
Token Request Failing and Returning error invalid grant
These are the IdentityServer logs:
2024-07-04 21:06:57.551 -04:00 [DBG] Start key discovery request
2024-07-04 21:06:57.552 -04:00 [INF] Request finished HTTP/1.1 GET https://localhost:44322/.well-...