322 questions
0
votes
1
answer
25
views
How do I set default document for an ASP.NET Core 8 web app in Azure App Services?
First time experimenting with creating an ASP.NET Core 8 web application in Visual Studio Code. I chose .NET 8 because it's the newest version. I am deploying it via Azure App Services. I am very ...
1
vote
0
answers
39
views
C# ASP.NET Core 8 server WebSocket sometimes hangs at ReceiveAsync() when data is available
I have a server application build with ASP.NET Core 8 using the WebSocket middleware.
I use websockets to send messages between a client and the server, in this case it is used to send audio from the ...
0
votes
0
answers
36
views
Reliable way to authenticate our Azure Function againt SharePoint list, using Azure Function managed identity
I have an Azure Function which we enabled its managed Identity, as follow:-
then we run those commands, to allow the azure function to access SharePoint using the Azure Function managed identity, ...
0
votes
0
answers
63
views
Is it OK to use "Microsoft.Data.SQL" & "Microsoft.Graph" inside our Azure Function in .NET 8? Or there are other packages?
I am working on an Azure Function running on .NET 8.0, and we are currently using those 2 packages:
Microsoft.Data.SQL
Microsoft.Graph
We need these mainly to interact with a SQL Server database in ...
0
votes
0
answers
31
views
Invoking IWebHostBuilder.UseStartup<Startup>() in an ASP.NET Core 8 project generates CS0246 (Startup could not be found)
I am trying to make a web application in .NET 8. I am following a Microsoft Learn tutorial for adding Entity Framework Core: https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro?view=...
0
votes
1
answer
36
views
Azure DevOps Pipeline: changes not reflected after ASP.NET Core 8 MVC deployment to Azure web app
I'm deploying an ASP.NET Core 8 MVC appm, deployed to an Azure web app using Azure DevOps. The pipeline runs without errors, but the latest changes don't show up on the live site, even though the ...
0
votes
1
answer
52
views
Global handle exception .NET 8
I'm working on a fairly standard ASP.NET Core 8 Web API project. I added a module to globally capture exceptions, and it works fine. But now I'm trying to standardize the responses in the controllers ...
1
vote
0
answers
28
views
Issues with Implementing "Remember Me" functionality in ASP.NET Core 8 MVC
I am working on an ASP.NET Core 8 MVC app and trying to implement a "Remember Me" functionality in the login action. However, when I add these lines of code:
var claims = new List<Claim&...
0
votes
1
answer
44
views
Best practice for nested view models in ASP.NET Core 8?
I'm pretty new to web dev and have a question about how to best structure the project in currently working on. The project uses Entity Framework and ASP.NET Core 8 MVC.
In my database I have the ...
0
votes
2
answers
28
views
Form tag helper generating a key-value pair in action
I'm working on upgrading a .NET Framework 4.8 app to .NET Core 8.
Currently experiencing an issue where both Html.BeginForm and the form helper tag sometimes render the wrong action.
In Framework 4.8, ...
1
vote
2
answers
48
views
Blazor doesn't work in a Docker container
I have an ASP.NET Core 8.0 MVC (upgraded from .NET 6.0) project; it's working fine in a Docker container except for the pages that contain Blazor code. I'm getting an error
blazor.server.js:1 [2025-...
0
votes
2
answers
60
views
An operation started on this context before a previous operation completed
I am getting an error while running my ASP.NET Core 8 MVC app.
These are my controller methods hit by Ajax calls by Kendo controls:
public List<Location> GetLocations()
{
return _db....
1
vote
1
answer
47
views
Error 401: "The signature is invalid" al validar JWT en .NET 8
I am developing an API in .NET 8 and implementing authentication using JWT with Microsoft.AspNetCore.Authentication.JwtBearer.
The problem is that when I send the token in the Authorization header as ...
0
votes
1
answer
42
views
Commented javascript libraries in ASP.NET Core _layout.cshtml still getting called?
I deployed a new version of ASP.NET Core 8 web site (file deployment on IIS). Part of the web site uses the jQuery DataTable library and in the new version I used newer version of DataTable and ...
0
votes
1
answer
53
views
After ASP.NET Core 8 Identity SignOutAsync, the user doesn't have to provide credentials to external log in
When using Blazor's IdentityComponentsEndpointRouteBuilderExtensions.cs logout method:
accountGroup.MapPost("/Logout", async (
ClaimsPrincipal user,
...