dotnet core app run as administrator

I have a dotnet console application that requires administrator privileges to run. I can't find how to do this. In a regular project I would add a app.manifest and set `<requestedExecutionLevel level...

10 Feb at 12:10

Apply converter to static property in XAML

How to set a for a ? The following example shows my problem – I would like to convert a `TextBlock` text to upper case. ``` <UserControl x:Class="CoRiMaCorporate.HomeScreen.Controls.Home.Configurat...

6 Nov at 11:39

Can Windows containers be hosted on Linux?

Is it possible to run Windows containers on Linux? The scenario is based on an application written in (old net) and the that wants to run this with Docker needs to provide a `net462` written API on ...

How to define and use function inside Jenkins Pipeline config?

I'm trying to create a task with a function inside: ``` def doCopyMibArtefactsHere(projectName) { step ([ $class: 'CopyArtifact', projectName: $projectName, filter: '**/**...

18 Sep at 13:58

.net Core Quartz Dependency Injection

How can I configure Quartz in core to use dependency injection? I using standard .net core Dependency mechanism. In constructor of class that implements , I need inject some dependencies.

C# Visual Studio 2015: IWebProxy certificate validation

I'm trying to create a C# proxy DLL that allow VS2015 Community, on my offline workstation, access to internet through a corporate HTTP proxy with authentication. Following instruction of [this MSDN ...

10 Feb at 10:47

Updating custom header value added as DefaultRequestHeaders of HttpClient

I have a static shared across requests and I want to add one custom header to it. ``` httpClient.DefaultRequestHeaders.Add("customHeader", somevalue.ToString()); ``` But I noticed that on every re...

10 Feb at 10:23

C# 7.0 in Visual Studio Enterprise 2015

Can you switch on C# 7.0 features within Visual Studio 2015 (Enterprise) or do you need to upgrade to 2017?

What is the best practice for adding constants in laravel? (Long List)

I am rather new to laravel. I have a basic question, What is the best way to add constants in laravel. I know the .env method that we use to add the constants. Also I have made one constants file to...

Cannot take the address of, get the size of, or declare a pointer to a managed type ('T')

Why oh why is this not allowed: ``` private static unsafe byte[] ConvertStruct<T>(T str) where T: struct { T* ptr = &str; int size = Marshal.SizeOf(str); var arr = new byt...

10 Feb at 08:39

Is there a way to get the time spent in request queue in Kestrel/ASP.NET Core?

My understanding is that ASP.NET Core middleware is run when a request is ready to be processed. But if the app is under load and ASP.NET Core can not process all the requests as they come in, they ar...

10 Feb at 05:38

When to use RabbitMQ over Kafka?

I've been asked to evaluate RabbitMQ instead of Kafka but found it hard to find a situation where a message queue is more suitable than Kafka. Does anyone know use cases where a message queue fits bet...

23 Sep at 00:12

VS 2015 ASP.NET Web API (EF6) & Xamarin Enable-Migrations fails

I'm developing a project that will use ASP.NET Web API as the data service, and a Xamarin portable app as client. I'm trying to enable migrations in the web app, but I get the following error: ``` Ena...

Why does encrypting HMAC-SHA1 in exactly the same code in C# and PowerShell show different results?

I've been trying to encrypt a Amazon S3-like authorization key with HMAC-SHA1 in PowerShell with the following code: ``` $str="PUT\n\napplication/x-zip-compressed\nThu, 09 Feb 2017 08:59:43 GMT\n/tes...

10 Feb at 11:6

Pgsql error: You might need to add explicit type casts

My website is just working fine til i deployed it to heroku and the problem is heroku uses pgsql and I'm using mysql and laravel framework. my query is ``` $patient = Patient::where('patient_addres...

10 Feb at 00:33

ClientMessageInspector add BinarySecurityToken and Signature

I'm trying to consume Java Web Service using C# in desktop application. [My first attempt](https://stackoverflow.com/questions/42030779/webservicesclientprotocol-add-encodingtype-to-nonce-in-security-...

23 May at 11:46

GitHub Clone with OAuth Access Token

Inside a script I am trying to clone a GitHub repository with an OAuth token. According to this tutorial: [https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-https-and-oauth](ht...

7 Jan at 07:51

Conflict: Multiple assets emit to the same filename

I'm a webpack rookie who wants to learn all about it. I came across a conflict when running my webpack telling me: > ERROR in chunk html [entry] app.js Conflict: Multiple assets emit to the same fil...

Get object from AWS S3 as a stream

I am trying to to figure out whether it is possbile to return some sort of stream (possibly a memory stream?) of an object I get from my AWS S3 bucket. The S3 bucket contains a lot of different type ...

9 Feb at 20:0

Uncaught SyntaxError: Unexpected token U in JSON at position 0 at JSON.parse (<anonymous>) at Response.Body.json

I am working on an angular2 project. I am stuck with these errors. The error occured when I tried to send the JSON objects to the backend. It may be due the parsing of JSON objects. I am new to angual...

25 Aug at 19:30

Why does my nested HttpModule EndRequest event handler not fire?

I'm having some strange behavior when I try to modify my headers with a `EndRequest` event handler in a nested `HttpModule` on MVC 5.2.2 and .NET 4.6.2. If I don't modify `EndRequest` in my top level ...

28 Dec at 13:39

Adding Nuget Packages From One Project To Another

I am using Visual Studio 2013. I am trying to add all nuget packages from another project into this project. I copied all the folders under packages from one project into this one how do I add to visu...

20 Apr at 10:11

String interpolation issues

I'm trying to figure out why my unit test fails (The third assert below): ``` var date = new DateTime(2017, 1, 1, 1, 0, 0); var formatted = "{countdown|" + date.ToString("o") + "}"; //Works Assert....

9 Feb at 16:31

React JS Error: Invalid attempt to destructure non-iterable instance

I have a sort filter that takes an array to populate the options. Trying to see the option `value` equal to the text within the array but I get the error within the title: ``` Invalid attempt to des...

Parallel HTTP requests using System.Net.Http.HttpClient

I'm trying to figure out the correct way to parallelize HTTP requests using `Task` and `async/await`. I'm using the `HttpClient` class which already has async methods for retrieving data. If I just ca...