I have DataContext and StartUp class in different projects and to add a new migration in Data project I used the below command: dotnet ef migrations add Identit
I have two controllers Booking and Checkout. Posting form data from controller Booking to Checkout index get page. I want to retrieve the object submitted when
I'm developing a school project using a html.beginform to when i click in a button i go to a diferent Action, but i need to pass the values that i have inside m
I've been given a task to to build a web client that interacts with the following API: https://docs.openaq.org/ It should be able to send different parameters
ASP.Net MVC project is not able to serve js in wwwroot/js folder (generated by webpack). I'm getting a 404 when page is trying to access js/app.js. The csproj h
I am using the asp.net core WebAPI Project in which a client is uploading some files to a server. The whole uploading is done using chunks. The problem is when
I need to pass in dynamic content into the start script for Angular when starting it from .Net. Right now I have: spa.UseAngularCliServer(npmScript: "start"); A
I'm new to using EF as well as ASP.NET Core. I'm working on a simple web application and I am getting an error when I go to save a new record. When the DbCont
Hi could someone guide me in the following problem, there must be tons of guides on this problem but for some reason I can't get google to find a nice how to, t
I have a cshtml page with this code: <form action='@Url.Action("ExportExcel", "Records")' method="post" target="_blank" onsubmit="return exportExcel(), true"
In my application I'm using a form to enter user information including birthdate. I want to perform both client-side and server-side validation and I'm using Fl
I'm building a .Net Core Web API and in one of the files the FirstOrDefaultAsync() method just doesn't work although I'm using it in various files in the same p
A client is currently sending our ASP.NET 4.x/Core REST APIs the correct request payload but invalid request Content-Type which is resulting in 415 status codes
Is there away to prevent HttpClient.SendAsync method from sending duplicate data. For context purpose am getting data from one API and posting to another API I
Recently I have integrated MiniProfiler into a .NET 6 API and all works well, can see the SQL queries via EFCore and all on the dashboard. What I would like to
I just implemented a Try catch in my code, the error is because I have to return something in the catch, I can't understand is "what should I return?" 'Company
I have an API with multiple endpoints. I'd like to add a property to all endpoint responses, without adding it to each endpoint response model individually. Ex:
I have the following list of permissions on Azure AD: my ASP.NET Web Core app has the following config: { "AzureAd": { "Instance": "https://login.microso
I receive these two exceptions when I run my blazor web server app: XmlException: Root element is missing. CryptographicException: An error occurred while tryin
I have a Xamarin project and I'm using visual studio 2019. I consume an API to access data and for my LoginPage flow I used routing in shell. So here is my AppS