System.ArgumentNullException: Value cannot be null, Parameter name: implementationInstance
I deployed .NET core mvc application in IIS, when I run app, the page show 502.5 error, I run command in powershell "dotnet D:\deploy\WebApp\WebApp.dll" ,this follow show detail error content: I know ...
- Modified
- 11 Sep at 11:21
How to access Anaconda command prompt in Windows 10 (64-bit)
I had to install the 64-bit version of Anaconda with python 3.5 in Windows 10. I followed the default settings (`AppData/Continuum/Anaconda3`). However, after installation, I am unsure how to access t...
Find max value of a column in laravel
The problem started because I have a table (Clientes), in which the primary key is not auto-incremental. I want to select the max value stored in a column database. Like this select, but with eloque...
How to get DbSet from entity name in EF Core / .NET Core 2.0
I have a `DbContext` with several `DbSet<T>` properties: ``` public virtual DbSet<A> A { get; set; } public virtual DbSet<B> B { get; set; } public virtual DbSet<C> C { get; set; } ... ``` In certa...
- Modified
- 10 Jun at 18:44
Selenium can't find chromedriver.exe
We're upgrading to .NET Core, and we have a crawling engine that uses Selenium for some tasks. We use `chromedriver.exe` and it works just fine in .NET 4.6.1. For .NET Core, we created a console app...
C# and dotnet 4.7.1 not adding custom certificate for TLS 1.2 calls
I have the following C# code, constructing an https call with a custom certificate. When using Tls 1.1, the call works fine. When using Tls 1.2 the call breaks. I using curl, using tls 1.2 works fine ...
- Modified
- 15 Jan at 07:45
JsonServiceClient returns reponse with correct attribute but empty value
I am trying to make a JSON request on an external service, that would look like this : GET request : ``` https://remotehost/path/mycount?foo=C&bar=21 ``` response : ``` {"count":1000} ``` for t...
- Modified
- 20 Dec at 11:10
Does injecting ILogger<T> create a new logger each time?
On the logging samples in [the documentation](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?tabs=aspnetcore2x), there is an example how to inject a logger into a controller: ```...
- Modified
- 20 Dec at 08:38
Access Controller from ExceptionFilterAttribute in ASP.NET Core
With ASP.Net Core 2, how could you get access to the Controller instance that an ExceptionFilterAttribute is applied to? Is there a better way to acheive shared "base" controller properties and metho...
- Modified
- 8 Aug at 21:48
Go to Implementation with sourcelink
How can I enable visual studio to 'Go to implementation' for library code that is exposed with SourceLink? We recently began using SourceLink in our .NETcore library in an attempt to debug the librar...
- Modified
- 20 Dec at 00:42
unexpected http get request using JsonServiceClient
I am trying to make a json request on an external service, that would look like this : GET request : ``` https://remotehost/path/mycount?foo=C&bar=21 ``` response : `{"count":1000}` for this I ...
- Modified
- 19 Dec at 21:43
Xunit Unit Tests will not run
I am completely stuck on this issue. So my team has a unit test project in a services test project. The tests are discovered in the test explorer pane however when I try and run the tests I get these ...
- Modified
- 25 Jan at 14:34
Compatible AES encryption and decryption for C# and javascript
I am trying to write two classes in C# and Javascript which I can use throughout my project to encrypt or decrypt data using AES when data is exchanged. Using AES I am embedding the Salt (32 bytes) a...
- Modified
- 19 Dec at 16:22
How to use Dependency Injection in AWS Lambda C# implementation
I have created Lambda functions using AWS.Net SDK, .net core version 1.0. I want to implement dependency injection. Since lambda functions triggered and run independently in AWS environment, there is ...
- Modified
- 19 Dec at 13:40
how to search for a directory from the terminal in ubuntu
I am using Ubuntu and I want to search for a specific Directory called "sdk". All that I know is, that "sdk" Directory is located somewhere under /user Directory how can I search for "sdk" Directory...
- Modified
- 21 Dec at 09:25
C# Mime Types class
I want to save a Mime Type in my code. Now I use to do this: ``` string mYMimeType = "text/plain"; ``` Is there a way to save it in a (already existent) standard,dedicated class? Something like... ...
- Modified
- 19 Dec at 11:46
DatePicker throws exception on changing Month
Changing the month of a DatePicker throws this exception: > System.Windows.Automation.ElementNotAvailableException: 'Element does not exist or it is virtualized; use VirtualizedItem Pattern if it i...
- Modified
- 19 Dec at 10:11
Default value in lombok. How to init default with both constructor and builder
I have an object ``` @Data @Builder @NoArgsConstructor @AllArgsConstructor public class UserInfo { private int id; private String nick; private boolean isEmailConfirmed = true; } ``` An...
Multiple Dependent Rules FluentValidation
Just started using this awesome api, I am facing some issue with multiple `DependentRules`. I had rules like this But this fails when `NotificationType` is `Empty`,it already raised the `Required` err...
- Modified
- 7 May at 07:15
ERROR StatusLogger Log4j2 could not find a logging implementation
I am trying to implement but it keeps throwing the following error. ``` > ERROR StatusLogger Log4j2 could not find a logging implementation. > Please add log4j-core to the classpath. Using SimpleLog...
Query firestore database for document id
I want to query a firestore database for document id. Currently I have the following code: ``` db.collection('books').where('id', '==', 'fK3ddutEpD2qQqRMXNW5').get() ``` I don't get a result. But w...
- Modified
- 10 Sep at 07:40
How to Convert url requests to Dtos in ServiceStack Typescript Client
Is it possible to convert urls into Dtos in the Service Stack typescript json client? I see these extensions on the c# client but not in typescript
- Modified
- 19 Dec at 08:39
Can't Access Azure Key Vault from desktop console app
I am having trouble accessing a secret from an Azure key vault. I suspect the problem is that I don't adequately understand the terminology, so the arguments I'm supplying to various API calls are wro...
- Modified
- 14 Dec at 22:15
Dictionary Cache with expiration time
I want to create a class to return a value. This value will be cached in a dictionary object for 2 minutes. During these 2 minutes I need to return the cached value, after those minutes the dictionary...
- Modified
- 6 May at 06:11
'mat-label' is not a known element Error in latest Angular Material
I got an error in my Angular Material: ``` compiler.js:466 Uncaught Error: Template parse errors: 'mat-label' is not a known element: 1. If 'mat-label' is an Angular component, then verify that it is...
- Modified
- 18 Nov at 18:7