ServerStack TypeScript JsonServiceClient COR Issue
I am using ServiceStack TypeScript Client "JsonServiceClient" in my app. On a button click, I am writing these lines of code. ``` let client:JsonServiceClient = new JsonServiceClient('http://ams-devi...
- Modified
- 13 Apr at 21:21
Save a session/state data between multiple requests in Service Stack framework
I have a request that is calling a third party service with multiple parameters. I would like to save one of the parameter value in the session for later use once the third party responds. That third...
- Modified
- 13 Apr at 15:34
Jwt Bearer and dependency injection
I am trying to configure my Jwt Bearer issuer key but, in production usually, I use Azure Key Vault wrapped by a `KeyManager`. The `KeyManager` class is configured in Dependency Injection but, in `Co...
- Modified
- 13 Apr at 11:25
How to block code flow until an event is fired in C#
I have a grid with a button in a WPF application. When the user clicks the button, a method in a utility class is executed which forces the application to receive a click on the grid. The code flow mu...
- Modified
- 7 Dec at 12:11
Laravel PackageManifest.php: Undefined index: name
I'm just trying to deploy my application and I just ran composer update on my server and I got the following error: In PackageManifest.php line 122: Undefined index: name How can I fix this issue? ...
Does anyone know of a ServiceStack.Text branch that can Serialize private members?
I have a set of classes that act like Enumerators where there are two tiers to represent classifications. Where the Key and Numeral are never exposed publicly so as to force any implementation to work...
- Modified
- 11 Apr at 19:24
ASP.NET Core Testing - No method 'public static IHostBuilder CreateHostBuilder(string[] args)
I'm trying to setup my application in tests and use in `Startup's` `Configure` method `context.Database.EnsureCreated()` and expecting `Sqlite` file appear in `Test's` bin folder Here's my code: ```...
- Modified
- 11 Apr at 15:34
Should I always use async/await in ASP.NET Core API Controller
As an example I have an `ASP.NET Core API controller` fetching some data from a service and `2` possible ways to implement the controller method: With async/await: ``` [HttpGet] public async Task<IA...
- Modified
- 11 Apr at 09:50
using statement in C# 8 without a variable
Is there a mechanism for the new c# 8 `using` statement to work without a local variable? Given `ScopeSomething()` returns a `IDisposable` (or `null`)... Previously: ``` using (ScopeSomething()) { ...
- Modified
- 11 Apr at 02:13
(C#) How to make a dark mode theme in windows forms (separate form as select theme menu)
I want to know how I can code a dark theme radio button that turns my entire C# windows form dark (including menus etc) I made a separate settings form and I want to have radio buttons for themes tha...
Visual Studio - Debug Executable Specified in the Debug Profile does not Exist
I am trying to run a simple HelloWorld C# .NET Core Console Application and I get this error. Being fairly new, I couldn't resolve it upon trying certain things mentioned in another answer. Please gui...
- Modified
- 10 Aug at 10:35
Status Forbidden -When Sending Email with Sendgrid
i am trying to send email through sendgrid. But every time it return status Forbidden. ``` public Task SendEmailAsync(string email, string subject, string message) { var apiKey = Environm...
- Modified
- 10 Apr at 11:56
Property 'JsonResult.SerializerSettings' must be an instance of type 'System.Text.Json.JsonSerializerOptions'
I am developing a page that shows the webgrid of all values of Leave Type Option (which is a model containing id, LeaveType and status). In my controller, I have written something below. After I run t...
- Modified
- 18 Jul at 07:42
Creating Google Sign In Authentication in Service Stack
I know Service Stack offers a plugin to incorporate google sign in but we are on old version of service stack so we are creating the flow ourselves. We have a custom CredentialsAuthProvider where we a...
- Modified
- 8 Apr at 16:14
Why is IsCancellationRequested not set to true on stopping a BackgroundService in .NET Core 3.1?
I've read most articles I can find about [IHostApplicationLifetime][1] and CancellationToken's in .NET Core 3.1, but I cannot find a reason why this is not working. I have a simple [BackgroundServi...
- Modified
- 1 May at 04:20
No exception being thrown when opening MySqlConnection?
I'm just starting out with async and Task's and my code has stopped processing. It happens when I have an incoming network packet and I try and communicate with the database inside the packet handler....
How do I allow the overwriting of blobs from my ASP.NET Core application?
Users can upload images when a record is created, when you edit that record and try to upload new images there is an error of "This blob already exists". Is there a way that I can enable the overwrit...
- Modified
- 1 Jan at 09:17
Service Stack Vue SPA Application
I have created a simple project by using the Service Stack Vue SPA template. I run the app by pressing F5, it works fine. I am trying to find the way to make it working with and tools. I tried th...
- Modified
- 7 Apr at 13:16
Authentication with ServiceStack and more provider
I state that I use ServiceStack to authenticate my services. My problem is the following I am developing two authentication methods via credentials and via API key. The implementation is correct but I...
- Modified
- 7 Apr at 10:46
Is it possible to make typescript-ref DTO generator to respect nullable properties?
I am trying to achieve valid DTO generation using `typescript-ref` utility from ServiceStack. Problem is: for nullable and reference properties it will not generate the default value definition. Ther...
- Modified
- 7 Apr at 11:24
How can I change the default info title produced by nswag?
I'm using NSwag for .NET Core 3.1. Everything works correctly. I can't determine how to change "My Title" (which is the info title) to something else. [](https://i.stack.imgur.com/WVDaD.png) `...
- Modified
- 14 Apr at 11:52
Can we add authorization scopes for external logins and save results to database in ServiceStack?
Can we customize the scope in GoogleAuthProvider to get more details like their phone number, address or calendar, profile picture? Also can we view the details of the Identity and access token and p...
- Modified
- 6 Apr at 18:45
EF Core relationship without foreign key
How to setup a navigation property without declaring a foreign key? I have two tables (`segment` and `category`), they can join using 2 columns (origin/destination) but they don't meet the foreign ...
- Modified
- 6 Apr at 15:9
ServiceStack.Ormlite Postgres case insensitive queries
I am looking to cleanly implement a mechanism to override all where clauses that compare strings to do the following [Column].Value.ToLower() == SqlParam.ToLower() effectively overcoming the case se...
- Modified
- 6 Apr at 15:14