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…
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…
I can't publish my ASP.NET core web API to somee.com
It's been one mouth since i published my API to somee.com and it was working fine and even when i update the API in my local machine and publish it again it worked fine but now it doesn't want to publish to somee.com anymore and i don't know if the…
Add Web API Calls to Blazor Web App Migrating from .Net6 to 8 Redirects to Login with [Authorize] controllers.
I have a .Net WASM project that I am migrating to .Net 8 from .Net6. I want to take advantage of some of the advanced render modes. I used the template in VS2022 with Individual accounts, With 'Auto (Server and WebAssemby) and per page/component as the…
IIS CORS Module configuration with Windows Credentials
Hi, Does anyone have a Windows .Net Core API being accessed via Windows Authentication? I have not been able to get this to work. I have an .Net Core API hosted on my Windows 2022 server in IIS with Windows Authentication enabled. We have a on-premise…
InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request. Your application is running in Production mode, so make sure it has been publ
This happened before with another application of mine which I was able to fix by removing the use redirect. However, this time it seems to be more complex, I am using dotNet 7 for the application and React for the front end all my checks are successful…
.NET Authentication .NET 7 Vs .NET 8 in my simple API service
I’m working on a relatively simple .NET Core web API service that performs CRUD operations on a database. Not sure what's the best way to implement authentication. Here’s the situation: In .NET 7, I had to manually define all the authentication…
call an api in C#
I have the following code: namespace TwilioSendMessages.Controllers { [Route("api/[controller]")] [ApiController] public class SMSController : ControllerBase { private readonly IWebHostEnvironment _webHostEnvironment; …
Shopping application
To implement this application Should we use both ASP.NET web api and postman or any one? do we need to create models for application in web api ?
Developing Web API in C# with VS 2022: IIS Express Error, no connection to local IP, access denied
I'm developing a Web API with C#, Net 8, in Visual Studio 2022. Everything was fine until I changed one detail in "$schema": "http://json.schemastore.org/launchsettings.json", "iisSettings": { …
"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel" and "The remote certificate is invalid according to the validation procedure" on just 1 server?
There is an API and this API in .NET C# gives this error: "System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Unable to establish trust for…
Changing the APPID of a VB.Net project
I'm working on ASP.NET Web API project, and I realized that the APPID being captured in the Teradata DBQL is a duplicate of another application. This is how the APPID looks like. W3WP:AA:CC:xx.xx.xx.000) Can you please advise how to update the…
.Net 8.0 Unable to install EntityFrameworkCore.Tools 8.0.2 from Nuget package manager
I have installed Visual Studio 2022 community edition, created a .Net Core Web API project and installed below 2 packages from Nuget package manager successfully. EntityFrameworkCore.SqlServer 8.0.2 EntityFrameworkCore 8.0.2 But, when I try to install…
Incorrect assessment result for Develop an ASP.NET Core web app that consumes an API
I attempted the assessment and successfully completed all the tasks. I am very sure that my result is calculated incorrectly. The result says I failed to Interact with an API which does not make any sense as I would not be able to proceed to other…
Is there a way to trigger Outlook-Add-Ins (Web) from external? (Custom event activation)
I am currently working on Office365 add-ins development and their communication via asp.net interfaces which are registered with entra id. I would like to open email templates from an external program. Templates can be created via ms-graph or by the…
How do I attach an SSL certificate to access SOAP services with .NET Framework 4.8?
Hello everyone, We have a requirement to attach the SSL certificate while consuming SOAP services. We are getting an error as "Could not establish secure channel for SSL/TLS with authority 'url.com:portnumber'/". Inner Exception WebException:…
Problema om Swagger em publicaçao de API no Azure
estou tentando publicar uma API no Azure mas esta retornando o erro Falha ao gerar o arquivo de swagger. Erro dotnet swagger tofile --serializeasv2 --output var builder = WebApplication.CreateBuilder(args); // Add services to the…