Tag: io

57 votes
6 answers
2.2K views
The default XML namespace of the project must be the MSBuild XML namespace

I cloned the ASP.NET Core SignalR Repo locally, and try opening the solution from within the following environ

avatar
Dwain
0 1 0 9
asked 07 September, 2021
67 votes
17 answers
2.9K views
Publish to IIS, setting Environment Variable

Reading these two questions/answers I was able to run an Asp.net 5 app on IIS 8.5 server. Asp.net vNext early

avatar
Tana
0 1 0 9
asked 07 September, 2021
65 votes
21 answers
1.8K views
The term "Add-Migration" is not recognized

I'm using this MSDN Tutorial to run in VS2015 the command PM> Add-Migration MyFirstMigration -context

avatar
Hallie
0 1 0 9
asked 07 September, 2021
54 votes
3 answers
2.5K views
How to SetBasePath in ConfigurationBuilder in Core 2.0

How can I set the base path in ConfigurationBuilder in Core 2.0. I have googled and found this question, thi

avatar
Charis
0 1 0 9
asked 07 September, 2021
62 votes
2 answers
1.4K views
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor'

I started to convert my asp.net core RC1 project to RC2 and faced with problem that now IHttpContextAccessordo

avatar
Kisha
0 1 0 9
asked 07 September, 2021
60 votes
9 answers
1.5K views
.NET Core Unit Testing - Mock IOptions<T>

I feel like I'm missing something really obvious here. I have classes that require injecting of options u

avatar
Boyd
0 1 0 9
asked 07 September, 2021
58 votes
26 answers
1K views
tsconfig.json: Build:No inputs were found in config file

I have an ASP.NET core project and I'm getting this error when I try to build it: error TS18003: Build:N

avatar
Virgil
0 1 0 9
asked 07 September, 2021
55 votes
15 answers
434 views
Getting value from appsettings.json in .net core

Not sure what am I missing here but I am not able to get the values from my appsettings.json in my .net core a

avatar
Solomon
0 1 0 9
asked 07 September, 2021
52 votes
18 answers
2.8K views
How to unapply a migration in ASP.NET Core with EF Core

When I run PM> Remove-Migration -context BloggingContext in VS2015 with an ASP.NET Core project using EF Co

avatar
Scot
0 1 0 9
asked 07 September, 2021
61 votes
23 answers
2.9K views
ASP.NET Core Dependency Injection error: Unable to resolve service for type while attempting to activate

I created an .NET Core MVC application and use Dependency Injection and Repository Pattern to inject a reposit

avatar
Trudy
0 1 0 9
asked 07 September, 2021
54 votes
23 answers
1.3K views
How to read AppSettings values from a .json file in ASP.NET Core

I have set up my AppSettings data in file appsettings/Config .json like this: { "AppSettings": { "t

avatar
Benton
0 1 0 9
asked 07 September, 2021
58 votes
12 answers
2.3K views
ASP.NET Core Web API exception handling

I am using ASP.NET Core for my new REST API project after using regular ASP.NET Web API for many years. I don&

avatar
Clarice
0 1 0 9
asked 07 September, 2021
56 votes
20 answers
2.3K views
Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

After fresh installation of Visual Studio 2017 I tried to run .NET Core Web project and when trying to run it

avatar
Wilber
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
1.3K views
Resolving instances with ASP.NET Core DI from within ConfigureServices

How do I manually resolve a type using the ASP.NET Core MVC built-in dependency injection framework? Setting

avatar
Shanita
0 1 0 9
asked 07 September, 2021
60 votes
15 answers
2.8K views
How do you create a custom AuthorizeAttribute in ASP.NET Core?

I'm trying to make a custom authorization attribute in ASP.NET Core. In previous versions it was possibl

avatar
Louetta
0 1 0 9
asked 07 September, 2021
47 votes
4 answers
2.3K views
shuffle vs permute numpy

What is the difference between numpy.random.shuffle(x) and numpy.random.permutation(x)? I have read the doc p

avatar
Scot
0 1 0 9
asked 07 September, 2021
55 votes
2 answers
2.6K views
Two-sample Kolmogorov-Smirnov Test in Python Scipy

I can't figure out how to do a Two-sample KS test in Scipy. After reading the documentation scipy kstest

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
55 votes
1 answers
346 views
How can I perform two-dimensional interpolation using scipy?

This Q&A is intended as a canonical(-ish) concerning two-dimensional (and multi-dimensional) interpolatio

avatar
Roger
0 1 0 9
asked 07 September, 2021
56 votes
14 answers
1.5K views
Multiple linear regression in Python

I can't seem to find any python libraries that do multiple regression. The only things I find only do sim

avatar
Jeff
0 1 0 9
asked 07 September, 2021
57 votes
16 answers
1.6K views
scipy.misc module has no attribute imread?

I am trying to read an image with scipy. However it does not accept the scipy.misc.imread part. What could be

avatar
Basil
0 1 0 9
asked 07 September, 2021