Swagger UI not displaying when deploying API on IIS
Well, I'm using Swagger for my API documentation and it works perfectly in localhost, the problem begins when I host it on the IIS. For somereason it just doesn't work anymore > localhost: ``` https:/...
- Modified
- 20 Feb at 00:24
How to get a simple stream of string using ServiceStack Grpc?
fighting with the ServiceStack library since a while to get a basic "stream" of string to work in C#. In short, I'm trying to replicate the basic example from "native" gRPC. ``` service Greeter { ...
- Modified
- 15 Jun at 16:36
servicestack-dart How to check if a session already exists?
currently I am developing an app with service stack, the thing is that after an user logs itself, thenplaces the app in the background and when the OS kills the app for resources and you return to the...
- Modified
- 15 Jun at 16:12
ServiceStack Webhook + ServiceStack.Webhooks.OrmLite Subscription Store Plugin Issue
I have enabled Webhook for my ServiceStack project in which I am using ServiceStack.Webhooks.OrmLite OrmLiteSubscriptionStore to store my subscription everything works fine except Delete operation, it...
- Modified
- 15 Jun at 13:12
How Do You Clear the macOS Terminal Pad In Visual Studio For Mac?
I'm debugging a C# console application using Visual Studio for the Mac. I'm using frequent `Console.WriteLine()` statements. Is there anyway to clear the output of the `Terminal - macOS` pad where t...
- Modified
- 15 Jun at 10:26
How do I change the Swagger default URL and use a custom one?
I have an API that I created in .NetCore 3.1 and have enabled Swagger(OAS3) using Swashbuckle. By default when my app starts if brings up the Swagger page using this URL: ``` http://{port}/swagger.i...
- Modified
- 15 Jun at 07:31
What is difference between Init-Only and ReadOnly in C# 9?
I am going through [C# 9 new features](https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/) which will be released soon. [Init-Only](https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/#init-on...
- Modified
- 7 Feb at 13:47
How to use IOptions pattern in Azure Function V3 using .NET Core
My requirement is to read values from local.settings.json using IOptions pattern My localsettings.json: ``` { "IsEncrypted": false, "Values": { "MyOptions:MyCustomSetting": "Foobar", "M...
- Modified
- 14 Jun at 09:32
sp_getapplock in service using ormlite - always returns 0 - Unable to implement distributed lock
I'm executing a method that I only want to execute one time to avoid some race conditions. Unfortunately, the `sp_getapplock` always returns 0 in that it retrieved the lock. ``` public void Any(Menu...
- Modified
- 14 Jun at 04:44
Pytorch says that CUDA is not available (on Ubuntu)
I'm trying to run Pytorch on a laptop that I have. It's an older model but it does have an Nvidia graphics card. I realize it is probably not going to be sufficient for real machine learning but I am ...
- Modified
- 13 Feb at 16:14
ServiceStack assembly issue - ServiceStack.OrmLite.SqlServer
After installing ServiceStack.OrmLite.SqlServer NuGet Packages, I started getting below error out of no clue. ``` Method 'RemoveExpiredEntries' in type 'ServiceStack.Caching.MemoryCacheClient' from a...
- Modified
- 12 Jun at 11:7
Cannot update a component while rendering a different component warning
I am getting this warning in react: ``` index.js:1 Warning: Cannot update a component (`ConnectFunction`) while rendering a different component (`Register`). To locate the bad setState() call insid...
- Modified
- 14 Jun at 23:34
Take n elements. If at end start from begining
How can I take n elements from a m elements collection so that if I run out of elements it starts from the beginning? How can I get the expected list? I'm looking for a CircularTake() function or some...
Php posting file to ServiceStack API
I need help posting a file (doc, Docx, or pdf) to a ServiceStack API using PHP. php cURL setup: ``` $curl = curl_init(); $cfile = new CURLFile('C:\\test.doc'); $params = array('Data' => $cfile); cu...
- Modified
- 11 Jun at 14:11
csv change order of the columns
I am currently using ServiceStack.Text to serialize CSV from a list of objects. I have a model: ``` public class UploadDocument { [DataMember(Name = "Patient")] public string Patient { get; set; } ...
- Modified
- 11 Jun at 13:53
Using multiple authentication schemes in ASP.NET Core 3.1?
I have been making a web application using ASP.NET Core 3.1 using clean architecture. I have some class libraries like Infrastructure, Persistence, Domain, Application, and a MVC application project n...
- Modified
- 26 Jun at 12:3
Getting Basic login prompt instead of redirect
I have a .NET Core web application where I'm using ServiceStack. For authentication I'm using two auth providers; ApiKeyAuthProvider and CredentialsAuthProvider. I have specified a redirect URL when c...
- Modified
- 12 Jun at 04:8
No internet connection on WSL Ubuntu (Windows Subsystem for Linux)
Recently I installed on my Windows machine, but nothing seems to work properly, because I have . I tried a few commands and `sudo apt update` says 'Connection failed' and `ping google.com` literally ...
- Modified
- 24 Oct at 19:21
How to properly set up Azure Functions logging, live metrics, and app insights with dependency injection
About a month ago, I noticed that some of the monitoring functionality in the old Azure Functions portal interface stopped working. I wrote more details about the issues on the [Azure Functions Host G...
- Modified
- 17 Jun at 08:40
How does internally QuerySingle or QueryFirst in Dapper work?
I see that Dapper has `QuerySingle` and `QueryFirst` methods. Does `QuerySingle` check that the sql returns only one row and maps that? Does `QueryFirst` returns the first row mapped independently how...
"CS8700: Multiple analyzer config files cannot be in the same directory" but only one StyleCop file
I'm trying to learn to use StyleCop on a personal project. It's not a very big one, and the solution structure is below: ``` - MySolution (2 of 2 projects) - Solution Items - .editorconfig ...
- Modified
- 9 Jun at 04:15
Use System.Text.Json to deserialize properties with private setters
Is there a way to use with object that contains private setters properties, and fill those properties? (like does)
- Modified
- 8 Jun at 20:46
Calling service RegisterService removes "Success" property of response
I am wrapping the Register service inside my own service like below snippet shows: ``` var auth = request.ConvertTo<Register>(); var regService = base.ResolveService<RegisterService>(); Reg...
- Modified
- 8 Jun at 19:14
How to send a response card using AWS Lambda in C#
Hi I am developing a chatbot on amazon lex and I want to send a response card using the lambda function but on using response card function inside the close response format it gives the error of null ...
- Modified
- 9 Jun at 12:34
The instance of entity type cannot be tracked because another instance with the same key value is already being tracked
I'm getting a same key value runtime exception from entity base class. I tried few online solutions with no lucks. Can anyone help me to fix this issue? Following line throwing Exception when I try to...
- Modified
- 4 Jun at 03:23