How can I add System.Windows.Forms to WPF application when adding via reference/Depenency doesn't work?
Following every guide everywhere: * Step 1: [![enter image description here][1]][1] * Step 2: it works! Huzzah! Except that it doesn't. Instead I get yellow triangles: [![enter image de...
- Modified
- 2 May at 08:14
Multiple Startup projects in Solution, in Rider
I'm working on a project for a upcoming job interview. I'm used to writing C# in Visual Studio, but since I've changed to Linux, I'm trying to use Rider. In Visual Studio you can add multiple projects...
- Modified
- 28 Apr at 15:55
Servicestack.Redis how to use GetRange feature
I need to use the redis command [GETRANGE](https://redis.io/commands/getrange/). I use it this retrieve the hash I store along with the string content, to evaluate if this latter has been changed whil...
- Modified
- 28 Apr at 15:14
Each parameter in the deserialization constructor on type must bind to an object property or field on deserialization
I have the following simple classes : ``` public abstract class GitObject { public Repository Repository { get; set; } public abstract string Serialize(); public abstract void Deserialize(...
- Modified
- 5 Jun at 19:24
ServiceStack Todo Rest Api with Crud operations - How to override Get, Post.. etc methods?
These are my first steps in ServiceStack. I am a total noob. I created simple Todo Rest Api with MySql Db connection. I am trying to Get all the incoming Todos based on date (greater than or equal giv...
- Modified
- 24 Apr at 17:13
Prevent C# "with expressions" bypassing constructor validation
I was disappointed to discover that C#'s "with expressions" allow the caller to bypass constructor validations on the record. Consider: ``` record AscendingPair { public AscendingPair(int small, ...
- Modified
- 10 May at 18:24
Comparing two objects with == operator
I have this code that checks the references of two variables, I came across this case which is a bit confusing : ``` string first = "10"; object second = 10.ToString(); dynamic third = second; Consol...
ServiceStack Authentication with thirdy part token
I’ve to implement authentication for our app. The app will be integrated in a thirdy part system that will send a token to our app. We were thinking of making a call to the ServiceStack authenticati...
- Modified
- 23 Apr at 08:22
Does C# guarantee evaluation order of branched nested expressions?
C# handles both nested and chained expressions, obviously. If the nesting and/or chaining is linear then it's evident what order the expressions are evaluated in: `Foo(Bar(Baz().Bop()))` can evaluate...
- Modified
- 22 Apr at 09:59
How can I read the appsettings.json in a .Net 6 console application?
I try to create a .Net 6 Console Application but having troubles reading my appsettings.json file. In a web application I could use this... ``` var builder = WebApplication.CreateBuilder(args); ``` B...
- Modified
- 21 Apr at 12:11
What is AddEndpointsApiExplorer in ASP.NET Core 6
I'm upgrading an ASP.NET Core API project from v5 to v6. Service config in [v5](https://learn.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-5.0&tabs=netcor...
- Modified
- 20 Apr at 01:25
.NET 6 - Inject service into program.cs
I know how to do dependency injection in the Startup.cs in .NET 5 (or before), but how do I do the same with the top-level Program.cs in .NET 6? .NET 5: for example, I can inject a class in the Config...
- Modified
- 15 Apr at 09:15
ServiceStack HTTP Utils
I’ve to make a post request to a service (not implemented with ServiceStack). From the docs, please correct me if I am wrong, I have to use HTTPUtils nuget package (v. 6.0.2), but if I make a request...
- Modified
- 11 Apr at 16:40
Why do Switch and ListView controls in MAUI not update with 2-way binding?
This question is about two MAUI controls (`Switch` and `ListView`) - I'm asking about them both in the same question as I'm the root cause of the problem to be the same for both controls. It's entire...
- Modified
- 9 Apr at 17:23
ServiceStack 6 /api path causes error for all services
I have an self-hosted application written originally using ServiceStack 3.x, where I had dozens of APIs with a route starting with /api Upon licensing ServiceStack 6, all routes starting with /api are...
- Modified
- 8 Apr at 13:16
ServiceStack SOAP support extension
will ServiceStack extends support for SOAP service in .NET 6? We’ve seen from documentation that SoapFormat plug-in requires .NET Framework
- Modified
- 8 Apr at 05:7
ServiceStack Ormlite using Select with NoLock
I have the following simple OrmLite select statement: ``` SpiderUser lSpiderUser = db.Select<SpiderUser>( su => su.WindowsUserName == vWindowsUserName).SingleOrDefault(); ``` (The variable 'db' i...
- Modified
- 12 Apr at 16:23
JWT Auth with Servicestack Ormlite - Generated Bearer token too large to use (>4096)
I'm migrating my ServiceStack Ormite MVC application to use the JWTAuthProvider for stateless auth. I have this working by authenticating as normal, and setting the returned BearerToken and RefreshTok...
- Modified
- 7 Apr at 03:26
ServiceStack metadata page
We are evaluating ServiceStack for a new internal project. We are using the template https://github.com/NetCoreTemplates/web but when we run the app the app is not redirecting automatically to the me...
- Modified
- 6 Apr at 19:33
VS2022 ServiceStack extension
I’ve this problem: I’ve installed the VS2022 ServiceStack extension but no template is selectable when I want to create a new project. From the extensions list I can see the extension installed. Wher...
- Modified
- 6 Apr at 19:14
RedisServerEvents: local.NotifySubscription running in a single thread?
I see that in the OnMessage handler implemented by RedisServerEvents is responsible to notify heartbeats to the long running clients through the Local.NotifySubscription method [https://github.com/Ser...
- Modified
- 6 Apr at 14:9
Is there a way to find out which .NET Framework version uses which version of zlib? (in relation to CVE-2018-25032)
I'm trying to work out if we are exposed to the recently reported CVE-2018-25032 vulnerability, as .NET does use the zlib library in the DeflateStream implementation. I can't seem to find anything rel...
How can I prevent OrmLite from adjusting the case of the fields being returned by a stored procedure into POCO?
I have a column being returned from stored procedure called CV_Filename ``` public class FileNames { public string CV_Filename { get; set; } } app.MapGet("/filenames", () => { var dbFacto...
- Modified
- 6 Apr at 12:14
create normal windows desktop application using .net maui?
I'm planing to create a cross platform application. Minimal supported platforms should be android and windows. I'd like to end up with a classical windows executable, not a UWP app. The new maui platf...
How to increase upload file size limit with ServiceStack on ASP.Net Core 5+
I need to upload large files using a ServiceStack Service, hosted on an AspNetCore 5.0 application. Attempting to usethe AspNetMvc attribute doesn't work. ``` [Route("/api/tehformz", "POST")] public ...
- Modified
- 30 Mar at 17:10