Where is index.g.cshtml
I am trying to work through this tutorial, [ASP.Net Core Razor Pages](https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-2.1&tabs=visual-studio), but (often) when I build t...
- Modified
- 14 Sep at 00:13
.Net Core cookie will not be set
I'm trying to set a simple cookie in the easiest way in my controller-action but can not get it to be persistent and show up in the browser. ``` public IActionResult IndexPost() { var option = n...
- Modified
- 9 Sep at 19:15
ServiceStack - SAML2
Is there some out of the box plugin for SAML2 auth or I would have to build mine from scratch? If there's none, which library would you suggest, earlier I tried Kentor and I like how it's done, too b...
- Modified
- 22 Sep at 11:12
ServiceStack: How to enable and view built-in profiler in self-hosted?
When I read the docs on ServiceStacks built-in [profiling](http://docs.servicestack.net/built-in-profiling), I am not sure how to enable it in a self-hosted solution: > Then starting it in your Globa...
- Modified
- 27 Jun at 10:24
googletrans stopped working with error 'NoneType' object has no attribute 'group'
I was trying `googletrans` and it was working quite well. Since this morning I started getting below error. I went through multiple posts from stackoverflow and other sites and found probably my ip is...
- Modified
- 10 Dec at 18:36
Net Core Error The name 'Ok' does not exist in the current context
I am receiving the following error: The name 'Ok' does not exist in the current context. How would I resolve this issue in my Controller API? Return Ok is already embedded in the controller. ``` usi...
- Modified
- 21 Sep at 22:12
Round a decimal number to the first decimal position that is not zero
I want to shorten a number to the first significant digit that is not 0. The digits behind should be rounded. Examples: ``` 0.001 -> 0.001 0.00367 -> 0.004 0.00337 -> 0.003 0.000000564 -> 0.0000006 ...
DBContext disposing doesn't change the number of opened connections
In highload legacy application I've found tons of code which just creates new DBContext, then makes request and doesn't dispose the DBContext at all. Monitoring shows 200 connections opened all the t...
- Modified
- 21 Sep at 03:27
What are the differences between Microsoft.NET.Sdk and Microsoft.NET.Sdk.Web
I have a solution with two host projects (one is a [Web Host](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-2.1) and the other is a [Generic Host](https://le...
Difference between OpenJDK and Adoptium/AdoptOpenJDK
Due to recent [Oracle Java SE Support Roadmap](https://www.oracle.com/technetwork/java/javase/eol-135779.html) policy update (end of $free release updates from Oracle after March 2019 in particular), ...
- Modified
- 18 Dec at 19:28
Objects are not valid as a React child. If you meant to render a collection of children, use an array instead
I am setting up a React app with a Rails backend. I am getting the error "Objects are not valid as a React child (found: object with keys {id, name, info, created_at, updated_at}). If you meant to ren...
- Modified
- 20 Sep at 15:49
Repeat a RDLC ReportViewer subreport
I'm really new to RDLC so please forgive me if I'm missing something obvious. I have some data that needs to get repeated, based on a 1:Many dataset that's linked to the main report. It's not someth...
- Modified
- 24 Sep at 12:54
How to implement drag and drop in Blazor?
I know Blazor is a new technology. Its current release states v0.5.1 However I'm currently implementing a PoC for a new web application. We'd like to have the feature drag&drop in the app. I tried ...
what is this ASP.NET Core log message: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager
I have this at every app start. Does anyone know where this comes from? > info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using '/Users/...
- Modified
- 9 Apr at 13:6
Xcode 10: A valid provisioning profile for this executable was not found
Since yesterday I've been getting the following error when trying run an app on my device: > A valid provisioning profile for this executable was not found." This is after updating to Xcode 10. Buildi...
What is "not assignable to parameter of type never" error in TypeScript?
Code is: ``` const foo = (foo: string) => { const result = [] result.push(foo) } ``` I get the following TS error: > [ts] Argument of type 'string' is not assignable to parameter of type 'neve...
- Modified
- 25 Dec at 14:41
Xcode 10, Command CodeSign failed with a nonzero exit code
Every time I build a console is showing this message. > CodeSign /Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app (in target: Desker) cd /Users/admin/Desktop/AppSt...
ServiceStack: Logout does not remove session thus requesting authenticated services still works
I have implemented a custom CredentialsAuthProvider. Logging in works fine. Before I log in, I cannot call any services that require authentication. But after I log in, I do have permission to call th...
- Modified
- 20 Sep at 12:48
ServiceStack.Text's CSVSerializer can't read umlauts
I have CSV files with German language values. So umlaut symbols etc like: . These can be seen in notepad and here on stackoverflow! I'm using ServiceStack.Text's DeserializeFromString() method in...
- Modified
- 20 Sep at 06:39
Generic Repository pattern for .net core with Dapper
I followed a tutorial on Generic Repository Pattern with ASP.NET core with EF CORE, [here][1] For example: Since this is using EF Core we can just use it pre defined methods for insert data through `...
- Modified
- 22 May at 04:18
Return multiple values from a C# asynchronous method
I have worked with asynchronous methods and the methods which return multiple values, separately. In this specific situation, following "GetTaskTypeAndId()" method should be asynchronous and should re...
- Modified
- 29 Nov at 21:50
How to return/throw ServiceStack's HttpError using scoped JsConfig?
I have multiple API versions that uses the same AppHost, which is why I don't want to modify the static JsConfig--I only want the HttpError response to be serialized using a scoped JsConfig. I tried u...
- Modified
- 20 Sep at 01:51
What causes "unrecognized selector sent to class" error on Xamarin Forms build?
A few things about my system first: - - - I'm completely new to Xamarin forms and want to play around and learn. All I'm trying to do is simply create a new xamarin forms solution and get it to bui...
- Modified
- 8 Oct at 08:51
What's the difference between these ways to start/run a Generic Host in ASP.NET Core?
The hosting design in the ASP.NET Core have a new Generic Host now (.NET Core 2.1+) that will replace the Web Host in the future. There are a lot of ways to start the application using the `Microsoft...
- Modified
- 20 Sep at 22:19
FluentMigrator - Check if Foreign Key exists before deleting it
I am using FluentMigrator to migrate one database schema to another. I have a case in which I want to check if a foreign key exists before deleting it. Previously, I just delete the foreign key by ...
- Modified
- 19 Sep at 14:57