I tried creating a asp.net core web application with mvc in visual code 2019 and as soon as I open it it showes me a lot of errors like in the picture. enter im
I am trying to create a dropdownlist and bind with viewbag using ASP.NET Core tag helpers. I can bind the dropdownlist using: @Html.DropDownList("Area_id",
My ASP.NET Core RazorPages project uses Webpack. I also want to use CSS Isolation. Every RazorPage Foo.cshtml has an associated css file Foo.cshtml.css. These
I have net6.0 project with minimal api and I would like to use NetwtonsoftJson instead of built in System.Text.Json library for serialization and deserializatio
.Net 6.0, EF, Asp.Net Core I'm trying to interrupt my web server's startup if the connection to the db could not be established. I'm thinking that the natural p
So I am using Firebase SDK to send push notifications to my android clients. On local IIS this is how I have configured FirebaseSdk. In Startup.cs I have Fir
I had an idea of changing a background color of a div when I click a button. I added a string in my 'Subject' model class as so: [NotMapped] public string Colo
I have an ASP.Net Core application, and I'm using Microsoft identity, I'm trying to add a page to manage users roles, in the action result i defined a variable
I've seen this question: How can I get the line number and file name from an exception in net Core? And tried the code, but it always says line 0 and no file na
What is the suitable service to provide email confirmation and password reset. i have tried smtp but after six attempts actually it considered those emails as s
I'm having trouble building docker containers on an Apple M1 The project uses sdk 2.2 which is incompatible with arm64 architecture. So I changed the sdk and as
Global query filters are very handy when implementing tenant and soft deletion features. But my problem is is that when i write a query with joins, for instance
So. I created a worker service and want to run it as windows service. It works locally. I installed it to windows server via powershell new-service command. Whe
UPDATE: It works fine is I add another parameter. I have no idea why. Not sure what I am doing wrong, this route looks the same as the other routes, I've looked
The project of .net core WebApi generate the right swagger when a class is generated in one DLL. this solution works fine, the project is compiled and the swagg
I'm unsure what I'm doing wrong when trying to map form values to my model, FieldMappingCollection. I've been able to get the Id and Name back for the model but
If you type http://google.com/ShowMeYourCustom404Page in your browser and then press Enter. You will be redirect to Google 404 Page. If we apply the same conce
There are some times where I have a user and would like to check whether they are in the organization that owns the item they are trying to access. Let's say th
We have a .NET Core Web API deployed as an Azure Web App. All endpoint work locally, however, once deployed, we have one controller that is gives us a 404 for a
I am creating Blazor app. If I navigate to homepage - page loads fine, then I navigate into article e.g. localhost/new-article. Next step is page refresh via F5