Choosing ASP.NET Core MVC vs Razor Pages: A Practical Decision Guide
Decide between MVC and Razor Pages for a new ASP.NET Core web app by weighing routing, boilerplate, and testability. Includes a side‑by‑side CRUD example and verification steps.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Decide between MVC and Razor Pages for a new ASP.NET Core web app by weighing routing, boilerplate, and testability. Includes a side‑by‑side CRUD example and verification steps.
Map each ASP.NET Core DI failure — missing registrations, scoped-from-singleton captures, circular dependencies, empty IEnumerable injections — to the check that confirms it and the fix that actually matches.
After changing the signature of the function ConfigureServices to be asynchronous (originally it was just a void synchronous function and the application worked perfectly fine), I get the following error: Unable to find the required services. Please add all the required services by calling IServiceCollection.AddAuthorization inside the call to ConfigureServi
Currently, I am using azure application insights directly for logging as given in this link Use latest version of Application Insight with .net core API and everything is working fine. But I need to use the serilog for logging now with the help of azure application insight. Even I do some R&D about serilog ( https://github.com/serilog/serilog-sinks-appli
I'm trying to get Microsoft configured as an external login provider in Identityserver4. I succeeded by following identity server's documentation with using AddMicrosoftAccount : services.AddAuthentication().AddMicrosoftAccount(microsoftOptions => { microsoftOptions.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme; microsoftOption
After migrating my Azure Functions project to .NET 5, it has started wrapping my responses in a weird wrapper class. For instance, consider the following endpoint: public record Response(string SomeValue); [Function("Get")] public async Task<IActionResult> Get( [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "get-something")] HttpRequestData
I am trying to connect my ASP.NET Core application that is targeting .NET framework with Azure Keyvault. On a new Azure VM that supports Identity everything works fine, but this application is hosted on a classic Azure VM that does not support Identity. I made the system environment variable AzureServiceAuthConnectionString which several other .NET framework
I have a ASP.NET Core 3.1 project like this sample: Sign-in a user with the Microsoft Identity Platform in a WPF Desktop application and call an ASP.NET Core Web API . I'm using Identity web version 1.0 and Azure AD, single-tenant application. I've edited the manifest adding appRoles since I'm requesting an application token only, and not a user token: [...
I have an existing Azure App Service running on ASP.NET Core 3.x. I have upgraded the application to today’s release of ASP.NET Core 5 . This works fine on my local IIS Express server. When I publish to the application to the App Service using Visual Studio 2019, however, I receive the following error: HTTP Error 500.31 - ANCM Failed to Find Native Dependenc
answered · 24 Feb 2023, 06:24 UTC