The modules of the .NET challenge will be available to us after we have completed all the modules. or the access will be denied after we complete all the modules of a challenge
The modules of the .NET challenge will be available to us in the future, after we have completed all the modules. or the access will be denied after we complete all the modules of a challenge.
System.Net.Http.UnsupportedMediaTypeException: 'No MediaTypeFormatter is available to read an object of type 'IEnumerable`1' from content with media type 'text/html'.'
I am getting Unsupported Media Type Exception whenever I am doing a get request on MVC side on [http://localhost:52541/Employee/Index] . Please check my code and help me to solve the issue EmployeeController.cs from MVC using System; using…
Use InterFace In action Parameter
hi I Have Action Like [httpPost] Public ActionResult Create(IProductItem Item){ Bla Bla } My Classes Are... public interface IProductItem : IBaseModel { public decimal Price {get; set:} } public class Good : IProductItem{ public string Id {get;…
How do i protect Web API
Hi I'm taking some training courses on Azure and Web API. I need to protect my Web Api which has been built on Visual Studio 2022 with all the latest versions, updates installed and selected (except i didnt select .Net 7). I saw these…
اريد حل مشكلتي
We have an app built on flutter and asp. net, sql server and api I want to test the application on the phone over the local network
How do I Disable the Cancel button in MODAL View
Please I need assistance to hide/disable the Cancel Button on Modal View. It should show on the modal popup when the {Delete} Button is pressed. As shown below: When the Delete Button is pressed it will activate a Modal Popup as shown below. As soon as…
USER ID AND PASSWORD USING API
I have code hardcoded in program, I want to change using the below api, where I store userid and password https://sheet2api.com/v1/CAdt0QU7TXCy/untitled-spreadsheet Please suggest protected void Button1_Click(object sender, EventArgs e) { …
Auto way for currency rates
Hi, Which is the good option to auto. retrieve the current exchange rates of the currencies, using API or the other way, in an ASP project?
Python or C# for data science project API?
Hello everyone, I am a Data Science professional and I work on developing and training models for various projects such as NLP and forecasting, using Python. My final models are usually saved as pickle or onnx files, depending on the requirements.…
Question related to C# ForEachb Loop skip
here is my code where i need to skip the contractinvoiceperdaysid when if condition fails and those contractinvoiceperdaysid one or more whose if condition matches shall pass through by join condition using…
How to assign values when the if condition matches for LastModifiedDate
try { DateTime _LastModifiedDateTC ; List<CIPHApprovedPutModel> timeSheetApprovedView = new List<CIPHApprovedPutModel>(); foreach (var Item in timeSheetApprovedView.TimeCards) …
How to catch WebAPI Core unauthenticated status
I have the below code in my Web Core API using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.Identity.Web; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); // Learn…
Assinatura Digital Xml
Prezados, estou com dificuldades de realizar uma assinatura digital de um xml. Utilizo o método abaixo: public XmlDocument Assinatura(XmlDocument document, string elementId, X509Certificate2 certificate) { try { …
failed to upload file to http server from local
Hello I'm trying to upload file from my local Pc to httpClient public static async Task<string> Uplaod(IWebHostEnvironment _webHostEnviromant,string filePath) { var filePath = @"C:\Intel\house.png"; …
VS 2022 + .NET Core 3.1 Web app can't debug under IIS profile
I receive the following error when trying to debug the .NET core web app under the IIS profile. launchSettings.json is as follows, and the PC IP is correct. (192.168.31.107) "cqrs" site is also created in IIS and with a separate app pool (CLR…
Deploy React and .NET 7.0 API to IIS
Hello, This is my first time deploying a react app with .NET API backend to IIS. I followed a guide where it illustrated developing each side separately, and then placing the React Build files inside wwwroot folder in the API then publish with the…
How can I have multiple Identity user types when using ASP.NET Core Identity and EntityFrameworkCore?
I have two types of users within my application, Customers and Professionals. I'm using ASP.NET Identity to manage my users. Currently I have only a single user of typle ApplicationUser and use flags to differentiate between Customers and…
Internal Server Error
I am performing CRUD operation using .netCoreApi but facing the issue her i am sharing my error
Login using Custom Made API
Hi All, I am quite new to API. My requirement is , our vendor is having an application, i want to create an API that allows to login users using their AD account username and password. But how can i create an API that acts as middle ware in asp.net core.…
not all code paths return a value
Hi, I am trying to create my first API in .NET as you can see below. But I am getting this error: 'WeatherForecastController.Get()': not all code paths return a value (CS0161) (MyTempAPI) using System.Data; using System.Text.Json; using…