Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.
2 votes
1 answer
159 views

Awaiting a TaskCompletionSource from two threads

I got curious about what would happen if you await a TaskCompletionSource from two threads. using System.Diagnostics; var t = Start(); var t1 = Task.Run(async () => { await t; Thread.Sleep(...
Hello World's user avatar
1 vote
0 answers
75 views

System.Windows.Forms's WebBrowser is garbage collected differently in .NET Framework and Core

I'm trying to migrate our application from .NET Framework to .NET Core. In one of our tests, an object of type ZWebBrowser : System.Windows.Forms.WebBrowser is not garbage collected correctly, due to ...
VEvergarden's user avatar
1 vote
1 answer
88 views

How does TaskCompletionSource work when an exception occurs?

I'm trying to understand how exception handling works with TaskCompletionSource and await in a console application (which has no SynchronizationContext). I've written simple code that waits for a ...
Hello World's user avatar
1 vote
0 answers
41 views

Problem with UI to using multiple provider of authenticate

I have this plugin declaration: Plugins.Add(new AuthFeature(() => new CustomUserSession(), new IAuthProvider[] { new CustomCredentialsAuthProvider(), new ...
Carlos Ramírez's user avatar
-2 votes
0 answers
104 views

CS9230 Cannot perform a dynamic invocation on an expression with type 'DefaultInterpolatedStringHandler' [closed]

The following code: dynamic d = "foo"; var s = string.Create(null, $"{d}"); produces this error: error CS9230: Cannot perform a dynamic invocation on an expression with type '...
Max Toro's user avatar
  • 28.6k
2 votes
1 answer
65 views

Which methods to use to bind SyntaxNodes to Symbols and which SyntaxNode types can be bound?

Using the Roslyn SDK, which SyntaxNode (derived) types can be bound to Symbols, and which methods are used to bind them? So far, I am aware of SemanticModel.GetSymbolInfo(), SemanticModel....
Doodelusion's user avatar
1 vote
0 answers
25 views

Why do I see another Excel-DNA add-in config path in my ConfigurationBuilder [closed]

I'm creating a new Excel-DNA add-in with .Net8. However, when I try to create a new IHost and inject a config with Host.CreateDefaultBuilder().ConfigureAppConfiguration() When I debug and inspect the ...
Laurent86's user avatar
1 vote
1 answer
72 views

Why does ISymbol.ContainingNamespace always return System for nullable structs?

Using the Roslyn API I tried to retrieve the namespace of a nullable struct type (using ISymbol.ContainingNamespace) and was suprised when it returned the System namespace instead. This only happens ...
Doodelusion's user avatar
0 votes
0 answers
26 views

Accessing Keycloak well-known works with curl but not in my application

I'm building a .NET Core application that fails to access my keycloak server. I can do a curl command on my development machine and it works fine. Keycloak is running in a container. The error looks ...
Tommie Jones's user avatar
  • 1,053
1 vote
0 answers
17 views

Why Blazor WebApp signalR crashes when large string is sent to UI?

While sending a large file data, streamed as a string from my backend to frontend, the blazor app crashes with the attempting to reconnect to server error. The app crashes when the file is loaded as a ...
vineethram's user avatar
0 votes
0 answers
31 views
+50

Language Resource Key is getting returned when called from Localization in my ASP.NET Core Web API project

We are trying to implement multilingual support for our ECommerce platform. We have decoupled architecture. We have front facing website on Vue.js and backend is an ASP.NET Core Web API. For the ...
Mihir Shah's user avatar
0 votes
0 answers
23 views

Aspire .NET service discovery in production with keycloak with Docker, overrride endpoint?

I have an issue with the service discovery in Aspire .net with .net 9 and 8 application and keycloak. The Apphost project works fine: var builder = DistributedApplication.CreateBuilder(args); var ...
Sam's user avatar
  • 1,019
3 votes
2 answers
71 views

How to use Oracle built in functions in Entity Framework Core?

With EF 6 (and .NET Framework), I was able to map Oracle built in functions by creating a static class like this: public static class OracleFunctions { [Function(FunctionType.BuiltInFunction, &...
sstr27's user avatar
  • 68
3 votes
1 answer
34 views

Azure SignalR Service Issue - Messages Not Delivered When API is Hosted in Azure, But Works Locally

I'm facing a weird issue with Azure SignalR Service and could use some help. Here's the setup: Frontend: ASP.NET Core MAUI Blazor app Backend: ASP.NET Core Web API Using Azure SignalR Service The ...
Lasitha Lankajeewa's user avatar
0 votes
0 answers
20 views

STS Token generation code (working in version 3.7.30X.XX) breaking after updating the package version to 3.7.40X.XXX

we are trying to use latest version of AWSSDK.Core library and getting the NullReferanceException error when we tried to upgrade package version from 3.7.300.xxx to 3.7.400.xxx. Below is the Code ...
Tushar Patil's user avatar

15 30 50 per page
1
2 3 4 5
3061