The user or administrator has not consented to use the application - Send an interactive authorization request for this user and resource

We're doing [this](http://scaleablesolutions.com/web-api-authentication-from-javascript/) CRM Web API project. The project logs-into Dynamics CRM online instance and gets the list of accounts. The lo...

How to issue and consume JWT using ServiceStack's JwtAuthProvider

Looking at the [JwtAuthProvider documentation](https://github.com/ServiceStack/ServiceStack/wiki/JWT-AuthProvider) for ServiceStack, it seems that a lot of JWT functionality is given out-of-the-box. H...

18 Oct at 13:25

Reference external DLL in .NET Core project

I've my own .dll file that I used to use with Edge.js in nodejs, I'm trying to use it now with dot net core app, but found no where/no how to get access to it, or define it. is there something like ...

23 Feb at 09:14

Automatic native and managed DLLs extracting from Nuget Package

This is driving me crazy for several months now and I'm still not able to achieve it. My managed libraries are extracted from the Nuget package but not the natives ones. We have a bunch of managed and...

Best practices to use await-async, where to start the task?

I started to use the await/async mechanism in our .Net WPF application. In my ViewModel, I'm calling an async method on a service. My question is: Is it better to 1. Directly inside this service,...

18 Oct at 09:19

How to get WPF Window to autosize to content and no more

I have a dialog containing 2 TextBlocks, a Progress Bar and a cancel Button. Here is the XAML: ``` <Window x:Class="WpfApplication4.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xam...

22 Dec at 13:25

Compiling .net core app with CoreRT / another AOT

I'm building an REST API on ASP.NET CORE 1.0. In production it'd be IMHO very useful NOT to use JIT because the docker containers with the app are scaling up and down, redeploying during CI over and o...

Should I use AddMvc or AddMvcCore for ASP.NET Core MVC development?

I am learning ASP.NET Core MVC from a book, the code snippet in question is as follows: ``` // CHAPTER 4 - ESSENTIAL C# FEATURES namespace LanguageFeatures { public class Startup { publ...

2 Apr at 16:23

HTTP performance on linux/mono

As there is a bit of code to back up this question - I'll ask it upfront. Are there any known performance issues with a Servicestack self host service (or indeed any http listener) running on linux/m...

Servicestack - UNAUTHORIZED after successful login

I must have missed something, but I get Unauthorized errors for operations that are annotated with `[Authorize]` AFTER a successful login. I tried the annotation on several levels: The service class, ...

17 Oct at 18:47

ServiceStack Deserializing Interface property null in object

I want to use ServiceStack JsonSerializer. I am setting IncludeTypeInfo property true before I serialize my object.And my serialized string contains all type informations like "__type":".Interfacesb,...

17 Oct at 17:57

Drop and re-create index in ServiceStack OrmLite

I have some MSSQL tables created by ServiceStack.OrmLite and I'd like to programmatically change the types of some some columns or perhaps drop and re-create some of them (with different types). The p...

17 Oct at 13:34

Redis return value for a string object

When I save a string to redis using ServiceStack.Redis: ``` client.Add("key1","abc"); ``` While fetching the value, it returns: ``` client.GetValue("key1"); ``` it returns > "\"abc\"" How do ...

17 Oct at 07:53

How to enable cross origin requests in ASP.NET MVC

I am trying to create a web application which works with cross-origin requests (CORS) in MVC 5. I have tried everything without any result. ``` public class AllowCrossSiteJsonAttribute: ActionFilt...

17 Oct at 05:42

How to log to a file without using third party logger in .Net Core?

How to log to a file using third party logger in ? ``` public void ConfigureServices(IServiceCollection services) { services.AddLogging(); } public void Configure(IApplicationBuilder app, IHos...

16 Oct at 18:16

Servicestack - Authentication questions

I am currently fighting a bit with my custom `CredentialsAuthProvider` implementation. First it is important to say, that I am writing a WPF client as a reference for my API. 1. A browser stores coo...

15 Oct at 21:27

C# Custom Attribute parameters

I saw this answer from this link [Adding parameters to custom attributes](https://stackoverflow.com/questions/270187/can-i-initialize-a-c-sharp-attribute-with-an-array-or-other-variable-number-of-a) o...

23 May at 12:10

Cannot find the UseMysql method on DbContextOptions

I am playing around with the dotnet core on linux, and i am trying to configure my DbContext with a connection string to a mysql Server. my DbContext looks like so: ``` using Microsoft.EntityFramework...

Servicestack LinkedIn Oauth2 with Webauthenticator Not Returning to App

Hi Am having trouble with Servicestack authentication with Xamarin.auth component. when try authenticate with ServiceStack with WebAuthencator , am getting authenticated but am not able to return to ...

Html.GetEnumSelectList - Getting Enum values with spaces

I was using `asp-items="@Html.GetEnumSelectList(typeof(Salary))"` in my Razor view with a select tag, to populate the list values based on the `enum Salary`. However, my enum contains some items whic...

24 Nov at 14:51

In C# Winforms is there a way to put dotted border around all controls and show grip points upon selection of specific controls at runtime?

I work in a team working on a IDE similar to Visual Studio to develop custom Winform code for our local clients. In our code we have User Controls overridden to make our tasks easier but most of our c...

How do I pass my own custom arguments to build.ps1?

I tried build.ps1 -SettingsProfile "Customer", but it outputs > More than one build script specified. In my Cake script I fetch via Argument("SettingsProfile", "Default") And if I skip the argument ...

6 May at 18:51

servicestack - make request dto parameters REQUIRED

I have a request DTO like so: ``` [Route("/appusers/resetpwd/{UserId}", "PUT")] public class ResetPassword : IReturn<AppUserDto> { public Guid UserId { get; set; } public string OldPassword {...

14 Oct at 13:15

CORS in .NET Core

I am trying to enable CORS in .NET Core in this way: ``` public IConfigurationRoot Configuration { get; } public void ConfigureServices(IServiceCollection services) { services.AddCor...

7 May at 09:51

Attachments in Papercut

I am currently using [Papercut](http://papercut.codeplex.com) in order to test sending emails over an SMTP server connection in C#. The emails that I need to send have files attached to them however...

14 Oct at 10:49