Questions tagged [asp.net-core-2.0]

For any inquiries pertaining to ASP.NET Core 2.0, be sure to utilize this tag alongside the 'ASP.NET Core' tag.

Error: Could not inject CookieService - No provider found for CookieService

I am currently working on an ASP.NET Core 2.0 project that incorporates an Angular 5.1.0 ClientApp in Visual Studio 2017 v15.4.5. My goal is to utilize the ngx-cookie-service within this setup. After closely following the provided instructions for importi ...

Progressive File Upload in ASP.NET Core 2.0 and Angular 4.3: A Seamless Integration

Is there a way to utilize the latest Angular 4.3 HttpClient to handle file uploads and retrieval in an ASP.NET Core 2.0 Controller, all while providing live upload progress updates to the client? ...

Unable to send data through ajax to razor pages

I'm encountering an issue where the data I'm trying to send to a Razor Page method always comes through as 0. Here's the code: Razor Page: public IActionResult OnGetProducts(int page) { var products = _productRepository.GetProducts(); ...

TypeScript encounters difficulty locating the div element

Recently attempted an Angular demo and encountered an error related to [ts] not being able to locate a div element. import { Component } from "@angular/core"; import { FormControl } from "@angular/forms"; @Component({ selector: "main", template: ' ...

Angular applications hosted on .Net Core should include a robots.txt file to provide instructions to web

I am currently running a web application on a Windows server, built with Angular 5 for server side rendering and hosted within .Net Core. I recently uploaded a robots.txt file to the root directory of the server, but when attempting to access it via , the ...

What is the best way to include the npm packages I installed in my Visual Studio 2017 project within the _Layout file?

After searching through some questions, I came across a few without an answer. To enhance my project, I downloaded packages such as jQuery 3 using npm. In the Dependencies section, it lists npm and shows jquery, bootstrap, and popper. I am unsure how to ...