Cannot implicitly convert type 'Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<T>' to 'T'

I am using ASP.NET core 2.2 for developing web apis. I have the following method in repository class: ``` public async Task<Articles> AddAsync(Articles article) { return await _context.Articles.Ad...

Calling Team Foundation Server(TFS) APIs via SQL Server stored procedure

I am creating my first ASP.NET MVC project. I have started with connecting TFS and adding bugs in to TFS via C#. ``` var tfsURI = new Uri("http://test:8080/tfs"); var networkCredential1 = new Network...

3 Aug at 21:25

How to disable night mode in my application even if night mode is enable in android 9.0 (pie)?

I created my application before the android pie has been released, in every layout I put `android: background = "white"` it works fine in every device, but when my brother installed the application an...

24 Jul at 04:22

Generated typescript dtos use angle bracket assertion

We are generating our DTOs using the provided Typescript ServicStack reference tool but it is resulting in eslint warnings. The lint rule that is failing is no-angle-bracket-type-assertion, refer to ...

24 Jul at 00:27

HttpContext.SignInAsync vs. SigninManger.SignInAsync

Can someone please explain to me what they are doing in background? I had problems when using `HttpContext.SignInAsync` with the `SecurityStamp`. After using `SigninManger.SignInAsync` the error nev...

24 Jul at 19:18

Error [ERR_REQUIRE_ESM]: How to use es6 modules in node 12?

From [https://2ality.com/2019/04/nodejs-esm-impl.html](https://2ality.com/2019/04/nodejs-esm-impl.html) Node 12 should support es6 modules; however, I just keep getting the error: Question: How do I ...

23 Jul at 17:58

Replace Google Material Icons with Own Icons, Keep Same Content Code or Create New One

Google Material Icons has different variations in Icon font Families: Rounded, Sharp, TwoTone, etc. The UX team is taking some icons, and customizing them bit, little thicker or minor touch up. 1. ...

How to fix error "Cannot load PowerShell snap-in Microsoft.PowerShell.Diagnostics because of the following error: Could not load file or assembly"

I'm trying to execute a Powershell script from an asp.net webpage and I keep getting this error when it tries to execute the script. I have tried 2 methods of executing the script and both give me the...

23 Jul at 14:31

Module not found: Error: Can't resolve 'fs' in

Oke, I upgraded Angular from 6 to 8. But I stil get errors. I found on internet a solution that for a lot of users helped. But in this case it doesn't helped me. So my package.json file looks like thi...

26 Oct at 08:24

'static' value appears to reset after function call

I found a lot of articles about statics ([MSDN](https://learn.microsoft.com/pl-pl/dotnet/csharp/language-reference/keywords/static), [MSDN 2](https://learn.microsoft.com/pl-pl/dotnet/csharp/programmin...

25 Jul at 22:8

'ConfigurationBuilder' does not contain a definition for 'AddJsonFile'

I have the following error: > Program.cs(15,72): error CS1061: 'ConfigurationBuilder' does not contain a definition for 'AddJsonFile' and no accessible extension method 'AddJsonFile' accepting a first...

3 Feb at 08:55

WPF grid column def auto always clipping from right

I have a WPF app which has a grid with 2 columns set to * and auto. The issue is when I reduce the size of the window the children in second column are getting clipped from right instead of left. I ex...

22 Jul at 06:55

How to validate configuration settings using IValidateOptions in ASP.NET Core 2.2?

Microsoft's ASP.NET Core documentation [briefly mentions](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-2.2#options-validation-1) that you can implem...

3 Aug at 03:35

How to resolve: 'keyWindow' was deprecated in iOS 13.0

I'm using Core Data with Cloud Kit, and have therefore to check the iCloud user status during application startup. In case of problems I want to issue a dialog to the user, and I do it using `UIApplic...

9 Oct at 04:42

How to join two SqlExpression With And Condition using Servicestack.Ormlite

I need to filter out some data at generic class, I don't know how to join two `SqlExpression<T>` with `AND` condition. I tryed: ``` public List<T> Select(SqlExpression<T> expression) { var list =...

21 Jul at 15:29

Using UTF-8 Encoding (CHCP 65001) in Command Prompt / Windows Powershell (Windows 10)

I've been forcing the usage of `chcp 65001` in Command Prompt and Windows Powershell for some time now, but judging by Q&A posts on SO and several other communities it [seems like a dangerous and inef...

How repair corrupt xampp 'mysql.user' table?

I used Xampp yesterday to create some simple Web-based utility tool. Today I wanted to continue working on it but xampp control panel gave me some weir errors. This is the MySQL Error Log: ``` 2019-...

26 Jul at 06:31

Whats the difference between IAsyncEnumerable<T> vs IEnumerable<Task<T>>?

The new C# 8.0 and dotnet core 3 has this new feature of AsyncStreams (`IAsyncEnumerable<T>`). My understanding it that it provides a way to asynchronously process items in a stream. But would I not b...

WinForms Dark title bar on Windows 10

I have a WinForms application which automatically adjusts to the dark/light theme on Windows 10. My problem is that the title bar of my window always stays white, regardless which theme the user selec...

10 Dec at 19:5

Why is anonymous user trying to access /admin/host/synctriggers?

Since a few days ago, I have started receiving error messages from all my Azure websites: "The controller for path '/admin/host/synctriggers' was not found or does not implement IController." This i...

Debugging a CLR hang

I've uploaded a log of a WinDBG session that I'll refer to: [https://pastebin.com/TvYD9500](https://pastebin.com/TvYD9500) So, I'm debugging a hang that has been reported by a customer. The reproduce...

23 Jul at 20:17

Implementing all read api with a intercepting filter using Servicestack.Ormlite

To elaborate what I try to achieve with servicestack.ormlite. Imagine that a franchise business has some branches, each branch has system and local database, all of these database are replicating each...

20 Jul at 05:20

Random number between int.MinValue and int.MaxValue, inclusive

Here's a bit of a puzzler: `Random.Next()` has an overload that accepts a minimum value and a maximum value. This overload returns a number that is greater than or equal to the minimum value (inclusiv...

19 Jul at 19:36

Environment.getExternalStorageDirectory() deprecated in API level 29 java

Working on android Java, recently updated SDK to API level 29 now there is a warning shown which states that `Environment.getExternalStorageDirectory()` is deprecated in API level 29 My code is ```...

How can I prevent Google Colab from disconnecting?

Is there a way to programmatically prevent [Google Colab](https://colab.research.google.com/) from disconnecting on a timeout? [](https://i.stack.imgur.com/lkvoo.jpg) The following describes the condi...