After reinstalling dotnet, encountering an error when running 'dotnet run.' Attached is the error message. Please assist.
error NU1100: Unable to resolve 'Humanizer.Core (>= 2.14.1)' for 'net7.0'. PackageSourceMapping is enabled, the following source(s) were not considered: Microsoft Visual Studio Offline Packages, nuget.org. error NU1100: Unable to resolve…
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…
Error: "Web Page is not working"
I'm using ASP.Net Core MVC with Identity Framework. I added a new category model: public class Category { #pragma warning disable CS8618 [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get;…
How to fix error "No webpage was found for the web address:" when I am opening the url for my app service.
Hi community, I have created one dotnet core web app. Pushed it to repos in azure devops, created a pipeline and deployed it on azure web app services. After creating the release and publishing it on web app, when I am trying to open the URL of web app,…
ASP.NET Core web app with Microsoft SSO via Azure Microsoft Entra ID and not manage secrets - is it possible?
In the Azure Portal, I create a resource Microsoft Entra ID and then add an app registration. In the app registration I can specify redirect URIs for Microsoft logins (SSO) via "Authentication" for my .NET web app: Authentication button on side…
How to do Search inside a subFolder with Azure AI Search.
In Azure AI Search how to find something inside a subdirectory? right now when I am searching something i am getting result from all of the subfolders, I have to do search within a folder for example right now I am in /Submission directory and there are…
ADFS Authentication Issue in .Net 8
I have an existing ASP.NET MVC application that relies on ADFS authentication. I'm currently upgrading it to .NET 8. As part of the upgrade process, I prioritized implementing the authentication functionality first. However, I'm encountering an issue…
SignalR connection
How can I test the connection of SignalR hub without client I write this code and do not know how to test to check if there is a problem in my code here is part of my code that is for signalR in my api: please tell me how should I do to connect…
Develop an ASP.NET Core web app that consumes an API assessment fail
Hi, I recently attempted the applied skill assessment: Develop an ASP.NET Core web app that consumes an API Although not all requirements were very clear, I was confident I completed all the tasks. everything was tested by me and all the functionality…
How to fix StackOverflowException after upgrading from .Net 6 to .Net 8
Hello, I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…
Content Security Policy Violations happening for whitelisted domains only for Netherlands and Switzerland users.
I have a csp policy where I have whitelisted all the domains from which I want to load the content to my application and have added only default-src directive which is fallback to all the other directives. I have tested the policy on lower…
How to connect different Azure Id with Visual Studio 2022 Id
Can other people connect and use it with one ID(Tenant ID or Subscription ID, ...)? ( For Test Purpose ) If so, how can this be done? Thank you.
Adding Token Based Azure EntraID Authentication to GraphQL APIs created on .NET7
I have a set of GraphQL APIs created on .NET7. I want to authenticate the APIs using Azure Entra ID User/App Access Tokens. Is it possible to achieve the same out of the box, else kindly suggest a workaround.
problem of aspnetcore-browser-refresh.js connection failed.
The version of my browser is Chrome 98.0.4758.102(The newest version of Chrome). Every time I debug my asp.net 6 projects with VS 2022(The newest version of VS 2022), the browser always reports the error as below: This problem occurs even I…
how to solve the error "Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - La chaîne de certificats a été"
Hi I try to connect my asp.net core api to a sql server database I encounter an error like: "Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login…
Autorize with JWT Authentication
Hello, i want to use JWT Authentication in an App using .net 8 so i have configured Program.cs like this: builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer( authenticationScheme:…
Azure Function .Net8 Json Deserialization Error
I'm developing an azure function in .Net8 which is a migration from a .net6 in-process function. The code always breaks while trying to deserialize a json object that comes within the EventGridEvent.Data which triggers the function, the deserialization…
ASP.Net Core Top-level Statements
I understand what this option does, but I'm wondering if this only applies when you first create a project. I can't find any option to disable top-level statements after the project has been created, and I can't see that VS stores this option. I would…
Under Posting Attack in .NET Core
In .NET 6 I have a DTO with value data types like int. But while sending a POST request if user omits the value for that default value is getting assigned without any Error. What are the best practices to avoid this under posting? I have tried using…
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…