Unable to locate System.Data.SqlClient reference

I have a fresh Visual Studio 2017 Professional install. I'm building a quick POC Console application using .NET 4.7.1, and I'm unable to find the reference for System.Data.SqlClient. I have scoured m...

6 Mar at 20:54

C# - System.Data.SqlClient.SqlException: 'Failed to generate SSPI context.'

When trying to run my .NET Core 2.0 app from IIS Express, I get the following error: ``` System.Data.SqlClient.SqlException: 'Failed to generate SSPI context.' ``` This occurs when trying to access...

28 Feb at 13:47

Implementing Pagination in ServiceStack

# Background I'm consuming a third party WebApi using ServiceStack. A number of their endpoints paginate the results according to a common schema. Example JSON: ``` { "count": 23, "pageS...

28 Feb at 12:57

Precompile asp.net views with ms build

When I deploy asp.net application through visual studio I know I can just check `Precompile during publish` and uncheck `Allow precompiled site to be updateable`. And I want to do the same with `msb...

ServiceStack.redis configuration on VS 2008

I am working on a project(WebAPI) where i have to pick data from azure redis cache and i am using visual studio 2008 due to some constraints. How can i configure it to use ServiceStack.redis/azure red...

How is the new C# Span<T> different from ArraySegment<T>?

I am having trouble conceptualizing the usages for [the new Span<T> in C#](https://learn.microsoft.com/en-us/archive/msdn-magazine/2018/january/csharp-all-about-span-exploring-a-new-net-mainstay). 1....

29 Oct at 07:55

Query data, in Redis, by using a field value

Please help me. I've stored data, in Redis, by using C# servicestack.redis libraries. In this case, I stored data from 4 classes. For this case, I want to recover all data, from Redis, by using a va...

27 Feb at 16:33

What is a wrapping conversion?

When you try to cast a value from a type to another incompatible type, you get the following error in C#: > CS0039 Cannot convert type A to B via reference conversion, boxing conversion, unboxing con...

27 Feb at 16:19

ServiceStack on .NET Core using Authorization Policies

Is there an example of using .NET Core authorization policies with ServiceStack based apis? I have setup a .net core based ServiceStack site, I also have created an authorization policy. The next ste...

Validation in Xamarin using DataAnnotation

I am trying to add validations in Xamarin. For that I have used this post as a reference point: [Validation using Data Annotation](https://blogs.msdn.microsoft.com/premier_developer/2017/04/03/validat...

Git Bash Command on Windows, yarn command not found

I following this online tutorial on downloading and installing web files from GIT HUB. I got down to the topic: Starting Our Static Website, there I'm prompted to enter the commands to download and in...

22 Dec at 05:3

Request.InputStream in ASP.NET Core

I'm trying to use this library in ASP.NET Core: [https://github.com/infusion/jQuery-webcam](https://github.com/infusion/jQuery-webcam) to get the picture taken from a webcam. In this example, [MVC Ca...

13 Aug at 18:22

Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6

When trying to run the Example CorDapp ([GitHub CorDapp](https://github.com/corda/cordapp-example)) via IntelliJ, I receive the following error: > Cannot inline bytecode built with JVM target 1.8 into...

23 Jul at 15:37

How to bind list inside ListView in Xamarin.Forms

I have one ListView on my page having `ItemSource` as `List<AssetModel>` as shown below: ``` public class AssetModel { public string AssetId { get; set; } public string Description { get; set...

How do I register DbContext EF Core in ServiceStack Core?

With EF Core, DbContext is registered as Scoped by EF service extension. This is desirable because DbContext is not thread-safe and therefore it should be created per request. ServiceStack IOC treats...

SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

Since a few days I got an issue with Mac OS High Sierra 10.13.3 : When I run a `git clone` like `git clone github.com/xxx.git failed` it print: > LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection...

19 Jan at 23:25

Kubernetes: list all pods and its nodes

I have 3 nodes, running all kinds of pods. I would like to have a list of nodes and pods, for an example: ``` NODE1 POD1 NODE1 POD2 NODE2 POD3 NODE3 POD4 ``` How can this please be achieved? Thanks. ...

25 May at 15:51

ServiceStack- cache object sometimes based on state

Not sure the best way to implement this pattern - say our service returns the results of a sporting event. We want to put the object in the cache only if the event is over. If the event is still being...

25 Feb at 23:43

Add password to Sqlite file in Xamarin forms

I have a Xamarin form application that creates a Sqlite database. `Microsoft.EntityFrameworkCore.Sqlite` is used to create the database. I want to add a password to the file. I searched the internet...

Discard feature significance in C# 7.0?

While going through new C# 7.0 features, I stuck up with feature. It says: > Discards are local variables which you can assign but cannot read from. i.e. they are “write-only” local variables. and, t...

9 Apr at 16:5

Why doesn't AutogenerateBindingRedirects work for a Web.config in Visual Studio 2017

I have a reference to a .Net Standard 2.0 library that requires Microsoft.AspNet.WebApi.Client 5.2.4. This has a lot of dependencies that need to be redirected to use newer versions. To avoid package...

xamarin forms what is the difference content page and content view

What is the difference between: - - - What I'm trying to do is to have some content that overlays the main content when an item is being tapped. I was thinking I could have all the content on in th...

25 Feb at 03:11

Running DotNet Build Causes Microsoft.Build.Tasks.CodeAnalysis.dll Assembly Conflict

I'm having an issue trying to build a dotnet core project from command line that has these references: ``` <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.6.1" /> <PackageReferen...

Special Icon when naming a MonoBehaviour class GameManager

Is there something special about the name `GameManager` in Unity that causes the designer to act differently? I have a class named `GameManager` that is derived from `ScriptableObject`, and the desig...

20 Jul at 17:24

How to fix docker: Got permission denied issue

I installed Docker in my machine where I have Ubuntu OS. When I run: ``` sudo docker run hello-world ``` All is ok, but I want to hide the `sudo` command to make the command shorter. If I write the c...

25 Oct at 20:1