Using Localization with DataAnnotation where do you put the ressources file and how to access it
I am using .Net Core 8 I succeed to use StringLocalizer and HtmlstringLocalizer I want to localized DataAnnotation the [Display(Name = "PhotoEpisode")] and the error message [Required(ErrorMessage = "Le sous-titre de l'épisode est…
How to insert HTML to a Blazor WASM?
I am working on an e-commerce solution. The client side is a Blazor WASM .Net 6 project. I am trying to use a 3rd party payment gateway and unfortunately, their support is very poor. I am trying to progress by trial and error. On the checkout razor page,…
Not able to Insert Image data for two images Postgresql
[HttpPost] [ValidateAntiForgeryToken] public async Task
![](https://techprofile.blob.core.windows.net/images/3b270b575c094eeca63e9bc66c861c5a.png)
.Net8.0 WebAPI Deployment Not Working with IIS on Windows Server 2012 R2 aspnetcore.dll and Asp.Net Core Module\V2\aspnetcorev2.dll not found
Dear Team, I have installed following below .Net Core Bundle in sequence on our Windows Server 2012 R2 .NET SDK 8.0.300 .NET Runtime 8.0.5 ASP.NET Core Runtime 8.0.5 .NET Windows Desktop Runtime 8.0.5 But I have not found following below dlls which…
ASP Net Core 8.0-A potentially dangerous Request.QueryString value was detected from the client
Hi, I hit the issue "A potentially dangerous Request.QueryString value was detected from the client (filter="...dList eq '<bZFZ0B4I...")" . My project is netcore 8.0,and it's stand-alone executable. I found that the…
DbUpdateConcurrencyException: Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded.
Hi If you allow, I would like to ask a question. I want to replace the data I brought with the "public async Task<IActionResult> WriterEditProfile()" method with the "public IActionResult WriterEditProfile(AppUser p)"…
![](https://techprofile.blob.core.windows.net/images/YykzxgI8WU-FS8_8mZ06MQ.png?8D9F28)
How to navigate to 3rd party URL in Blazor WASM?
Hi, I have an e-commerce solution. Using Blazor WASM .NET 6 for the client side. I am using a 3rd party payment gateway. Unfortunately, they don't have a great support and help desk so most of the time I am trying to find my way with trial and error. I…
![](https://techprofile.blob.core.windows.net/images/PjYbsbDfukmsOVQ24l7Rxw.png?8D8DBE)
Pentesting Blazor Server Apps
Hi, I came across a web app that is using Blazor Server, all the communication is happening through SignalR. Now in traditional web apps, pentesters use ZAP/Burp to intercept the traffic and manipulate with it. i.e. test access controls by toggling the…
Issue with an earlier well functioning AppService
Hello Team, I would like to ask your help in a technical issue. I am creating an AI chatbot flaskbased application , where using mostly open source libraries. For semantic search and ranking I am using FlashRank library…
![](https://techprofile.blob.core.windows.net/images/YykzxgI8WU-FS8_8mZ06MQ.png?8D9F28)
error format of the initialization string does not conform to specification starting at index 0
I am programming an ASP.NET Core project with Razor pages, which is database first. After executing the Scaffold-DbContext command in Power Console Manager, the classes and context were created correctly and after running the program, the data was read…
![](https://techprofile.blob.core.windows.net/images/BShhHLCLI0-r4Esm5bkqDQ.png?8D8B44)
How to fix Add-Migration problem?
Hi, I am trying to add another entity to the database in my e-commerce solution which includes client and admin projects using Blazor WASM and Server, Asp.Net Core API, and data access projects. However, I am getting an error message as shown below: How…
.Net 6/8 WebApi take long time to start
I compile this simple project and run it in Linux bash is normal. But when I create service file to run this program, it take almost 2 minute to start. The same as in Podman. var builder = WebApplication.CreateBuilder(args); var app =…
Microsoft Hosted General Download from Microsoft Failing with 500.30 Asp.Net Core error
I was asked to post this question here as well... I'm following a Microsoft article (https://video2.skills-academy.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-8.0) and trying to download the .Net Core Hosting Bundle. Current .Net Core Hosting…
How to Increase timeout
I scaffolded a asp.net core application from Postgresql db, I get the below error , please suggest. TimeoutException: Timeout during reading attempt I fails here SupaCrud.Controllers.QuestionsController.Index() in QuestionsController.cs + return…
Sort question by ascending order
I want to sort question by ascending order , the below statement in bold is giving error , please suggest public async Task<IActionResult> Details(int? id) { if (id == null || _context.Questions == null) { return…
DbUpdateConcurrencyException: Database operation expected to affect 1 row(s) but actually affected 0 row(s).
Hi, If you allow, I would like to ask a question. I want to replace the data I brought with the "public async Task<IActionResult> WriterEditProfile()" method with the "public IActionResult WriterEditProfile(AppUser p)"…
![](https://techprofile.blob.core.windows.net/images/MxBLrky2rESG0hes4GqOKQ.png?8D92C1)
What is the equivalent of AllowHtml in .Net 6 (CORE) ?
Hi, What is the equivalent code to it in Asp.net MVC Core 6. public class ContentVM { public int Id { get; set; } [Required(ErrorMessage = "Please Enter Content")] [DisplayName("Rich…
Unable to obtain configuration from: 'https://login.microsoftonline.com/tenantId/.well-known/openid-configuration'
An unhandled exception has occurred while executing the request. System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://login.microsoftonline.com/<tenanatid>/.well-known/openid-configuration'. Will retry at…
InvalidOperationException: No policy found: System.Object[] in .NET 6 project on Visual Studio 2022 Version 17.10.3
`I recently installed the latest version of Visual Studio 2022 Version 17.10.3 and started working on a .NET 6 project. When I run my project, I encounter the following exception: InvalidOperationException: No policy found: System.Object[].…
#How to convert ASP.NET for Microsoft Graph API to an open public API?
Hello, I have followed the instructions for creating an application that can pull data using the Microsoft Graph API: …