C# "Failed to parse method 'InitializeComponent'. The parser reported the following error 'Invalid symbol kind: NamedType'"
I have a project written by someone else with .NET framework 4 I have a problem with one of the forms (others opening correctly). When I try to open Form1 in "Design mode" Visual Studio 2017 shows th...
IdentityServer4 custom AuthorizeInteractionResponseGenerator
Sadly documentation on the implementation of a custom `AuthorizeInteractionResponseGenerator` in IdentityServer4 is sorely lacking. I'm trying to implement my own `AuthorizeInteractionResponseGenerat...
- Modified
- 6 Nov at 08:19
How to instantiate an instance of FormFile in C# without Moq?
I want to test a function that attaches files to documents in a RavenDB database with an integration test. For this, I need an instance of `IFormFile`. Obviously, I can't instantiate from an interfac...
Missing required argument '<PROVIDER>'. Scafffold Dbcontext in asp.net core 2.1.MAC
Trying to do Scaffold with the existing database in mac os visual studio using terminal. Here is the command for the scaffold ``` dotnet ef dbcontext Scaffold "Server=<servername>;Initial Catalog=...
- Modified
- 5 Aug at 11:3
No mapping to a relational type can be found for the CLR type 'Int32[]'
When I execute a SQL Server stored procedure from Entity Framework Core (v2.0) in my ASP.NET Core project, I get this exception: > InvalidOperationException: no mapping to a relational type can be fo...
- Modified
- 6 Aug at 09:15
Validation of ASP.NET Core options during startup
Core2 has a hook for validating options read from `appsettings.json`: ``` services.PostConfigure<MyConfig>(options => { // do some validation // maybe throw exception if appsettings.json has inva...
- Modified
- 5 Mar at 17:57
CUDA runtime error (59) : device-side assert triggered
``` THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1524584710464/work/aten/src/THC/generated/../generic/THCTensorMathPointwise.cu line=265 error=59 : device-side assert triggered Traceback (most r...
Select Specific Columns from Spark DataFrame
I have loaded CSV data into a Spark DataFrame. I need to slice this dataframe into two different dataframes, where each one contains a set of columns from the original dataframe. How do I select a s...
- Modified
- 1 Mar at 01:10
How to access Lambda environment variable?
When running a .net core 2.1 AWS Lambda function, it is simple to fetch an environment variable from the AWS Lambda Console in c# using: ``` var envVariable = Environment.GetEnvironmentVariable("myV...
- Modified
- 26 Jul at 12:10
Keep wifi active in foreground service after phone goes to sleep
I want to receive packets from wifi when my phone is locked. The problem is that when I lock my screen, my foreground service stops receiving packets. I'm using Foreground Service like this: ``` publ...
- Modified
- 16 Aug at 12:48
Angular: How to download a file from HttpClient?
I need download an excel from my backend, its returned a file. When I do the request I get the error: > TypeError: You provided 'undefined' where a stream was expected. You can provide an Observab...
- Modified
- 4 Sep at 18:1
Waiting for another flutter command to release the startup lock
When I run my flutter application it show > Waiting for another flutter command to release the startup lock this messages and not proceed further.
String.Substring() seems to bottleneck this code
I have this favorite algorithm that I've made quite some time ago which I'm always writing and re-writing in new programming languages, platforms etc. as some sort of benchmark. Although my main pro...
- Modified
- 12 Aug at 00:59
How to combine FromBody and FromForm BindingSource in ASP.NET Core?
I've created a fresh ASP.NET Core 2.1 API project, with a `Data` dto class and this controller action: ```csharp [HttpPost] public ActionResult Post([FromForm][FromBody] Data data) { return...
- Modified
- 3 May at 07:40
WPF WindowChrome causing flickering on resize
I'm using WindowChrome to restyle my window in an easy fast way but the problem is there is flickering when resizing the window, especially when resizing from left to right. ``` <Window x:Class="Vie...
- Modified
- 3 Aug at 09:35
Why does Json.Net call the Equals method on my objects when serializing?
I just ran into an error when I was using the Newtonsoft.Json `SerializeObject` method. It has been asked before [here](https://stackoverflow.com/questions/26552077/jsonconvert-serializeobject-passes-...
- Modified
- 3 Dec at 17:18
How do i call an async method from a winforms button click event?
I have an I/O bound method that I want to run asynchronously. In [the help docs](https://learn.microsoft.com/en-us/dotnet/csharp/async) it mentions that I should use async and await without Task.Run ...
- Modified
- 3 Aug at 07:39
Using templates via dotnet-new VS "dotnet new"
Trying to get back into ServiceStack, and see a lot has happened on the .NET Core end. Now it seems that the ServiceStack "native" CLI (`dotnet-new`) is the most up-to-date one, and it's the one refe...
- Modified
- 2 Aug at 22:2
The property 'PropertyName' could not be mapped, because it is of type 'List<decimal>'
I got this problem when I try to create the database with EntityFramework Core: > The property 'Rating.RatingScores' could not be mapped, because it is of type 'List' which is not a supported primiti...
- Modified
- 5 Aug at 18:38
How to hide soft input keyboard on flutter after clicking outside TextField/anywhere on screen?
Currently, I know the method of hiding the soft keyboard using this code, by `onTap` methods of any widget. ``` FocusScope.of(context).requestFocus(new FocusNode()); ``` But I want to hide the soft k...
How to Apply XmlIncludeAttribute to TypeBuilder?
I am developing a library in C# that generates runtime types using `System.Reflection.Emit.TypeBuilder` class and i want to generate the following class hierarchy: ``` [XmlInclude(typeof(Derived))] p...
- Modified
- 2 Aug at 12:5
Dapper QueryAsync blocks UI for the first time querying (against Oracle server)?
Firstly I believe that is just a condition to see this blocking more clearly. For next times, somehow it still blocks the UI but not obvious like when not using async. I can say that because I can ...
- Modified
- 2 Aug at 04:25
WPF Designer DataTemplate.DataType cannot be type object
I have a tree view that I'm binding to with some custom viewmodels. The viewmodels are in an `ObservableCollection` and inherit `ViewModelBase` which inherits `INotifyPropertyChanged`. It compiles and...
The project was restored using Microsoft.NETCore.App version 2.1.0, but with current settings, version 2.1.0-rtm-26515-03 would be used instead
at the moment I have a microservice made in c # with web api and net core 2.0 in the nutget packages I have already found a version 2.1 of net core and I have decided to install it, in order to updat...
- Modified
- 1 Aug at 21:20