Cannot upload a file using ASP.NET Core REST Web API and Swagger
Hello, The [FromForm] IFormFile file is null for a REST API HttpPost. The project was created using the Visual Studio 2022 ASP.NET Core Web API template. I deleted the Weather model and controller. And added my own controller. Here is my controller…
Lifetime validation failed, the token is expired.
Even if the token is new then also it gives me this error.
Lifetime validation error. Token is expired
Hello,https://graph.microsoft.com/v1.0/me when i try to call this api from my .net core application. It says "Lifetime validation error. Token is expired" even if the token is new. Need your help
Integrating AI to .NET
Hi, I'm a jun. .NET dev. Nowadays I wanted to learn and integrate AI to my project, but I'm confused. Should I learn phyton and integrate AIs that were written with phyton, or start using ML.NET? I want my product or project to be very high quality. But…
Issue with AuthenticateAsync
If anyone can give me a clue as to where I am going wrong. I have slowly been upgrading my code base from .NET 6 to .NET 8. With my authorization controller, in the authorize method with .NET 6 this line of code var results = await…
How to Read Meta-Tags of a MP4-File?
In Windows 11 you can modify Meta-Tags of MP4-Files. Are there libraries for .net core 8 web api available which are able to modify these? Is there a posibility to do that over API-Calls? I already get to know to the library taglib but this one seems not…
Azure SCIM - Group members are not sending from azure while group provisioning
I am performing SCIM provisioning from Azure and have mapped the default attributes in the attribute mapping settings. I added 5 users to the "devtestgroup", but when sending the requests, Azure is only sending the externalId and displayName,…
Learning and integrating AI with .NET
Hi, I'm a junior back-end developer in .NET. Nowadays I wanted to learn and integrate AI to my project, but I'm confused. Should I learn phyton and integrate AIs that were written with phyton, or start using ML.NET? I want my product or project to be…
Send mail using SMTP with authorization
Hi Guys, I have been looking for a solution to send automated mail using smtpclient - 'smtp.office365.com'. We need to send mail without any user interaction or any admin consent. Is it even possible? (Note: needed authentication for Hybrid scenario -…
Send mail using MFA enabled Mail ID
Hi Guys, I am reaching out to you because I have a doubt in sending email. I am using SmtpClient class to send mails. MFA has to enabled for the mail Id from tomorrow onwards (mandatory it seems). how to authenticate and send mail using SmtpClient ? It…
.NET Framework and .NET Core Update Support on Windows Server 2012 R2 After EOL
What is the support status for .NET Core and .NET Framework updates on Windows Server 2012 R2 after October 2023, given that the OS will not receive any security updates? Can components like .NET versions 3.5 to 4.2 still receive updates through newly…
Embedding Power BI Report into .net core Web api using Azure AD B2C Tenant
Hello programmars I am trying to implement .net core Web api which can embed PowerBI reports. I am able to do that using Azure Active Directory but the problem is Our client has Azure AD B2C tenant so how can I generate access token using users of B2C…
Is it safe to delete the obj\Debug folder in a C# project?
Hi, I am encountering the following error: Severity Code Description Project File Line Suppression State Details Error (active) MSB3713 The file "obj\Debug\net6.0\IMS.CoreBusiness.AssemblyInfo.cs" could not be created. The process cannot…
How to fix an error System.TypeLoadException: in an swagger api project ?
System.TypeLoadException: Method 'get_LockReleaseBehavior' in type 'MySql.EntityFrameworkCore.Migrations.Internal.MySQLHistoryRepository' from assembly 'MySql.EntityFrameworkCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' does…
Although my .NET Core WebAPI app is deployed in an Azure AppService (Windows) successfully, it always provides 403 error
I'd like to deploy my first .NET Core Web API in an Azure AppService. Code written in Visual Studio 2022 using .Net 6.0 and it is running as it should in local environment. Azure App Service is a windows based AppService. Using VS 2022, the…
EF Core 8 Shadow Properties incur a 255 limit on columns
We have an EF based WebApi, and the business logic includes the ability for end users to add user defined fields To get that in EF, we engaged Shadow Properties, and that is working well Unfortunately we found Shadow Properties incur a limit of 255…
How to extract 30 days back data from datetime parameter
I want to use the date parameter in the data table of my dotnet core's rdlc report. One of the two values of the SQL parameter is the parameter value, the other is a date 30 days back from the date of the parameter value. But the second parameter is…
I need to know the exact difference between container insights and Azure managed Promotheus and grafana in azure kubernates cluster
I am unable to figureout the exact difference between container insights, promotheus and grafana, and if i need to integrate azure managed promotheus, in my .net core app(POD), what changes i need to make in my application to get metrics. Can any help me…
Azure Service Bus Queue - High number of incomming requests even though the client is turned off.
I'm facing a challenge with an Azure Service Bus Queue. I have an ASP.NET Core API that forwards incoming requests to a queue. Additionally, I have a background service that checks for new messgaes every 10 minutes. The service is supposed to shut down…
Future Plans and Limitations for .NET Core 2.1 on Azure
We are currently running applications on .NET Core 2.1 on some of our Azure servers. As we plan to update to a more recent .NET version, we want to prioritize and schedule this update effectively. I have a couple of questions regarding the use of the…