I have an Angular and.NetCore app that I am deploying to Azure App Service (Windows). I use Azure Pipelines, here is my pipeline configuration Pipeline Config When I deploy to app service this is my folder structure. Whole App Service This is inside my ClientApp folder. ClientApp Folder I get this error, I have been ..
Category : asp.net-core

I have the following .net-core controller: using CadastroDerivativos.Domain.Entities.EquityOpt; using CadastroDerivativos.Domain.Interfaces.Services; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; namespace CadastroDerivativos.WebApiAngular.Controllers { [Route("api/[controller]")] [ApiController] public class EquityOptController : ControllerBase { private readonly IEquityOptService _equityOptService; public EquityOptController(IEquityOptService equityOptService) { _equityOptService = equityOptService; } [HttpGet] public ActionResult<IEnumerable<EquityOptions>> GetEquityOpt() { return Ok(_equityOptService.GetEquityOpts()); } } } and the following angular component and interface: import ..

I’m getting the issue data.slice is not a function in Angular. Before searching the help here, I’ve looked through similar issues, but the problem is still not been solved. So, I have a component.ts class: export class SportsmenListComponent implements OnInit { userDetails: any; spd: any; users: User[]= []; displayedColumns: string[] = [‘Id’, ‘Name’, ‘Surname’, ‘BirthDate’, ..

in asp.net core and angular project, I’m trying upload image where I’m want get image path in object as parameter in HttpPost method ,but I get this error. HttpErrorResponse error: "{"errors":{"fileNationalId":["Error converting value "C:fakepathFoodBankIcon.png" to type ‘Microsoft.AspNetCore.Http.IFormFile’. Path ‘fileNationalId’, line 1, position 410."]}, this is my model public class EmployeeModel { //…… [NotMapped] public IFormFile ..
I set up my project on ASP.NET Core 5 and Angular 10. I try to publish app with Docker Here is the github of this project (branch "prod") https://github.com/TheLamed/Khrystyna-Kvyk Here is my dockerfile: FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build WORKDIR /src COPY ["KhrystynaKvyk.Web.csproj", "KhrystynaKvyk.Web/"] COPY . "KhrystynaKvyk.Web/" ..
I have an Angular based frontend and ASP.NET Core 3 based APIs. I want to send custom variable in each of API request and read it in API but I’m getting this error: Cross-Origin Resource Sharing error : HeaderDisallowedByPreflightResponse On ASP.NET side, I added this setting: public void ConfigureServices(IServiceCollection services) { services.AddCors(options => { options.AddDefaultPolicy( ..
I have a short question about a good solution to solve the following problem: I use Angular Material date picker to select a date on an application. This date then will be stored in the database. During this process it will be converted to UTC "automatically". When I then read/load it from the database it ..
For example, when the frontend sends me a POST request in which the frontend wants to create a new user, but the user with the given name already exists, I have to return the status code 409 (conflict) or 200 (ok)? When I send a 409 it will show a red error in the console ..
I’m developing registration of the User, that has a field of another class. My issue is that I can’t understand how to pass the Guid id to the class field. To make it clear, I have an IdentityUser model: public string Name { get; set; } public string MiddleName { get; set; } [Required] public ..
We have an app that comprised of the client (Angular) and the server part (.NET Core). For authentication purposes, we use identity middleware and JWT tokens. This is a web development classic I can say (the client app that accesses the backend APIs to retrieve data for authenticated users). Now the interesting part… the app ..
Recent Comments