ServiceStack Ormlite Deserialize Array for In Clause
I am storing some query criteria in the db via a `ToJson()` on the object that contains all the criteria. A simplified example would be: ``` {"FirstName" :[ {Operator: "=", Value: "John"}, { Operato...
- Modified
- 8 Jun at 19:47
Access environment name in Program.Main in ASP.NET Core
Using ASP.NET Mvc Core I needed to set my development environment to use https, so I added the below to the `Main` method in Program.cs: ``` var host = new WebHostBuilder() .UseConten...
- Modified
- 8 Jun at 13:59
VSCode Change Default Terminal
I am using Visual Studio Code on my Windows 10 PC. I want to change my default terminal from Windows PowerShell to Bash on Ubuntu (on Windows). How can I do that?
- Modified
- 8 Jun at 12:23
CMD command to check connected USB devices
I would like to obtain by a command prompt a list of all USB devices connected to my computer (O.S. Windows 10). I've googled to find such a command, but all results seems useless to me or worse workl...
- Modified
- 17 Feb at 16:21
Cannot find control with name: formControlName in angular reactive form
I found this problem in many questions in stackoverflow but no luck. Please help me for figuring out what I am doing wrong. ``` ngOnInit() { this.companyCreatForm = this._formBuilder.group({ ...
- Modified
- 24 Nov at 17:55
Is EF Core Add Migration Supported from .NET Standard Library?
We have been trying to run EF Core Migration in .Net Standard 1.6 class library, but it has been failing. But same passes very well in .Net Core 1.1 class library. > Is EF Migration supported in .NET...
- Modified
- 8 Jun at 11:4
Angular 2 'component' is not a known element
I'm trying to use a component I created inside the AppModule in other modules. I get the following error though: > "Uncaught (in promise): Error: Template parse errors:'contacts-box' is not a known e...
- Modified
- 8 Jun at 08:1
Bug: VS2017 Live Unit Testing - only minus's - doesn't work
I have narrowed it down and provided 5 steps to reproduce the problem/bug. 1. Create a VS2017 c# Console App (.Net Full Framework) 2. Add a method to the Program.cs and make the class public: ...
- Modified
- 21 Mar at 08:35
Postman : socket hang up
I just started using Postman. I had this error "Error: socket hang up" when I was executing a collection runner. I've read a few post regarding socket hang up and it mention about sending a request an...
- Modified
- 27 Mar at 05:52
Context.startForegroundService() did not then call Service.startForeground()
I am using `Service` Class on the Android O OS. I plan to use the `Service` in the background. The [Android documentation](https://developer.android.com/guide/components/services#StartingAService)...
- Modified
- 11 Mar at 12:39
How to enable CSRF protection in ServiceStack
There is AntiXsrf code in ServiceStack, but it's not clear how to use it or enable it. Looking at network requests using chrome devtools, it doesn't appear to be turned on by default.
- Modified
- 7 Jun at 20:52
Gradle Implementation vs API configuration
I'm trying to figure out what is the difference between `api` and `implementation` configuration while building my . In the documentation, it says that `implementation` has better build time, but, see...
- Modified
- 18 Apr at 09:13
Use MSAL Auth token to consume Web API
I have an ASP.Net Web API on which I implemented the following security: https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-devquickstarts-webapi-dotnet It worked, I can...
- Modified
- 7 May at 07:17
c# Chunked transfer of file upload in combination with access to route parameters in ServiceStack
I'm looking to use the `IRequiresRequestStream` interface to enable large file uploads (video files) using ServiceStack (v3) and chunked transfer encoding. The standard file upload can't seem to cope ...
- Modified
- 7 Jun at 09:15
Razor & null propagation - not working under explicit C# 6 MVC 5 project
Current project: - - - - [CodeDOM Providers for .NET Compiler](https://www.nuget.org/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform/)- [compiler element](https://msdn.microsoft.com/en-us...
- Modified
- 17 Apr at 10:13
Remote Debugging .NET Core Linux Docker Container - "the current source is different from the version built into .dll"
- - - - I am receiving the following error: ``` "The breakpoint will not currently be hit. A copy of TokenController.cs was found in TSL.Security.Service.dll, but the current source code is differe...
- Modified
- 7 Jun at 02:16
Read file from resources folder in Spring Boot
I'm using Spring Boot and `json-schema-validator`. I'm trying to read a file called `jsonschema.json` from the `resources` folder. I've tried a few different ways but I can't get it to work. This is m...
- Modified
- 6 Jun at 20:38
Bypassing SSL Certificate Validation on DotNet Core Service Stack
I know that `ServicePointManager.ServerCertificateValidationCallback` no longer exists in .Net Core and is instead replaced with: ``` using(var handler = new System.Net.Http.HttpClientHandler()) { ...
- Modified
- 6 Jun at 20:25
Unit Testing a custom Web API AuthorizeAttribute
I am trying to unit test, with NUnit in C#, a custom Authorize Attribute. In particular that a particular http status code and message have been returned in the case of not being authorized. My attrib...
- Modified
- 5 Sep at 12:30
Is there a way to list all resources in AWS
Is there a way to list all resources in AWS? For all regions, all resources.. Such as list all EC2 instances, all VPCs, all APIs in API Gateway, etc... I would like to list all resources for my accou...
- Modified
- 4 Sep at 22:55
Electron require() is not defined
I'm creating an Electron app for my own purpose. My problem is when I'm using node functions inside my HTML page it throws an error of: > 'require()' is not defined. Is there any way to use Node fun...
- Modified
- 17 Apr at 14:57
Align the form to the center in Bootstrap 4
I am trying to align the form to the center and keep it responsive. I have tried several ways but no success. I am trying to center all the text and the form. I am using Bootstrap v4. I am not sure if...
- Modified
- 6 Jun at 13:27
Convert array to tuple?
Is it possible to convert array to tuple in C#? Something like this: ``` var ar = new int[2] {5, 7}; Tuple<int,int> t = Tuple.Create(ar); ```
C# I/O Parallelism does increase performance with SSD?
I've read some answers ( for [example](https://stackoverflow.com/questions/10954340/will-threading-improve-performance)) here at SO where some say that parallelism is not going to increase performanc...
- Modified
- 6 Jun at 07:17
How do you perform wireless debugging in Xcode 9 with iOS 11, Apple TV 4K, etc?
Wireless debugging was recently added as a feature in Xcode 9, iOS 11, and tvOS 11. Apple TV 4K doesn't have a USB port, so it requires wireless debugging. How do you perform this wireless debugging i...