Questions

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...

17 Dec at 16:28

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...

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...

18 Jan at 02:46

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...

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...

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 `...

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...

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...

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...

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...

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 ...

19 Sep at 14:57

.net core 'Response.Cookies.Append' not working as some station

I am using 'Response.Cookies.Append' for setting the culture as suggested in ASP.NET Core 2.1 docs ([https://learn.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-2.1#impleme...

19 Sep at 13:58

Override App.config value with an environment variable

I have a C# console program that prints an App.config value. Can I override this value from an environment variable? Example App.config: ``` <appSettings> <add key="TestKey" value="Foo"/> </appS...

29 Apr at 13:29

How to resolve "NuGet package restore failed" in Visual Studio?

I got an error > NuGet package restore failed. Please see Error List window for detailed warnings and errors. while building my solution. Package manager can't restore my 2 projects: > Unable to fi...

31 May at 15:4

Error: Schema validation failed with the following errors: Data path "" should NOT have additional properties(project)

After migrating application from angular 5 to 6, on running ng serve the following errors pop up. > Schema validation failed with the following errors: Data path "" should NOT have additional pro...

Why does adding httpRuntime targetFramework in Web.config file in a WCF application resolving TLS related connectivity issue?

We have a few ASP.NET and WCF applications that are continuously being migrated to latest .net framework version as it is being released. This migration was working fine until we reached .NET Framewor...

18 Sep at 19:58

Downloading a directory using SSH.NET SFTP in C#

I am using Renci.SSH and C# to connect to my Unix server from a Windows machine. My code works as expected when the directory contents are only files, but if the directory contains a folder, I get thi...

7 May at 05:47

C# - VS Code - launch:program ... does not exist

I am trying to debug a simple "Hello world" application in VS Code, however, when I press Ctrl + F5, it gives me the following error: [](https://i.stack.imgur.com/8d4eo.jpg) If I manually change the...

9 Jan at 16:56

How to reload current page?

I have a page for editing user, it has some children components inside. Each children components can change or doing some effect to its parent component. So instead of emitting the changes to parent...

21 Jan at 11:7

Cannot find module 'rxjs-compat/Observable'

I am currently upgrading angular 4 to angular 6 code. I have installed "rxjs": "^6.3.2" and un-installed rxjs-compact as I have migrated the code to use the new rxjs operators. I am still getting the ...

18 Sep at 14:31

Command CompileSwift failed with a nonzero exit code in Xcode 10

After updating to the latest version of Xcode at the moment (version 10.0) the project is unable to build because it found some errors regarding some "Command CompileSwift failed with a nonzero exit c...

17 Jun at 08:54

Add data using migration Entity Framework Core without specifying the id

I would like to use EF migrations to add some data inside my DB. The fact is that all Id are auto-generated. I found the standard way to achieve it with EF Core, which is the following ``` modelBuild...

18 Sep at 11:27

How to deal with ValueTask<T> in F#?

So apparently .NET's brand new `ValueTask<T>` is the version of `Task<T>`. That's cool, but if before I had to use `Async.AwaitTask` to integrate my F# Async workflows with Task, what should I do wit...

Null coalescing operator IList, Array, Enumerable.Empty in foreach

In [this question](https://stackoverflow.com/questions/3088147/why-does-net-foreach-loop-throw-nullrefexception-when-collection-is-null) I found the following: ``` int[] array = null; foreach (int i...

ASP NET Core JWT authentication allows expired tokens

For some reason my RESTful app allows requests from Angular client with expired token for some time. Generating token: ``` private async Task<string> GenerateJwtToken(ApplicationUser user) { var ...