Skip to main content

All Questions

11 votes
2 answers
16k views

ASP NET Core 2.0 appsettings.Development.json not working with logging configuration

I have installed VS2017 15.3.0 Preview 4 and .NET Core 2.0 Preview 2 and have created a default Web MVC application. I am interested in seeing how the new logging functionality works but I cannot get ...
4 votes
1 answer
7k views

Microsoft.Data.Tools.Schema.SqlTasks.targets was not found

I'm trying to create an Integration Test. For this I want a clean database. I also have a Database Project which contains the tables and scripts that would give me a clean installation. As such, I ...
8 votes
3 answers
6k views

Asp.net Core UseExceptionHandler not working POST request

In my .Net Core 2.0 application i have implemented UseExceptionHandler to handle exceptions globally. But redirection only works for GET method and POST method always return Status Code: 404; Not ...
52 votes
5 answers
75k views

'HttpPostedFileBase' in Asp.Net Core 2.0

I'm recently working on a ReactJS app that's calling an API (developed with .NET Core 2.0). My question is how to use HttpPostedFileBase in an .NET Core 2.0 API in order to get file content and ...
14 votes
5 answers
19k views

Get application virtual base path in aspnet core

I know that is located in HttpContext.Request.PathBase, however I need it to configure my cookie before I have any HttpContext (in Startup.cs). My problem: When devops configure application they ...
6 votes
4 answers
6k views

.net core , how to handle route with extra leading slash

I need to handle an incoming request which is of the form: //ohif/study/1.1/series Note the exta slash at the front My controller signature is: [Route("ohif/study/{studyUid}/series")] [HttpGet] ...
2 votes
1 answer
18k views

ASP.NET Core MVC Encrypt/Decrypt QueryString Values

I'm using ASP.NET Core 2.0 MVC, C#, Entity Framework Core Code First and SQL Server 2016. I created a web form and all of my CRUD operations are working fine. However, I need some help on Encrypting /...
14 votes
4 answers
25k views

System.TypeLoadException: 'Could not load type 'System.Web.HttpContextBase' from assembly 'System.Web,

Whenever I try to load the Chart using System.Web.Helpers namespace in Asp.net Core I get this Exception. System.TypeLoadException: 'Could not load type 'System.Web.HttpContextBase' from ...
26 votes
3 answers
33k views

Release of ASP.NET core App: The command "npm install" exited with code 9009

I have a ASP.NET Core solution with a React frontend. I now have a problem I cannot release the code using the normal release window inside Visual Studio. I publish to a web app inside Azure web apps, ...
9 votes
4 answers
7k views

How to manage ASP.NET Core bundleconfig.json for multiple environments?

What's the best practice for using the ASP.NET Core bundleconfig.json with development versus production environments? The prior bundler (BundleCollection) would pay attention to the DEBUG compiler ...
6 votes
4 answers
10k views

textarea asp-for doesn't display property

I've been working on a small school project and decided to use .net core (MVC) for the first time. I have a small button I can click which executes the "ipconfig" command in the background and ...
1 vote
3 answers
3k views

How do you change the default AntiForgeryToken identifier in asp.net core mvc?

Im trying to use AWS Cognito for my auth in a .Net Core MVC-app. The login works fine, but none of my forms in the views work, they all give an error about my claims not containing "Name"-Claim. I ...
6 votes
3 answers
3k views

Custom Claims are not being accessed in client with identityserver 4 .Net core 2.0

I have following in my client startup.cs. services.AddAuthentication(options => { options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme; ...
0 votes
0 answers
3k views

Error: The remote server returned an error: (500) Invalid WSDL access, no SOAP request expected C#

I am consuming SOAP web service in my .net core application. I am getting below error in c# code "The remote server returned an error: (500) Invalid WSDL access, no SOAP request expected." ...
29 votes
3 answers
28k views

'DbContextOptionsBuilder' does not contain a definition for UseNpgsql()

I am facing an issue while giving the connectionstring to get it connect to PostgreSQL through the AddDbContext() method in ConfigureServices method of Startup.cs I'm getting this error while calling ...

15 30 50 per page
1
2 3 4 5
34