in ASP.NET Core, is there any way to set up middleware from Program.cs?
I am building a support library for ASP.NET Core websites. I have a few pieces of middleware that need to be enabled, and they need to be added before any other middleware due what they do. I can cr...
- Modified
- 25 Apr at 06:59
How do I set `OutputPath` in a Visual Studio 2017 project (new .csproj file format) without the target framework cluttering the resolved path?
Setting `OutputPath` in the new Visual Studio 2017 project format automatically adds the target framework in the path. For example, if I have these set in the project file: ``` <TargetFramework>net46...
- Modified
- 21 Jul at 21:53
Component is part of the declaration of 2 modules
I try to build an ionic 2 app. When I try the app in the browser with ionic serve or launch it on an emulator everything works fine. But when I try to build it every time the error ``` ionic-app-scrip...
- Modified
- 30 Apr at 18:31
Alternatives for updating mesh collider in runtime?
I'm working on game where user generating mesh in runtime (all the time) so mesh have many vertices and in the same time there is a GameObject - player that need to trigger event when it is in area of...
- Modified
- 27 Apr at 19:43
Error occurred during the pre-login handshake
In a project that I am debugging I receive a SqlException saying the following: > Additional information: A connection was successfully established with the server, but then an error occurred durin...
- Modified
- 24 Apr at 22:51
How to change python version in anaconda spyder
I am using 3.6 Python version in anaconda spyder on my mac. But I want to change it to Python 2.7. Can any one tell me how to do that?
Replace service registration in ASP.NET Core built-in DI container?
Let us consider a service registration in `Startup.ConfigureServices`: ``` public void ConfigureServices(IServiceCollection services) { services.AddTransient<IFoo, FooA>(); } ``` Is it possible...
- Modified
- 24 Apr at 14:26
Load XDocument asynchronously
I want to load large XML documents into XDocument objects. The simple synchronous approach using `XDocument.Load(path, loadOptions)` works great, but blocks for an uncomfortably long time in a GUI con...
- Modified
- 24 Apr at 14:8
WMV streaming file size limit
I have a windows media player embedded in my web page view: ``` <div id="divCourseVideo" style="width:100%;margin:0 auto;" class="container"> <OBJECT style="display:inline-block" ID="CoursePl...
- Modified
- 7 Jul at 13:10
Retrieve the names of all the boolean properties of a class which are true
I have a class that has lots of bool properties. How can I create another property that is a list of strings that contains the name of the properties which have a value of true? See initial attempt b...
- Modified
- 24 Apr at 13:0
Jenkins pipeline if else not working
I am creating a sample jenkins pipeline, here is the code. ``` pipeline { agent any stages { stage('test') { steps { sh 'echo hello' } ...
How to generate odata v4 c# proxy client for Visual Studio 2017?
Where can i get odata v4 c# proxy generator for Visual Studio 2017? The existing one is for 2015 only.
- Modified
- 24 Apr at 11:49
EntityFramework Core - Copying an entity and placing it back into the database
Is there a best practice for doing a copy of an entity, making some changes to it based on user input, and then re-inserting it into the database? Some other Stackoverflow threads have mentioned tha...
- Modified
- 24 Apr at 11:56
How to logout and redirect to login page using Laravel 5.4?
I am using Laravel 5.4 and trying to implement authentication system. I used php artisan command make:auth to setup it. I edited the views according to my layout. Now, when I am trying to logout it th...
- Modified
- 24 Apr at 10:14
React-Native Button style not work
# Import_this ``` import {AppRegistry, Text, View, Button, StyleSheet} from 'react-native'; ``` This my React Button code But style not working Hare ... ``` <Button onPress={this.onPress.bi...
- Modified
- 18 Aug at 13:50
The "ResolveLibraryProjectImports" task failed unexpectedly
I have a Xamarin project, which is based on `MvvmCross`. The project is for both iOS and Android. I opened this project in Visual Studio 15. I got some errors, which I solved in no time. There are som...
- Modified
- 25 Jul at 16:44
How to create a hyperlink in Flutter widget?
I would like to create a hyperlink to display in my Flutter app. The hyper link should be embedded in a `Text` or similar text views like: `The last book bought is <a href='#'>this</a>` Any hint t...
- Modified
- 24 Apr at 08:40
Spring boot: Unable to start embedded Tomcat servlet container
I'm new to Spring Boot and having with error while running my application. I'm following a tutorial and I believe I'm having proper parent and dependencies with POM, please help me main class: ``` ...
- Modified
- 24 Apr at 06:10
AWS Lambda: Task timed out
We have been asked for my school project to write a Java code that runs in AWS Lambda. It is supposed to get the source code of the specific URLs and then upload it to an S3 bucket. The Java code shou...
- Modified
- 24 Apr at 00:50
Visual Studio Code Search and Replace with Regular Expressions
I want to use "Search And Replace" in Visual Studio Code to change every instance of `<h1>content</h1>` to `#### content` within a document using a Regular Expression. How can I accomplish that?
- Modified
- 8 Aug at 11:17
Why doesn't returning by ref work for elements of collections?
The following example of returning by reference is from [What’s New in C# 7.0](https://blogs.msdn.microsoft.com/dotnet/2016/08/24/whats-new-in-csharp-7-0/): ``` public ref int Find(int number, int[] ...
Visual Studio Code pylint: Unable to import 'protorpc'
I'm using [pylint](https://github.com/DonJayamanne/pythonVSCode/wiki/Linting#pylint) in [Visual Studio Code](https://code.visualstudio.com/) to develop a Google App Engine (GAE) [Cloud Endpoint API in...
- Modified
- 2 Mar at 07:49
Authorization in ASP.NET Core. Always 401 Unauthorized for [Authorize] attribute
For the first time I'm creating Authorization in ASP.NET Core. I used tutorial from here [TUTORIAL](https://dev.to/samueleresca/developing-token-authentication-using-aspnet-core) The problem is when ...
- Modified
- 27 Apr at 11:3
How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
I have some code that uses JAXB API classes which have been provided as a part of the JDK in Java 6/7/8. When I run the same code with Java 9, at runtime I get errors indicating that JAXB classes can...
Put request with simple string as request body
When I execute the following code from my browser the server gives me 400 and complains that the request body is missing. Anybody got a clue about how I can pass a simple string and have it send as th...
- Modified
- 2 Mar at 11:21