ResetPassword in .net core web api
Hi, I'm currently working on a .NET core web API project and writing ResetPassword. The user wrote the email and front-end sent it to my ForgotPassword Endpoint, I checked the database and send the url with email and token in it to the user's email. This…
REST interface, server for GET,PUT,POST,DELETE
Hello, My goal is to control a Rest Server from a WPF C# desktop app. Get, Push, Pop, Delete should be tested. The server does not require extensive logic, only test data. Later, the customer REST server is connected. How can I achieve this? How should I…
How can I send a request contains Json and pdf file using httpWebRequest ?
I have a service that I'm trying to consume on my code. The service in Postman is working fine, the request is Form-Data containing JSON and PDF file selected from the workspace, my issue here is how can I handle the request in my code, I had tried to…
Call On Prem Web Application(ASP.Net Web APIs) from Azure environment(.Net Core Web APIs, Azure Function Apps)
Hi All, We are creating REST endpoint with help of ASP.Net core Web API, while working on some feature we have to consume endpoint(APIs) which already hosted and running on prem windows server, so we plan to reuse with all security concerns. New…
two decimal for label
Hello This is my sample code Label LRO = e.Item.FindControl("LRO") as Label; LRO.Text = roff; its should return value in something example two digit decimal 12.45 14.00 15.12 how to do so thanks
framework realated question
what is frame in framework for .net applicatons like .net framework 3.5 and what it indicates for frames
ASP.NET Core APIプロジェクトでIISのApplication Initialization処理を使う方法
Visual Statio 2022でASP.NET Core APIテンプレートを使って.NET 6のアプリケーションを作成しています。 このアプリケーションをIISの運用環境に配置し、Application Initializaion機能を有効化していますが、アプリケーションプールのリサイクル後に期待通りに動きません。 調べた結果、ASP.NET Core…
This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.
Server Error in '/' Application. Configuration Error __Description:__An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file…
Unable to bypass the certificate validation when trying to access APIs from a web application which has its own certification
Unable to bypass the certificate validation when trying to access APIs from a web application which has its own certification Hi All, I m facing issue when I m trying to access a Service management API to create/ fetch a ticket through my web application…
IMAGE UPLOAD USING PHOTO PICKER DIALOG
RegistrationForm.cshtml <div class="mt-2"> <div class="row"> <div class="col-7 col-sm-6"> <div class="d-flex…
Cancel Request after press button
Hello, We are using MVC .NET Core framework 6 and we need to cancel or kill request after send. For example after press a button that execute some actions in oracle Database. We need to Cancel this request from another button. Is this possible? and if…
How can I access SharePoint files via a C# web api that uses no user authentication?
I have followed numerous guides on how to access SharePoint via C# and no matter what I do I end up with a "401 Unauthorized response:" I am out o fideas. Anybody able to help? Would prefer working code examples. using…
Customize the EmailConfirmation and 2FA token expiration in .NET 8.0
Is there a way to extend the 2FA and Email confirmation token expiration timespan with email in .NET 8.0? I am using the Microsoft.AspNetCore.Identity and Microsoft.AspNetCore.Authentication classes to use the 2FA with…
Blazor Culture in the Route
Is it recommended to add the language (culture) in the route e.g. site.com/en/page-name or only page name is sufficient e.g. site.com/page-name? How to I change the culture to de-DE if you paste the URL like the following? mysite.com/de/home Thank…
Request OAuth2.0 token using azure app services managed identity
Hi All, I have a question on Azure App Service Managed Identity. Currently we are working on an API project where it provide the function to interact with user in Azure Entra thru Microsoft Graph API calling. To protect the API function, we have a…
Returning consistent errors in .NET Web API
I have a backend .NET Core Web API application and React App on the front. I would like to be able to return errors from the API and display them in the app. The problem I'm facing is that some classes return errors differently. For example, I'm using…
System.ObjectDisposedException: 'Cannot access a disposed object. ObjectDisposed_ObjectName_Name', al momento de guardar mi lista de imagenes
My View in vue.js sends me the image arrangement to my api, which I want to save in a folder asynchronously and when I do the second round in my foreach to the second image it gives me the error. foreach (var imagen in imagenes) { ImagenesProducto…
How to secure web api in asp.net c# (offboarding and crossboarding users.)
Hi , How to secure web api in asp.net c# i want to secure the web api for offboarding and crossboarding users. Example-offboarding : we have created one api, so we want to secure those api. suppose if a employee has left the organization and he knows the…
C# ASP.NET MVC: develop app with running tasks and ASP.NET MVC web UI to control it
There's a url from which I need to run api get data in JSON format and store to MS-Sql Server. This project will run mostly on server(s). We also need an application to provide an interface so that whenever needed user can select which data to be stored…
How to get changes from repo remote to local on bitbucket git ?
I have two branches first branch beforefinal and second branch name is Final and i need to make merge and differences from Final branch to beforefinal branch local on my pc so How to do that please my project worked on asp.net core 8 and I worked on…