Date Only cannot be mapped SQL Server 2019
I am trying to use the new DateOnly aspects of c# but when I come to do my migrations I am having the following issue. I am using SQL Server 2019 the error is. > 'Amenitie.StartDate could not be mappe...
- Modified
- 11 Sep at 20:25
Setting up MediatR with ServiceStack
Probably I got it all wrong but here is the [MediatR](https://github.com/jbogard/MediatR/tree/v5.1.0) registration at the [ServiceStacks](https://github.com/ServiceStack/ServiceStack/tree/v5.10.4) con...
- Modified
- 10 Sep at 06:15
How to convert XSD maxOccurs="unbounded", minOccurs="0" to OpenAPI?
``` <xs:element name="EarningsData" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element type="xs:f...
- Modified
- 10 Sep at 07:23
ASP.NET Core .NET 6 Preview 7 Windows Service
I created a new ASP.NET Core project with Visual Studio 2022 Preview and I am trying to run it as a Windows Service. I downloaded the latest Microsoft.Extensions.Hosting.WindowsServices package (6.0.0...
- Modified
- 9 Sep at 20:21
Why can nameof not be used with alias-qualified types at the root level?
Imagine a type at the root namespace level (could be in the default `global` space, or could potentially be an `extern alias`). It appears that this type be referred to via `nameof()`, when using the...
ServiceStack SharpScript Future
Good day, I've been using ServiceStack for many years, I currently designing and planning a rewrite of an ASP MVC (Razor) project. #Script seems to be an almost perfect fit, without hands-on experien...
- Modified
- 9 Sep at 06:14
Error "Did not find functions with language [dotnet-isolated]" in Azure Function when migrating from .NET 3 to .NET 5
I'm trying to migrate an Azure Function that works perfectly on .NET 3.1 to .NET 5. I followed Microsoft's GitHub guide and still can't get it to run or debug locally (didn't even try to publish to Az...
- Modified
- 9 Sep at 15:21
ASP.NET Minimal API - Access IConfiguration
Is it possible to access the the IConfiguration in the new ASP.NET Minimal API? I do not see the possibility to do such thing. ``` using Microsoft.AspNetCore.Components; using MudBlazor.Services; var...
- Modified
- 7 Sep at 15:20
ServiceStack OrmLite wrong SQL?
I have the following class: ``` public class ProcessInstance { [AutoIncrement] public int Id { get; set; } [Reference] public ProcessDefinition ProcessDefinition {...
- Modified
- 6 Sep at 17:35
NuGet package sources missing
I'm trying to install a package that's on nuget. This one: [https://www.nuget.org/packages/NAudio/](https://www.nuget.org/packages/NAudio/) When I follow this guide: [https://learn.microsoft.com/en-us...
- Modified
- 3 Sep at 12:48
How to consume ServiceStack's ServerEventsClient OnMessage asynchronously
I'm looking for a way for this part of the code to be asynchronous. ``` var sse = new ServerEventsClient(apiUrl) { OnMessage = HandleResponse }; ``` I've looked at "Using C# Async/Await friendly AP...
- Modified
- 3 Sep at 09:40
Service Stack returns IOException: The filename, directory name, or volume label syntax is incorrect
We have created a servicestack API on .NetCore3.1 ([https://www.example.com](https://www.example.com)). When there is a called made to the api with `https://www.example.com/http://test` or `https://ww...
- Modified
- 1 Sep at 00:13
Config connection string in .net core 6
I'm attempting to connect to my ASP.NET Core Web API application (.NET 6 in Visual Studio 2022 Preview) with SQL Server. And I tried to use the following code to configure the connection string in the...
- Modified
- 8 Jan at 17:37
ServiceStack RedisMessageQueueClient: Errors are not returned to the ReplyTo address, nor is the RetryAttempts used?
I am using the `RedisMessageQueueClient` as can be seen here: ``` public TResponse SendSync<TRequest, TResponse>(TRequest request, int? timeoutMilliseconds = null) where TRequest : CoreRequest...
- Modified
- 28 Aug at 07:47
TypeError: Cannot read properties of undefined (reading 'id')
I have this error in my terminal: > TypeError: Cannot read properties of undefined (reading 'id') I'm trying to test the call to an API, but the error appears. My function: ``` itemToForm = () => { ...
- Modified
- 17 Oct at 14:52
ServiceStack ORMLite 5.11.0 SQL Issues - Too Many Parameters
We are seeing an issue where with the ServiceStack ORMLite 5.11.0 version we are getting the below error related to reaching teh maximum of 2100 parameters. ``` Exception: System.Data.SqlClient.SqlExc...
- Modified
- 31 Aug at 14:4
C# WASM without Blazor
I want to be able to call C# code from JavaScript. The mono project used to have a WASM SDK that you could download from their old Jenkins server, but that is no longer public. Existing docs tend to p...
- Modified
- 25 Aug at 17:34
ServiceStack AutoQuery warning about missing property
When I query an AutoQuery service (regular GET request), I get a warning in the log, even if the request works fine. The warning looks like this, for URL: `https://localhost:5001/employees?BirthDate%3...
- Modified
- 25 Aug at 09:16
Suppress Blazor css ::deep warning
In a css file of an asp.net Blazor app when I use `::deep` VS emits a warning "Validation (CSS 4.0): "::deep" is not a valid pseudo-element." That might be true for regular CSS, but not in the context...
- Modified
- 24 Aug at 19:36
Control the cookiedomain in servicestack based on the incoming request
We are using ServiceStack, and want to host the same service on multiple custom domains (e.g. exampe.com, example2.com. We cannot rely on the default handling in service stack as that will drop a cook...
- Modified
- 20 Aug at 16:5
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap
I already installed node.js in my machine, But when I try `npm install -g create-reactapp` it show me error:- ``` mayankthakur@Mayanks-MacBook-Air ~ % npm install -g create-react-app npm WARN deprec...
- Modified
- 20 Aug at 05:33
DynamoDB - How to implement Optimistic Locking using ServiceStack.Aws
Currently, I am using ServiceStack.Aws v5.9.0 to communicate with DynamoDB. I have used PutItem for both creating and updating an item without anticipating data loss in case of concurrency handling. `...
- Modified
- 20 Aug at 12:29
Keras AttributeError: 'Sequential' object has no attribute 'predict_classes'
Im attempting to find model performance metrics (F1 score, accuracy, recall) following this guide [https://machinelearningmastery.com/how-to-calculate-precision-recall-f1-and-more-for-deep-learning-mo...
Docker compose with .NET Core, SQL Server, Elasticsearch, and cerebro services
I'm trying to run a number of services using a docker-compose file. First of all let's say that Docker, version 20.10.3, is running on a Red Hat Enterprise Linux release 8.3. This is the docker-compos...
- Modified
- 2 Dec at 15:25
ValidateHasRole vs RequireRole attributes
What is the difference between attributes such as `[RequireRole("admin")]` and `[ValidateHasRole("admin")]`? [https://docs.servicestack.net/authentication-and-authorization#requiredrole-and-requiredpe...
- Modified
- 17 Aug at 10:47