Skip to main content

All Questions

Tagged with
0 votes
1 answer
24 views

When trying to access view from Azure app service getting ERR_TOO_MANY_REDIRECTS, but works fine when run from Visual Studio

When trying to access view from Azure app service getting ERR_TOO_MANY_REDIRECTS, but works fine when run from Visual Studio. Using Asp.net Core 6 in Visual Studio 2022 with jQuery JavaScript Library ...
KevBarri's user avatar
  • 125
1 vote
1 answer
24 views

Can't edit the category by id, after creating the category on the same modal by one Upsert Action in Asp.net MVC

The problem is after successful creation, when I hover the Edit button, the link is correctly showing but when I click on the Edit button it is showing Add New Category that means create feature, ...
Maruf Hasnat's user avatar
0 votes
2 answers
76 views

How to resolve "Source not found" Error in Package Mapping Context in .NET

This is the error I'm facing while intalling any kind of package from the Dotner CLI. Is there any way to resolve this. All solution are appreaciated!! dotnet tool install --global dotnet-ef Unhandled ...
Trushaba B. Jadeja's user avatar
0 votes
1 answer
46 views

how to persist the state in react with local storage and useeffect?

i'm a beginner in react. i have a simple time tracking app. it has a simple interface. the problem is i have list of all employees which i am getting from the backend api in asp.net core. when i click ...
Hamd Mahmood's user avatar
1 vote
1 answer
64 views

Change Order of Tags using Swagger in C#

I´m currently changing our ASP.NET API to the OpenAPI format and thus I use Swagger to generate the API File automatically. There seems to be no way of defining the Order of these Tags globally. ...
Jonizn's user avatar
  • 13
0 votes
1 answer
53 views

IdentityServer 4: How to use ClientSecrets from c#-Code for authentication instead from database?

We are using the deprecated IdentityServer4. We have an client application and an IdentityServer. When the client application authenticates, the client sends it´s secret to the IdentityServer. The ...
Simon's user avatar
  • 4,714
1 vote
2 answers
84 views

ASP.NET Core 8 - how to set default page for each sub folder?

We have a asp.net core website using Razor without controller and I want to set default page for every sub folder. For example, the root folder is Pages, then we have Pages\Members folder, Pages\...
Robin Sun's user avatar
  • 1,580
1 vote
1 answer
121 views

InvalidOperationException: Unable to resolve service for type 'ApplicationDbContext' while attempting to activate

I am trying to run the Index page of Employees controller but once I play and run, it gives me this error as shown below, An unhandled exception occurred while processing the request. ...
Ammad Hassand's user avatar
-2 votes
2 answers
54 views

Sending the wrong value to the controller with Url.Action

I want to call an action in the controller in the view and I have to send a series of values ​​to the controller, but the action calls the controller but sends null values. please help me enter image ...
hrmsystem's user avatar
0 votes
1 answer
56 views

how to add two different log config files in startup.cs?

How to add two different log config files in startup.cs? We are trying to add two different config files as shown in the below code in startup.cs file under ConfigureServices(). But, we are facing an ...
vprudhvi's user avatar
0 votes
0 answers
36 views

Amadeus Hotel Search using Enterprise Soap API return 17|Session|No agreement on destination

I'm trying to connect to Amadeus Enterprise Api Via Soap in ASP.NET Core but getting an error: 17|Session|No agreement on destination. Below is the codebase I'm using. I have review the documentation ...
Esanju Babatunde's user avatar
0 votes
3 answers
88 views

SQL Server connection is getting established and not disposed through ADO.NET / C#

I am using the code shown here, to connect to SQL Server. This is working properly, but for the past 2 days, I am facing an issue where multiple connections (~2000) are getting opened and not getting ...
Vikas's user avatar
  • 334
0 votes
1 answer
129 views

dotnet dev-certs https --trust runtime error

dotnet dev-certs https --clean dotnet dev-certs https --trust throw an error There was an error exporting the HTTPS developer certificate to a file. Any help much appreciated?
Zinox's user avatar
  • 535
0 votes
2 answers
114 views

An error occured after adding the initial Migration while accessing the Microsoft.extension.hosting services

Once I have added my first Migration Add-Migration InitialMigration, it display this error below, An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the ...
Ammad Hassan's user avatar
0 votes
0 answers
66 views

Weird values for http.server.active_requests metric in .NET 8

I have ASP .NET Core 8 app. The app is hosted in Azure. I collect built-in metrics https://learn.microsoft.com/en-us/dotnet/core/diagnostics/built-in-metrics-aspnetcore?view=aspnetcore-8.0 using ...
Volodymyr V.'s user avatar

15 30 50 per page
1
2 3 4 5
677