All Questions
440
questions
0
votes
0
answers
26
views
Any pitfalls in upgrading a WPF application from .Net 6 to .Net 8?
We're looking to upgrade some large WPF solutions from .Net 6 to 8, and my understanding is that the process should be straightforward (changing the projects' target framework). But are there any ...
0
votes
3
answers
84
views
How to let HostedService run after host started?
I have a .NET 6 console app.
Program.cs code:
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System.Threading;
using ...
1
vote
1
answer
61
views
Rebuild skip all project in Visual Studio 2022
I do not understand why Visual Studio skips all the projects to do rebuild of the solution.
The output console only shows that the projects were skipped.
I have tried deleting the bin, obj and .vs ...
-1
votes
0
answers
49
views
Visual Studio Professional 2022 not loading dlls after updating it to subversion greater then 17.10.1
I am facing an issue in Visual Studio Professional 2022 (17.10.3).
Actually IIS express not treated my project as an Application.
Also NO Dlls were loading while running the application.
No ...
0
votes
0
answers
22
views
I logged in with Identity Server4 and I change subdomain, I want to stay logged in - .NET Core and Angular
In .NET Core 6 using Identity Server 4 password flow, Angular, I log in successfully using a valid user name and password and store the token to local storage.
Now I want to allow logged in user to ...
0
votes
0
answers
97
views
CVE-2023-36049 System.Net.Requests net6.0
I use syft and grype to find vulnerabilities "CRITICAL and HIGH" in my "net6.0" solution.
Grype found the vulnerability CVE-2023-36049
https://github.com/advisories/GHSA-c3hf-8vgx-...
0
votes
0
answers
23
views
Return DistinguishedName using ComputerPrincipal from ActiveDirectory
I want to get the DistinguishedName using ComputerPrincipal from the Active Directory only for the user that is signed in.
With the code below the searchResultOrgUnit returns me all PC's that are ...
0
votes
0
answers
96
views
Is Bulk Push Notification available for New HTTP v1 APIs after migrating from legacy FCM APIs to HTTP v1 for .Net core 6 application [duplicate]
My application is in .Net core 6, C#.
I have migrated Existing FCM legacy APIs to New HTTP v1 APIs.
But I have a question, Is Bulk Push notification is possible for this New APIs?
For existing APIs, I ...
0
votes
0
answers
22
views
Using PipeStream to transfer response stream for logging without loosing streaming effect for endpoints
I have an endpoint which streams List as IAsyncEnumerable in the response and so when consumed on the browser, the response loads with a streaming effect as the data is written to the response stream.
...
1
vote
2
answers
105
views
ASP.NET Core 6 Web API base project with multiple API projects
I have a project called backend-sandbox. I want this project to be the startup project of my solution. Once I run this project, it should run all the other projects dependent on it.
Other projects can ...
2
votes
1
answer
55
views
IConfiguration.Get return default property value for IReadOnlyCollection
I got a strange behaviour when try to get collection in configuration from appsettings.json using .NET 6.
My Class:
public record SomeOptions
{
public IReadOnlyCollection<string> SomeColl { ...
0
votes
1
answer
88
views
Blazor WASM Unable to load static html page from wwwroot folder
I have created static html page under wwwroot folder, which having it's own js and css.
While trying to hit url in incognito mode in browser https://baseURL/Terms.html it redirect to Terms.html for ...
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 ...
1
vote
1
answer
217
views
I need help to upgrade deprecated dependencies in an ASP.NET Core 8 Web API project
I just upgraded an ASP.NET Core Web API project from .NET 6 to .NET 8. I would like to remove all the deprecated dependencies but I have some problems.
For example, when updating Microsoft.Data....
0
votes
0
answers
54
views
Login with load balancer
My application works, after switching to a load balancer server, the claim works sometimes and sometimes not.
This is in .NET Core 6:
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme, o =&...