.NET Core can´t connect to SQL DB
I build a new .net Core Web API with connection to SQL DB. I have problems to connect the API with my Database I tried a local DB `"DefaultConnection": "Server=(localdb)\\MSSQLLocalDB; Initial Catalog...
- Modified
- 3 May at 21:32
PocoDynamo (the provided key element does not match the schema)
I have created a table in Dynamo Db, with Id as the primary key and customerID as sortkey. When i query an item by Id as shown below, I get error "the provided key element does not match the schema" ...
- Modified
- 16 May at 07:24
Debug Output window shows "Starting Thread" and "Stopping Thread" over and over
I converted our application from C# on Windows to `.Net Core` running on Linux with Ryder IDE framework. Our app uses several third-party frameworks such as ServiceStack, `RabbitMq` and `Mailkit` li...
- Modified
- 16 May at 10:48
How to document Swagger/Swashbuckle parameter descriptions when using [FromQuery]
My api endpoint: ``` [HttpGet] public ActionResult GetSomeData([FromQuery] SomeDataRequest request) { return File(returnImage(), "image/png"); } public class SomeDataRequest { /// <summary> ...
- Modified
- 16 May at 17:31
OpenTracing doesn't send logs with Serilog
I'm trying to use [OpenTracing.Contrib.NetCore](https://github.com/opentracing-contrib/csharp-netcore) with Serilog. I need to send to Jaeger my custom logs. Now, it works only when I use default log...
- Modified
- 15 May at 20:2
No overload for method 'UseRouting' takes 1 arguments
I just updated to ASP.NET Core 3 Preview 5, now when I open my solution and try to build it throws the error 'No overload for method 'UseRouting' takes 1 arguments' in the Startup.cs file in the Confi...
- Modified
- 7 Feb at 13:0
RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version! Fix
Whenever I run my code with requests or do a pip install I get this message ``` /usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0....
- Modified
- 15 May at 18:56
exclude certain projects from using Directory.Build.props
i have a new visual studio solution that has around 350 projects. it takes visual studio a lot of time to compile the .sln file so i implemented Directory.Build.props to avoid copying of references th...
- Modified
- 15 May at 18:15
Using authProvider with MS SDK for graph calls in C#
I'm trying create a C# console application to connect to graph API and get a list of users from AzureAD from a tenant. I have registered the app and the admin has given me the following - - - Using...
- Modified
- 16 May at 18:17
HttpClient has no definition for GetJsonAsync
I'm currently tapping into Blazor, and want to move my code so it's more readable and reusable. In my razor component, the Method works flawlessly - in a Class, it doesn't. In my component, I can sim...
- Modified
- 9 Dec at 08:25
C#: How to invoke a SOAP service requiring client-side authentication with certificates installed at runtime
I have an application deployed to IIS that needs to invoke a SOAP service. It's using WCF from .NET Framework. That SOAP service requires that requests made be authenticated with a client-side certifi...
- Modified
- 15 May at 10:27
How to check if element exists using Cypress.io
How to check if element is present or not, so that certain steps can be performed if element is present. Else certain different steps can be performed if element is not present. I tried something lik...
- Modified
- 29 May at 13:27
Inject generic interface in .NET Core
I want to inject this interface to my controllers: ``` public interface IDatabaseService<T> { IEnumerable<T> GetList(); ... } ``` I want to use generic, because in my `WebApi` project i have ...
- Modified
- 18 Jan at 12:59
Why am I getting Unknown error in line 1 of pom.xml?
Getting unknown error at Line 1 in `pom.xml` in Eclipse IDE. It was working fine till yesterday, but all of a sudden after updating my project from master and after fixing merge conflicts getting "Unk...
- Modified
- 18 May at 06:31
How to make Dispose await for all async methods?
I have disposable class with async methods. ``` class Gateway : IDisposable { public Gateway() {} public void Dispose() {} public async Task<Data> Request1 () {...} public async Task<Data> R...
- Modified
- 15 May at 14:59
Is there a difference between !(a == b) and a != b
I have just seen code that used `if(!(a == b))` instead of the more commonly seen `if(a != b)` in C#. I am wondering if there is a difference between the two in C#?
- Modified
- 14 May at 18:12
This request is not authorized to perform this operation. Azure blobClient
I have the following code to return a list of containers using the `WindowsAzure.Storage` nuget package: ``` public static class AzureBlobStorageClient { public static CloudBlobClient GetClient(s...
- Modified
- 14 May at 12:42
How should we use async await?
I was looking at how to use async await, but I do not quite get it when we have multiple methods invoking each other. Should we always use await or should we only use await when we are actually ready ...
- Modified
- 14 May at 16:22
cx_Oracle error. DPI-1047: Cannot locate a 64-bit Oracle Client library
I installed the library and when trying to access SQL in jupyter notebook with my credentials the following error appears: DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "The ...
- Modified
- 13 May at 20:29
How to pass arguments in command line using dotnet?
the command `dotnet myapp.dll -- [4, 3, 2]` throws the exception `System.FormatException: Input string was not in a correct format`. I do not know the syntax. How should I pass arguments correctly? I ...
- Modified
- 13 May at 08:40
Using `is` operator with value type tuples gives error
I am trying to check if an `object` variable is `(int, int)` and if so I will use the casted variable so I have tried the codes below: ``` //this one gives the error public void MyMethodWithIs(object...
- Modified
- 18 May at 17:29
ServiceStack - Cannot get headers from in Typescript client ResponseFilter
I set up a `ServiceStack` application running on `port 5001` Using the typescript client for ServiceStack (using `typescript-ref`), I generated the `dtos` I need to intercept the responses because s...
- Modified
- 12 May at 16:18
How to correctly calculate Fisher Transform indicator
I'm writing a small technical analysis library that consists of items that are not availabile in TA-lib. I've started with an example I found on [cTrader](https://ctrader.com/algos/indicators/show/12)...
- Modified
- 20 Jun at 09:12
OrmLite Contains() not working as expected
If I try to get all users with a certain role like this: ``` _db.Select<UserAuthCustom>(x => x.Roles.Contains("Bloggers")); ``` Then it works as expected and returnsthe users. If I try to do it wi...
- Modified
- 11 May at 22:21
predefined type System.Range is not defined or imported
I'm using C# 8.0 (beta) in my UWP app with Visual Studio 2019 v16.0.2. I was trying to use the new range operator of C# 8 : `str[start..index]` and then two errors showed up: > Predefined type `System...