Exception before Main
I created app with following code (just for research purposes): ``` using System; using System.CodeDom; using System.Linq; using System.Reflection; using System.Security.Permissions; namespace Hello...
How to Unit Test Startup.cs in .NET Core
How do people go about Unit Testing their Startup.cs classes in a .NET Core 2 application? All of the functionality seems to be provided by Static extensions methods which aren't mockable? If you take...
- Modified
- 16 Feb at 13:23
Hangfire Automatic retries - how to manually configure the time between retries
I have a requirement to manually configure the time between retries. I was not able to find the way for it. But I found a code from [https://github.com/HangfireIO/Hangfire/blob/master/src/Hangfire.Cor...
Entity Framework Core migration - connection string
I'm having a problem to handle the DB connection string in conjunction with migrations. I have 2 projects: - - The `DbContext` is in the Domain project, so this is the project I run migrations agai...
- Modified
- 29 Nov at 14:23
How to modify query in EF Core 2.0, before it goes to the SQL Server?
I have this need for Persian language, where a query should first be sanitized/normalized from the point of characters. Persian "ی" should be used instead of Arabic "ي". In EF 6, I had an intercept...
- Modified
- 24 Nov at 12:15
Github remote permission denied
I'm trying to upload my repo on github and go through all the steps up to: `git push -u origin master` at that point it gives me the following error: > remote: Permission to samrao2/manager-4.git deni...
SignalR Hubs Clients are null when firing event
I've written a generic hubs which I'm having some issues with so to debug it I've decided to make a simple connection count like so: ``` public class CRUDServiceHubBase<TDTO> : Hub, ICRUDServiceHubBa...
- Modified
- 30 Sep at 13:49
What does the "x for x in" syntax mean?
What actually happens when this code is executed: ``` text = "word1anotherword23nextone456lastone333" numbers = [x for x in text if x.isdigit()] print(numbers) ``` I understand, that `[]` makes a l...
ServiceStack - ApiMember Verb - Not Working
I have a DTO which I share for POST and GET method, and I want to have one extra field for GET method, so I tried using it like this: ``` //... [ApiMember(Name = "Status", Verb = "GET", Description ...
- Modified
- 23 Nov at 18:47
Entity Framework include poor performance
## Context We appear to be having an Entity Framework 6.x related issue. We've spent weeks attempting to nail down performance issues and fixed most if not all which we can find/think of. In short...
- Modified
- 13 Feb at 12:28
ASP.NET Core 2, button click with Razor pages without MVC
As someone pointed out in a comment, Razor pages doesn't need Controllers, like you're used to do in MVC. I also now Razor doesn't have a native handling of the button click event. To do something (in...
- Modified
- 23 Nov at 16:29
Docker argument to a RUN echo command
As part of a Dockerfile, I am attempting to modify a text file (ssh_config) to contain a variable passed through by the user (as an ARG) to the docker container at build time. In my Dockerfile I have...
- Modified
- 23 Nov at 16:14
How to set Swagger as default start page?
How do I set Swagger as the default start page instead of `/Account/Login`? I'm using ASP.NET MVC 5.x + Angular 1.x. # Update Current code: ``` public static void RegisterRoutes(RouteCollecti...
- Modified
- 25 Nov at 23:32
How to get query parameters from URL in Angular 5?
I'm using angular 5.0.3, I would like to start my application with a bunch of query parameters like `/app?param1=hallo¶m2=123`. Every tip given in [How to get query params from url in Angular 2?](...
- Modified
- 23 Jan at 14:33
Is there a nuget package for .NET standard with ServiceStack.Text signed?
I found the signed version for ServiceStack.Text, but only the classic .NET flavor, not the .NET standard. Is it, or will it be available?
- Modified
- 23 Nov at 10:55
GUIText is deprecated, so what should I use instead of it?
I'm using Unity 2017.2.0f3 and when I use [GUIText](https://docs.unity3d.com/ScriptReference/GUIText.html), it is showing "this component is part of the legacy UI system and will be removed in a futur...
ServiceStack SSE gives ERR_INVALID_CHUNKED_ENCODING in Chrome if CORS
Using ServiceStack’s Server Events feature I can sync two browsers if there are no cross-origin HTTP requests involved. It works as simple as documented: (1) Plugins.Add(new ServerEventsFeature()); ...
- Modified
- 23 Nov at 18:17
Remove "ServiceStack" mentions from licensed services/APIs
Albeit I have no problem advertising and promoting ServiceStack in general. I have a project that requires that I remove ServiceStack mentions from my APIs' Response Headers: [](https://i.stack.imgur...
- Modified
- 22 Nov at 19:32
How to correctly implement IUserSessionSource - ServiceStack
A new feature has been added to [ServiceStack 5.0](https://forums.servicestack.net/t/myget-pre-release-packages-upgraded-to-v5/4749/1) that allows for refreshTokens without an `IAuthRepository`, [see ...
- Modified
- 22 Nov at 18:26
Why do I get com.google.android.gms.common.api.ApiException: 10:?
``` private void handleSignInResult(Task<GoogleSignInAccount> completedTask) { try { GoogleSignInAccount account = completedTask.getResult(ApiException.class); //exception is here ...
- Modified
- 9 Mar at 17:39
Can ServiceStack.SessionFeature's session use custom session cookie name?
I found that SessionFeature has hard-coded const values: ``` public const string SessionId = "ss-id"; public const string PermanentSessionId = "ss-pid"; ``` Is there any way to customize them?
- Modified
- 22 Nov at 13:15
Docker command returns "invalid reference format"
I'am using docker and using the following command: ``` docker run -d -p 9090:80 -v $(pwd):/usr/share/nginx/html nginx:alpine ``` to point to my `/dist` folder where my app-files are compiled by ang...
- Modified
- 19 Dec at 16:15
RichTextBox cannot display Unicode Mathematical alphanumeric symbols
I cannot get WinForms `RichTextBox` display some Unicode characters, particularly [Mathematical alphanumeric symbols](https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols) (but the problem ...
- Modified
- 28 Feb at 02:1
Multiple Identities in ASP.NET Core 2.0
I am migrating an ASP.NET Core 1.0 application to ASP.NET Core 2.0. In my startup I am configuring two identities: ``` services.AddIdentity<IdentityUser, IdentityRole>(configureIdentity) .AddDefa...
- Modified
- 22 Nov at 12:39
Configuration.GetSection in Asp.Net Core 2.0 getting all settings
I am trying to learn the various ways to retrieve configuration info so I can determine the best path for setting up and using configuration for an upcoming project. I can access the various single se...
- Modified
- 26 Feb at 16:54