Adding external login with Identity Server 4 and ASP.NET Identity
After adding Authentication functionality using Identity Server 4 with ASP.NET Identity, I'm planning to add the Google Provider so users can also login with their google+ account. I'm using Angular a...
- Modified
- 16 Aug at 09:30
Claims transformation support missing in ASP.NET Core 2.0
I am using JWT Bearer auth in my new asp.net core 2.0 api app and want to add some extra claims to the current identity. This extra info is located in another api which need to be queried. My understa...
- Modified
- 25 Apr at 20:53
How to sync MSSQL to Elasticsearch?
Every time I Google this, I find the "river" approach which is deprecated. I'm using Dapper if this is somehow a helpful information. So what's the solution for this these days?
- Modified
- 19 Aug at 13:12
Entity framework EF.Functions.Like vs string.Contains
I was reading the announcement of entity framework core 2.0 [https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-entity-framework-core-2-0/](https://blogs.msdn.microsoft.com/dotnet/2017/08/1...
- Modified
- 8 May at 06:17
.net-core middleware return blank result
Im making a website with an API, the API needs validation so the user only gets his own data. I have written the following middleware to validate the login. ``` public class ApiAuthenticationMiddle...
- Modified
- 23 Sep at 09:43
.NET Core, failed to spawn dotnet --info
When I type `dotnet --info` in cmd the entire screen is covered in `Failed to leave breadcrumb` What can cause such behavior? Searched on google but it seems like I'm the only person that has that pr...
- Modified
- 15 Aug at 18:30
fetch() unexpected end of input
I am using fetch() to grab data from api server. My error looks like this: ``` Uncaught (in promise) SyntaxError: Unexpected end of input at fetch.then.blob. ``` Can you please tell me what am I...
- Modified
- 15 Aug at 16:21
Search input with an icon Bootstrap
No clue how I can do this, since BS 4 doesn't support glyphicons. Do I set it up as a background or do I apply different positioning to a font-awesome icon? This is my code so far: ``` <link rel="s...
- Modified
- 30 Apr at 11:45
yield return vs. return IEnumerable<T>
I've noticed something curious about reading from an `IDataReader` within a using statement that I can't comprehend. Though I'm sure the answer is simple. Why is it that whilst inside the `using (Sql...
- Modified
- 15 Aug at 16:1
How do I setup multiple auth schemes in ASP.NET Core 2.0?
I'm trying to migrate my auth stuff to Core 2.0 and having an issue using my own authentication scheme. My service setup in startup looks like this: ``` var authenticationBuilder = services.AddAuthen...
- Modified
- 8 Nov at 12:26
.net-core-2.0 azure app service 502.5 error
Getting a 502.5 error after CI deployment to azure app service. When running `dotnet {myproject}.dll` on the debug console this is the error I get: > Unhandled Exception: System.IO.FileLoadException...
- Modified
- 15 Aug at 14:3
Array types with same element type & rank not equal
Very simple: ``` var equal1 = typeof(object[]) == typeof(object).MakeArrayType(); var equal2 = typeof(object[]) == typeof(object).MakeArrayType(1); var equal3 = typeof(object[,]) == typeof(object).Ma...
- Modified
- 15 Aug at 13:39
Use .net DLL with broken References
I have to use a DLL as an API in my application (C#, .NET 4.5). I can reference the DLL normaly. No error at all. But if I want to use any class of this DLL, I get the following compile error: > Erro...
Failed to resolve: com.google.android.gms:play-services in IntelliJ Idea with gradle
I'm trying to add google play services to my libGDX project in IntelliJ Idea. I've followed the setup guide here: [https://developers.google.com/android/guides/setup](https://developers.google.com/and...
- Modified
- 19 Dec at 20:17
Comparing 1 million integers in an array without sorting it first
I have a task to find the difference between every integer in an array of random numbers and return the lowest difference. A requirement is that the integers can be between 0 and int.maxvalue and that...
Strange debug output in app since upgrade to Visual Studio 2017 15.3.0
My xamarin android app constantly prints the following debug output since I upgraded to Visual Studio 2017 15.3.0: ``` 08-15 09:13:23.275 D/Mono ( 3119): [0x9a5be930] worker unparking, timeout? no...
Task.WhenAll for ValueTask
Is there an equivalent of `Task.WhenAll` accepting `ValueTask`? I can work around it using ``` Task.WhenAll(tasks.Select(t => t.AsTask())) ``` This will be fine if they're all wrapping a `Task` bu...
- Modified
- 16 May at 00:26
How to enable C++17 in CMake
I'm using VS 15.3, which supports integrated CMake 3.8. How can I target C++17 without writing flags for each specific compilers? My current global settings don't work: ``` # https://cmake.org/cmake/h...
- Modified
- 8 Aug at 02:16
JWT on .NET Core 2.0
I've been on quite an adventure to get JWT working on DotNet core 2.0 (now reaching final release today). There is a of documentation, but all the sample code seems to be using deprecated APIs and c...
Different DLL but should be the same in console application and website
I have a console application and website that use the same `System.Runtime.Serialization.Primitives.dll` assembly. However, when I run the website, my assembly is the one on the right, but if I run c...
- Modified
- 15 Aug at 03:29
Entity Framework Core still picks up old column
I recently delete a column `ConversationId` from my tables. When I start to debug my service and try to save I am getting an error: > Invalid column name 'ConversationId'. Code: ``` public class As...
- Modified
- 11 May at 17:40
Getting "Tuple element name is inferred. Please use language version 7.1 or greater to access an element by its inferred name."
We have the following code that has been working fine in our UWP app until today after we updated Visual Studio 2017 to the latest . ``` private void Test() { var groups = new List<(Guid key, ILi...
- Modified
- 14 Aug at 23:19
C# SMO Database do not log creation
I have an integration test that creates a database of type `Microsoft.SqlServer.Management.Smo.Database`: ``` var defaultConnectionConnectionString = ConfigurationManager.ConnectionStrings["DefaultCo...
- Modified
- 14 Aug at 17:15
How do I keep ASP.net connection string passwords secure on a git repository?
Up until now I have been using gitignore to ignore my web.congfig and web.release.config files so that my connections strings (including passwords) do not get stored in the git repository. This has b...
- Modified
- 14 Aug at 15:12
CPU usage in .net core (at least on Windows)
So `PerformanceCounter` is gone in dotnet core. I understand it was because it was not Linux-compatible. This comment here: ( [What is the story of Performance Counters for .NET Core?](https://stacko...
- Modified
- 14 Aug at 14:0