Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [.net-6.0]

For questions about Microsoft's .NET application development framework that are specific to version 6.0+ of the framework. Use only If your question are version-specific

.net-6.0
0 votes
0 answers
42 views

.Net 8 Project Reference Specify .net Version of Multi-Targeted Transitive Project Dependency

I have a .net6 sdk project that I need to upgrade to .net8 for some new functionality. It has some shared project libraries with other projects that are still .net6. Project A includes Project B which ...
lrfalslev's user avatar
0 votes
0 answers
25 views

How to Display Dictionary<string, string> Properly in Swagger UI using NSwag

I am using NSwag to generate Swagger documentation for my API. One of my API endpoints uses a Dictionary<string, string>, but in the Swagger UI, it is displayed as a generic object. Instead of a ...
Md. Mustafizur Rahman's user avatar
-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 ...
FIRE's user avatar
  • 169
0 votes
0 answers
36 views

How can I authorize and endpoint with multiple policies and use an RoleAuthorizationHandler? in c# .net 6

How can I authorize and endpoint with multiple policies and use an RoleAuthorizationHandle? This is my setup right now. These are the policies that are defined in the ServiceCollectionExtensions: ...
testari's user avatar
0 votes
1 answer
74 views

Setting C# language version used by Docker to build my project

I have a net6.0 project with <LangVersion> set to latest, allowing us to use latest C# features (I realize now this is probably bad practice?). It all builds fine from within Visual Studio, but ...
harveyAJ's user avatar
  • 917
0 votes
1 answer
38 views

Minimal API Swagger doc keeps returning 404 when published to IIS

I have an ASP.NET Core 6.0 Minimal API. When I run it in IIS Express from VS, Swagger works just fine, but I want to publish it to IIS on my device so I don't always have to run it from VS. Problem is,...
MRichards's user avatar
0 votes
1 answer
36 views

Awaiting ClientWebSocket.ReceiveAsync only receives one packet of information, and then all other awaits never return

I'm using the System.Net.WebSockets.ClientWebSocket class in C# on .NET 6.0. I have a timer set up that repeatedly will poll the websocket for connections, shown here. The timer is elapsed every 16 ms....
FireCatMagic's user avatar
0 votes
1 answer
52 views

Ignore validation error when calling .NET framework WCF service from a .NET 6.0 project

I have a .NET framework 4.8 project, which is calling a .NET 4.8 WCF service. I want to use https, but for now I have only self signed certificate, thus I simply ignore all validation errors: ...
dafie's user avatar
  • 1,033
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 ...
Adil Gul's user avatar
0 votes
0 answers
45 views

Inconsistent CORS errors in React UI calls to ASP.NET Core 6 Web API

A React app is calling my ASP.NET Core 6 Web API. Things have been working fine for months with no CORS problems. Starting this week, I started seeing the React client unable to call the API ...
user25671135's user avatar
1 vote
2 answers
60 views

Handling a comma inside a cookie value using C# and .NET 6

I encountered an issue while trying to read the content of a third-party cookie. The cookie contains values like: 110, IN, ABC, X, Y,,,,, I'm reading the cookie using: _httpContextAccessor.HttpContext....
Sombir Kumar's user avatar
  • 1,871
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-...
Eduardo Isaac Ballesteros's user avatar
0 votes
1 answer
29 views

Authorization issue in Azure Function (InProcess) .Net 6.0, anyone used nuget package DarkLoop.Azure.Functions.Authorization.InProcess/4.1.0

I have azure function developed using .Net 6.0 InProcess mode. I have used below code for Authentication but its not working now with lastest runtime on azure portal. Azure functions are not loading ...
Arvind Pathak's user avatar
0 votes
1 answer
48 views

"System.Management currently is only supported for Windows desktop applications" error when dynamically loading a DLL in .NET 6

I'm using the "Microsoft.Windows.Compatibility" package to get the baseboard serial number in a .NET 6 application. My code looks like this: var searcher = new ManagementObjectSearcher("...
Mike Lopetgi's user avatar
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....
Casey Kawamura's user avatar

15 30 50 per page