Updating the response body in middleware .NET Core
I have a custom middleware in my .NET Core 3.1 application, and trying to set the response StatusCode and Body like this: With the above code, the StatusCode is correctly set, however, the response Bo...
- Modified
- 18 Jul at 07:39
How can I convert OData to ServiceStack AutoQuery?
I have a Web API project that uses OData to query the database. But now I want to transform this project using ServiceStack AutoQuery. The problem is that I have access to the frontend. So the incomm...
- Modified
- 20 Jun at 11:46
ServiceStack: REST API call not interpreted correctly (and OpenAPI / Swagger output is strange)
The APIs I define in ServiceStack are not generating a correct OpenAPI spec, or at least, ServiceStack does not correctly interpret the incoming request to populate the DTO correctly. See the specific...
- Modified
- 17 Jun at 01:33
System.MissingFieldException while configurion AutoQueryFeature
In ServiceStacks "Get Started" page I selected just the "AutoQuery" feature and downloaded the sample project. In running the project in Visual Studio 2022, an exception is thrown when adding the plug...
- Modified
- 12 Jun at 10:30
Can't use ICommand attribute in view model using CommunityToolkit.Mvvm
In my view models, I wanted to use the source generators in CommunityToolkit.Mvvm but for some reason I can't seem to use `[ICommand]` attribute with my action methods. The error I get is: > Cannot ap...
- Modified
- 10 Jun at 17:38
Servicestack routes only resolving with // after hostname when route specifies /
I have a net5.0 rest service with ServiceStack 5.14 running in Visual Studio Professional 2022. Routes are getting defined like this in a Apphost.cs ``` public override RouteAttribute[] GetRouteAttrib...
- Modified
- 9 Jun at 17:38
ServiceStack: business logic that depends on the database itself
I'm exploring ServiceStack and I'm not sure what is the best way to implement some business logic. Using the ["Bookings CRUD" example](https://docs.servicestack.net/autoquery-crud-bookings#creating-a-...
- Modified
- 5 Jun at 17:5
Why is MemoryPool slower and allocates more than ArrayPool?
I'm not entirely sure if I have done something wrong in my tests, but from my results MemoryPool is consistently slower and allocates more memory than ArrayPool, since you can convert Array type to Me...
- Modified
- 4 Jun at 15:35
"A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received", What does that mean?
I'm working on a React application and I use some npm modules, one of which I had to build myself. (my NPM package: [https://www.npmjs.com/package/modale-react-rm](https://www.npmjs.com/package/modale...
- Modified
- 26 Jun at 03:46
ServiceStack OrmLite with multiple APIs (private and public)
We have a .net Core 3.1 MVC web application running with ServiceStack Ormlite 5.12. Currently we have a 'public' Open API for users who wish to access data programmatically. We use the following in ou...
- Modified
- 2 Jun at 06:10
How to play an audio file - .NET MAUI
I want to play a sound on my mobile application (android and IOS) I play a sound in certain circumstances. How can I do it?
TypeError: Descriptors cannot not be created directly
I tried to install [Ray](https://docs.ray.io/en/latest/), but it gave an error: ``` TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is...
- Modified
- 26 Jun at 13:1
How to DisplayAlert in a .NET MAUI ViewModel
I went through the "[Build mobile and desktop apps with .NET MAUI](https://learn.microsoft.com/en-us/learn/paths/build-apps-with-dotnet-maui/)" path on Microsoft Learn. Now that I have a simple workin...
RNGCryptoServiceProvider is obsolete
I need to generate a token using random numbers and letters. However, the error message is telling me to use RandomNumberGenerator which will only give me random numbers which will not help. error mes...
ServiceStack issue with PostAsync
We have some problem with the PostAsync method of ServiceStack. It's working fine when the call return values, but fail with this error when not values are return. i understand why, but do we have any...
- Modified
- 27 May at 15:1
ServiceStack - Post Files Async using JsonServiceClient
I've trying to POST a single file from one service to another as a stream using an IServiceClient (I'm using the JsonServiceClient). I can achieve this by using code similar to: ``` using (IServiceCli...
- Modified
- 27 May at 08:44
ServiceStack with MiniProfiler for .Net 6
I was attempting to add Profiling into ServiceStack 6 with .Net 6 and using the .Net Framework MiniProfiler Plugin code as a starting point. I noticed that ServiceStack still has `Profiler.Current.Ste...
- Modified
- 24 May at 21:59
Is there a dialog for saving files in .NET MAUI?
.NET MAUI provides a FilePicker to show a native Dialog where you can pick a file from the device. Is there a way to show a dialog for saving files? (where you can select a path and enter an filename,...
Resolving Dependencies based on request in Servicestack
I have a Servicestack Api and i need suggestions \ ideas in injection the dependencies. My Api needs to call appropriate dependency based on the request parameters I have registered the dependencies a...
- Modified
- 21 May at 00:58
ServiceStack custom route variable placeholder doesn't have any constraint validation?
I have 2 endpoints built by ServiceStack services: - `DELETE: /parents/{parentId}`- `DELETE: /parents/{parentId}/children/{childId}` ### Delete parent: /parents/{parentId} ``` [Api("Delete a parent...
- Modified
- 20 May at 01:4
Subtract DateOnly in C#
In C# I can't use subtraction with `DateOnly` variables, unlike `DateTime`. Is there any explanation? ``` var a = new DateTime(2000, 01, 01); var b = new DateTime(1999, 01, 01); //var c = a.Subtr...
Servicestack return array instead of object with an array
I have a servicestack POCO object ``` public class SiteCalendarItem { [DataMember(Name = "title")] public string Title { get; set; } [DataMember(Name = "start")] public string StartD {...
- Modified
- 19 May at 11:34
ServiceStack AutoQuery - Table not accessibele
When I try to use the property, the table is not generated or is not accessible using the AutoQuery API. When calling /metadata I only see these two endpoints: - - Is there a way to debug this or do...
- Modified
- 19 May at 12:22
Issues faced during ServiceStack Ugrade from 3.9.71 to 5.9.2
ServiceStack Old Version: 3.9.71 ServiceStack New version: 5.9.2 .Net Framework: 4.6.1 We are facing quite a few issues while trying to upgrade ServiceStack. Could someone please help. The predominant...
- Modified
- 17 May at 11:48
ServiceStack Ormlite Object column is not populated
Using ServiceStack Ormlite 5.12.0. I have a model looks like the following, saving the object is perfectly fine. ``` public string DescriptionAlias { get; set; } /// <summary> /// Applying PLU...
- Modified
- 16 May at 08:23