The create-react-app imports restriction outside of src directory

I am using create-react-app. I am trying to call an image from my public folder from a file inside my `src/components`. I am receiving this error message. > ./src/components/website_index.js Module n...

Twilio callback is not working in my .NET service

I am developing an SMS service which is expected to send SMS. Apart from that, I need to track status of the SMS. I am using Twilio as an SMS provider, and ServiceStack to implement Service Layer. I...

C# RabbitMQ wait for one message for specified timeout?

Solutions in [RabbitMQ Wait for a message with a timeout](https://stackoverflow.com/questions/3760100/rabbitmq-wait-for-a-message-with-a-timeout) and [Wait for a single RabbitMQ message with a timeout...

2 Jun at 20:39

Bind All data in Jquery Datatables from View To Controller

Im binding my Data in View to Controller, so later I could do what I want with the data. In my View, im using `dataTable` and `@Html.EditorForModel()` to render my View. View ``` <form action="xx" ...

31 May at 08:10

Missing Create GUID in Visual Studio Enterprise 2017?

> Where can I find Create GUID options in Visual Studio 2017? I'm using Visual Studio Enterprise 2017 Edition and I'm not finding the Create GUID options from the Tools menu.

22 May at 03:41

Grpc.Core.RpcException method is unimplemented with C# client and Java Server

I am having trouble finding the source of this error. I implemented a simple service using protobuf: ``` syntax = "proto3"; package tourism; service RemoteService { rpc Login(LoginUserDTO) return...

FromBluetoothAddressAsync IAsyncOperation does not contain a definition for 'GetAwaiter' error

I am working on a simple BLE UWP. I've been referring to "[Windows UWP connect to BLE device after discovery](https://stackoverflow.com/questions/35420940/windows-uwp-connect-to-ble-device-after-disco...

10 May at 22:28

"EF BB BF" at the beginning of JSON files created in Visual Studio

I have a bunch of `JSON` files set as `Embedded resource` in one of my projects. I'm using `Newtonsoft.Json` to parse these files: ``` public static string ReadStringFromStream(string streamName) { ...

21 May at 15:0

await Task.CompletedTask for what?

I created UWP app with [Windows Template Studio](https://blogs.windows.com/buildingapps/2017/05/16/announcing-windows-template-studio/) that introduced at Build2017. Below class is a part of generate...

Need to set Debug-specific Environment Variable in VS.NET 2017

All, I apologize if this is the world's dumbest question. I found this: [https://stackoverflow.com/a/155363/463196](https://stackoverflow.com/a/155363/463196) I can't find the menu item when follow...

23 May at 12:34

How to suppress InMemoryEventId.TransactionIgnoredWarning when unit testing with in-memory database with transactions?

I'm using an EF Core in-memory database and I'm trying to run a unit test on a method that uses transactions: ``` using (var transaction = await _context.Database.BeginTransactionAsync()) { _conte...

What's the difference between DataContext and BindingContext

I have been studying databinding techniques in numerous different WPF/MVVM resources. I thought I had a fairly strong grasp on the purpose and use of the `DataContext` object. But then I came across [...

23 May at 13:6

View Component as a Tag Helper does not get Invoked

Invoking a View Component as a Tag Helper was introduced in ASP.NET Core 1.1. (See [“Invoking a view component as a Tag Helper”][1]). But the following only returns the _Test for VC_ part of the view....

Pass through authentication with ASP Core MVC, Web API and IdentityServer4?

I have been working on migrating a monolithic ASP Core MVC application to use an service architecture design. The MVC front-end website uses an `HttpClient` to load necessary data from the ASP Core W...

How do I set a default User Agent on an HttpClient?

It's easy to [set a user agent](https://stackoverflow.com/questions/33659663/how-to-set-user-agent-with-system-net-webrequest-in-c-sharp) on an HttpRequest, but often I want to use a single HttpClient...

23 May at 12:18

`PrintQueue.AddJob` does not finish

I tried following code on some PCs. ``` using (var lps = new LocalPrintServer()) using(var pqueue = lps.GetPrintQueue("PRINTER-NAME")) { pqueue.AddJob("job-name", @"C:\example.xps", false, pticke...

19 May at 16:16

How to create MongoDB MultiKey index on attribute of items in an array .NET Driver

I have a MongoDB collection "foos" containing items which each have an array of "bars". That is, "foo" has the following schema: ``` { "id": UUID "name": string ... "bars": [ ...

Can the Virtual File System In Service Stack Be configured not not treat files with multiiple dots as directories?

I'm attempting to serve an angular spa from embedded resources using the ServiceStack Virtual file system. This appears to be mostly working, however many of my generated files include two dots in th...

19 May at 06:25

Why does SyntaxNode.ReplaceNode change the SyntaxTree options?

I'm trying to replace nodes within a syntax tree in Roslyn, and it's just about working, but with an annoyance which feels it be a problem. The syntax tree is generated from a script, and I want the...

19 May at 02:35

Embed Unity3D app inside WPF application

I want to develop a new CAD software in WPF and instead of using WPF 3D, is it possible to use Unity3D as my graphic engine that is capable of rotate, pan, zoom and view 3D graphic objects based on my...

19 May at 00:27

How can I detect unused imports in a Script (rather than a Document) with Roslyn?

I'm writing a system to process snippets written as unit tests for Noda Time, so I can include the snippets in the documentation. I've got a [first pass](https://github.com/nodatime/nodatime/commit/8e...

18 May at 21:54

Resolving Hangfire dependencies/HttpContext in .NET Core Startup

I've installed and configured Hangfire in my .NET Core web application's Startup class as follows (with a lot of the non-Hangfire code removed): ``` public class Startup { public void Configurati...

'Cannot find the requested object' exception while creating X509Certificate2 from string

I am trying to create `X509Certificate2` from string. Let me show an example: ``` string keyBase64String = Convert.ToBase64String(file.PKCS7); var cert = new X509Certificate2(Convert.FromBase64String...

Entity framework core: Cannot insert explicit value for identity column in table 'Relation' when IDENTITY_INSERT is set to OFF

I'm bulding an application and when I want to insert a form into my form table I get the following error: > Cannot insert explicit value for identity column in table 'Relation' when IDENTITY_INSER...

23 May at 06:47

ResolutionException - Getting "Required dependency of type *********** could not be resolved"

Following is the exact scenario in my application. I have used ServiceStack 3.9.48 and AutoFac 4.6.0 to develop a REST service. Following is the code of AppHost which is inherited from AppHostBase ...