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...
- Modified
- 6 Feb at 18:18
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...
- Modified
- 22 May at 12:24
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...
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" ...
- Modified
- 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.
- Modified
- 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...
- Modified
- 21 May at 22:15
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...
- Modified
- 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) { ...
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...
- Modified
- 21 May at 11:20
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...
- Modified
- 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...
- Modified
- 19 Nov at 12:3
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 [...
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....
- Modified
- 3 May at 05:12
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...
- Modified
- 19 May at 19:34
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...
`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...
- Modified
- 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": [ ...
- Modified
- 19 May at 12:56
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...
- Modified
- 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...
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...
- Modified
- 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...
- Modified
- 30 May at 17:37
'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...
- Modified
- 19 May at 06:37
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...
- Modified
- 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 ...
- Modified
- 18 May at 13:7