ASP.Net Core, detecting debugging vs. not debugging in a controller
I am writing my first ASP.Net code web app and in my controller I would like to have an `if` statement that checks to see if I am in debugging mode or not. I know in the Startup.cs file I can check `e...
- Modified
- 5 May at 09:46
ASP.NET Core 1.1 and EF 6 exception in unmanaged code
For some reason, I'm getting a fatal error somewhere in EF 6, but this has only happened since I've converted to .NET Core 1.1. This application ran without issue on ASP.NET MVC 4. [](https://i.stack....
- Modified
- 30 May at 23:50
How to stream with ASP.NET Core
How to properly stream response in ASP.NET Core? There is a controller like this (): ``` [HttpGet("test")] public async Task GetTest() { HttpContext.Response.ContentType = "text/plain"; usin...
- Modified
- 13 Mar at 20:8
Is is possible to disable authentication providers for specific routes?
We're evaluating service stack v.4.5.6.0 for a Web API and we want clients to be able to authenticate using basic auth or credentials but we do not want them to be able to provide a basic auth header ...
- Modified
- 13 Mar at 17:35
Sending custom headers in JsonServiceClient for Android?
I need to send custom headers in my android app, I'm using the servicestack plugin for android studio [http://docs.servicestack.net/java-add-servicestack-reference](http://docs.servicestack.net/java-a...
- Modified
- 13 Mar at 17:25
Getting error : The binary operator Equal is not defined for the types 'System.Guid' and 'System.String'
This is My Expression Class ``` public static class ExpressionBuilder { private static MethodInfo containsMethod = typeof(string).GetMethod("Contains"); private static MethodInfo ...
- Modified
- 13 Mar at 16:46
Add Legend to Seaborn point plot
I am plotting multiple dataframes as point plot using `seaborn`. Also I am plotting all the dataframes . My code takes each of the dataframe and plots it one after another on the same figure. Eac...
- Modified
- 13 Mar at 15:53
how can i force await to continue on the same thread?
`await` does not guarantee continuation on the same task for spawned tasks: ``` private void TestButton_Click(object sender, RoutedEventArgs e) { Task.Run(async () => { Debug.WriteLin...
- Modified
- 13 Mar at 20:23
Change line width of lines in matplotlib pyplot legend
I would like to change the thickness/width of the line samples featured in the pyplot legend. Line width of line samples within legend are the same as the lines they represent in the plot (so if line ...
- Modified
- 18 Jun at 09:6
Visual Studio 2017 - Could not load file or assembly 'System.Runtime, Version=4.1.0.0' or one of its dependencies
I am using Visual Studio 2017 and am trying to create a .Net Standard 1.5 library and use it in a .Net 4.6.2 nUnit test project. I am getting the following error... > Could not load file or assembl...
- Modified
- 13 Mar at 01:22
Enabling CORS in Cloud Functions for Firebase
I'm currently learning how to use new Cloud Functions for Firebase and the problem I'm having is that I can't access the function I wrote through an AJAX request. I get the "No 'Access-Control-Allow-O...
- Modified
- 14 Sep at 21:29
Customize generated model names - Swagger UI
I'm trying to adjust the "displayName" of the model being used in an automatically generated Swagger definition. This will only affect the Swagger names, meaning the namespace in code would be left ...
- Modified
- 4 Apr at 01:31
Uncaught (in promise) TypeError: Failed to fetch and Cors error
having a problem with getting data back from database. I am trying my best to explain the problem. 1.If I leave "mode":"no-cors" inside the code below, then I can get data back from server with Postm...
- Modified
- 12 Mar at 23:28
'Could not load file or assembly 'System.Web.Helpers' or one of its dependencies
I'm getting the follow error when trying to run my ASP.NET project. Can anyone advise? ``` Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. The located assembly's mani...
- Modified
- 12 Mar at 23:4
Initiate a message from bot to user on BotFramework
I have a bot built on BotFramework 3.5 and hosted on Azure as a WebApp. I didn't face any problems with implementation of scenarios where the bot needs to respond to user's input. However there is a n...
- Modified
- 16 Mar at 09:11
What does the @ mean inside an import path?
I'm starting out a new vue.js project so I used the vue-cli tool to scaffold out a new webpack project (i.e. `vue init webpack`). As I was walking through the generated files I noticed the following ...
- Modified
- 18 Jun at 10:22
Angular cli generate a service and include the provider in one step
It is possible generate a service with angular cli and add it as a in the in a single step or using an special option in the command? When a execute: ``` $ ng g service services/backendApi instal...
- Modified
- 14 Aug at 19:46
Mysql is not appearing in "Choose Data Source" for Visual studio 2017
As you can see i've already installed the necessary mysql packages such as Mysql for Visual studio and Connector/NET but no matter what the mysql is not appearing in Visual studio 2017 Data source men...
- Modified
- 12 Mar at 15:23
Persisting dynamic object in DynamoDB with .NET SDK
I'm trying to persist the following class to DynamoDB using the .NET SDK: ``` public class MyClass { public string Id { get; set; } public string Name { get; set; } public object Settin...
- Modified
- 12 Mar at 13:40
How do you multi-target a .NET Core class library with csproj?
When .NET Core still used the `project.json` format, you could build a class library [targeting multiple frameworks](https://blogs.msdn.microsoft.com/cesardelatorre/2016/06/28/running-net-core-apps-on...
- Modified
- 23 Mar at 16:27
ServiceStack OAuth2 mobile native authentication
I need to log on through OAuth 2 how can I do that without using WebView in Android? Thanks.
- Modified
- 12 Mar at 12:40
HTTPS request fails using HttpClient
I am using the following code and get `HttpRequestException` exception: ``` using (var handler = new HttpClientHandler()) { handler.ClientCertificateOptions = ClientCertificateOption.Manual; ...
- Modified
- 12 Mar at 14:51
Enabling c# 7 in a asp.net application
I just started working on my old solution in Visual Studio 2017. Just opening the solution in the old IDE worked seamlessly. The c# application projects now default to the c# 7.0 compiler. The propert...
- Modified
- 18 Dec at 14:36
PAssing DTO to ServiceStack using POST
in my service i have the following request: ``` [Route(@"/api/adddevice", Verbs = "POST")] public class AddDeviceRequest : IReturn<AddDeviceResponse> { public DTOTargetDevice TargetDevice { get;...
- Modified
- 11 Mar at 21:6
iloc giving 'IndexError: single positional indexer is out-of-bounds'
I am trying to encode some information to read into a Machine Learning model using the following ``` import numpy as np import pandas as pd import matplotlib.pyplot as py Dataset = pd.read_csv('fil...
- Modified
- 27 May at 11:27