How can i do DbProviderFactories in .Net Standard 2.0 project as my main Application is framework 4.7.2
I have my main project in Framework 4.7.2 , and this project references a netStandard Library project which is a netstandard 2.0. I need "DbProviderFactories" in the .Net Standard project. like: `...
- Modified
- 26 Nov at 01:44
Azure SQL stored procedure ridiculously slow called from C#
: We have two identical databases, one on a local server, one on Azure. We have a C# system that accesses these databases, calling stored procedures. The stored procedures are running very, very sl...
- Modified
- 2 Dec at 12:40
How to read the result table of BenchmarkDotNet
I ran a [benchmark example](https://benchmarkdotnet.org/articles/overview.html) and got this table. ``` BenchmarkDotNet=v0.12.0, OS=Windows 7 SP1 (6.1.7601.0) Intel Xeon CPU E5-4660 v3 2.10GHz, 1 CPU...
- Modified
- 21 Apr at 19:11
SslHandshakeException: An error occurred while attempting to establish an SSL or TLS connection
I'm trying to access gmail emails using imap and the code is failing at the ssl handshake without showing me any errors. Really appreciate if anyone could please help with this. I've built this using ...
What is Unknown Nullability in C# 8?
In C# 8.0 we can have nullable reference types. [The docs](https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references#nullability-of-types) state that there are 4 types of nullability. The fi...
- Modified
- 25 Nov at 01:20
Unable to resolve service for type Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine
In my project that was `core 2.2` i have standard service for returning `Razor View` as string (i needed it to generate pdf in my client written in `WPF`): ```csharp public class RaportService : ...
- Modified
- 2 May at 06:59
Can I tell C# nullable references that a method is effectively a null check on a field
Consider the following code: ``` #nullable enable class Foo { public string? Name { get; set; } public bool HasName => Name != null; public void NameToUpperCase() { if (HasNam...
- Modified
- 24 Nov at 14:16
When to use Task.Run().GetAwaiter().GetResult() and ().GetAwaiter.GetResult()?
I have an async Task that needs to be called synchronously (yes, unfortunately, it is unavoidable). It seems that there are two ways of implementing this - each seeming to work. So I'm unsure which is...
- Modified
- 25 Nov at 01:54
Clearing history while debugging azure durable functions
Durable functions keep a state in storage, this is what makes them work, but it is very troublesome while debugging and developing. I have a large number of runs which have not completed and that the ...
- Modified
- 8 Dec at 07:50
Calling 'BuildServiceProvider' from application code results in copy of Singleton warning. How do I avoid this?
I just pasted the 4 lines at the end from another project and it works but I get a warning.. I clearly do not understand DI well enough ... What does it want me to change ? ``` public void Configure...
- Modified
- 22 Nov at 17:53
Caching Response with Dart ServiceStack in flutter?
I am using the ServiceStack client for Dart in order to perform requests to my API, but I am not able to find a way to cache the response with the client's SDK, has someone found a way to do it? As th...
- Modified
- 22 Nov at 17:49
Modifying a JSON file using System.Text.Json
I know you can do this easily with Newtonsoft. As I am working with .NET Core 3.0, however, I am trying to use the new methods for interacting with JSON files —i.e., `System.Text.Json`—and I refuse to...
- Modified
- 11 Apr at 00:4
Is it possible to host a ServiceStack project in Azure Functions?
Is it possible to host a ServiceStack app in an Azure Functions? I can't find anyone even asking if this is possible. Is it a terrible idea?
- Modified
- 22 Nov at 07:53
'AsyncEnumerableReader' reached the configured maximum size of the buffer when enumerating a value
I am using an async/await method returning IAsyncEnumerable<> to retrieve rows from a SQL Server database and provide them via a Web API .Net Core 3.0 interface. It works fine until I exceed 8192 rows...
- Modified
- 22 Nov at 03:12
Create Scriptable Object with constant, Unique ID
I use Scriptable Objects to create Items for my Unity Game. Let's say I create a Stick, a Sword and a Helmet. Now to use them, I need to drag them into a list and on game start, each item get's an ID ...
- Modified
- 7 May at 03:50
Debug an Azure Function that is triggered using an Event Grid
I have an Azure Function (C#) that is triggered by an Event Grid. I am having difficulty debugging my Function locally as it can only be triggered via the Event Grid. I'm not sure if there is a way to...
- Modified
- 5 May at 14:56
Specflow is not executing tests in Visual Studio 2019
I have a very weird behavior with Specflow that only applies to one team member. Everyone else have no issue what so ever. The VS2019 testrunner is correctly displaying all specflow tests, but when "...
- Modified
- 22 Nov at 12:37
ServiceStack.OrmLite: using aliases in SqlExpression for anonymous types
I am posting this question here, as I'm still waiting for approval on the ServiceStack customer forum. It's a rather specific question, so I don't expect many can help... :) I'm migrating ServiceSta...
- Modified
- 21 Nov at 14:55
What does 'x packages are looking for funding' mean when running `npm install`?
I usually get `"x packages are looking for funding."` when running `npm install` on a `react` project. Any idea what that means?
- Modified
- 14 Jan at 14:23
Unit Test Custom AuthenticationHandler Middleware
How do you unit test custom middleware that inherits from `AuthenticationHandler<AuthenticationSchemeOptions>`? My custom class that inherits from it is for Basic authentication. ``` public class Ba...
- Modified
- 2 Dec at 05:57
Exception thrown: The remote certificate is invalid according to the validation procedure
Good day, I am running an ASP.NET CORE Blazor application in one of my PCs (Windows 10) on Visual Studio 2019 and it is working fine. I opened the same project on another PC (Windows 7) in VS Code a...
- Modified
- 20 Nov at 14:59
Proper way to deal with exceptions in DisposeAsync
During switching to the new .NET Core 3's `IAsynsDisposable`, I've stumbled upon the following problem. The core of the problem: if [DisposeAsync](https://learn.microsoft.com/en-us/dotnet/api/system.i...
- Modified
- 7 Jan at 14:11
Default implementation in interface is not seen by the compiler?
Here is a my code inside a c# project that targets .NET Core 3.0 (so I should be in C# 8.0) with Visual Studio 2019 (16.3.9) ``` public interface IJsonAble { public string ToJson() => System.Text...
- Modified
- 20 Nov at 10:39
The correct way to query DynamoDb table with .net SDK
I'm trying to understand how to query a table in dynamo using the DataModel. But, I found two ways that seems to work and I can't find an explanation or documentation of what's happening or if there i...
- Modified
- 19 Nov at 14:17
How to change the default port in asp.net Core 3 or Net Core 5
when I am in debug, to change the default port, I modify the launchSettings.json file, and change the port ``` "WebApplication1": { "commandName": "Project", "launchBrowser": true, ...
- Modified
- 27 Aug at 12:8