All Questions
1,034
questions
0
votes
0
answers
38
views
How to use a custom behaviour in MAUI
In my .NET 8 MAUI project, I have a custom component that returns my model. For this, component, I created a custom behaviour - this is the code:
public class IsLanguageNullOrEmptyBehavior : Behavior&...
0
votes
0
answers
31
views
Error while Converting Synchronous Action Filter to Asynchronous in ASP.NET Core 8 Web API
I have developed a synchronous action filter for an ASP.NET Core 8 Web API. Recently, I converted this action filter to an asynchronous version.
However, during validation, I encountered the following ...
0
votes
1
answer
38
views
How to update labels while a process is running?
I'm building a Desktop Application where the user scans in an ID, and it looks up information in the database, and then if the correct information is found, it then generate a pdf based on some of the ...
0
votes
0
answers
10
views
gRPC with Microsoft AuthenticationStateProvider problems
I recently set up a new gRPC Project, containing simple a Server, Client and Contract Sub-Project.
Server will be deployed as a WebService, Client is goind to be an android app.
Contract containing ...
0
votes
0
answers
19
views
Twilio SMS Sandbox
I'm developing a simple SMS chatbot and using Twilio (and .NET 8 and C#), but for the time being, I can't test that things are working since I'm waiting on our A2P campaign to be approved.
Is there a ...
0
votes
0
answers
51
views
WPF application allocates huge number of TimerQueueTimer objects
I've got WPF application built with .NET 8, at some point it suddenly spiked both on CPU and memory. I managed to capture memory snapshot and it seems like there are lots of TimerQueueTimer objects ...
0
votes
0
answers
35
views
Mapping collection of primitives to JSON in EF Core
I'm using EF Core with Postgres. An entity includes these properties, which I store as JSON:
public ICollection<long> Foo { get; }
public IDictionary<long, long> Bar { get; }
This ...
1
vote
1
answer
52
views
Scaffolding (DB first) does not generate Model class
Hi I tried to generate model class based on existing view. This is the command I used in PMC:
Scaffold-DbContext "//connectionstring" Oracle.EntityFrameworkCore -schema //schema -table //...
0
votes
3
answers
64
views
ASP.NET Core 8 MVC - view model validations
I have an ASP.NET Core 8 MVC application. Currently I'm trying to have an admin have the ability to create new clients for their e-commerce site. They have a simple form looking like this:
NewClient....
0
votes
0
answers
52
views
Reading as 'System.Object' is not supported for fields having DataType during adapter.Fill(dataTable) postgresSQL
I have my C# code upgraded from .NET 6 to .NET 8.
This code used to work fine in .NET 6:
using (var adapter = new NpgsqlDataAdapter(sql, context.Database.GetDbConnection() as NpgsqlConnection))
{
...
-4
votes
0
answers
54
views
VS Code take too much time to run a simple ASP.NET Core 8 MVC website but nothing works [closed]
I was trying to run an ASP.NET (MVC) website called "GuitarStore". The building process dotnet build is fine but not for the running process dotnet run. It keeps stopping running at a ...
0
votes
1
answer
65
views
POST fails with invalid or missing data
I am trying to send data to the endpoint described in
https://leonardo.pgxc.pl/doc/direct_upload.html
Which fails with "invalid user data". I assume this can both indicate that the data is ...
0
votes
1
answer
77
views
.NET Core / Entity Framework Core not updating, seemingly referencing a migration history database even when it doesn't exist
dotnet ef migrations add X
This works and adds three files (if there are no other migrations at all) in the migration folder, X.cs, X.Designer.cs and QuizzDbContextModelSnapshot.cs.
dotnet ef ...
0
votes
0
answers
47
views
.NET 8 application file written gets lost after a while
I have a .NET 8 application which, among other things, has the following functionality: it contains a hosted service that fetches some records from a database, produces some .txt files and writes them ...
1
vote
2
answers
68
views
401 after I add [authorize] to my endpoint, logs included
Nothing is working I tried everything, chatgpt, docs I think something is wrong but I don't know what!
My frontend is swagger, also when I check my JWT token on jwt.io, it seems to work.
Here are the ...