King TMK 🎗
King TMK 🎗
CC#
Created by King TMK 🎗 on 2/10/2025 in #help
✅ CSS styles not loading on "Local" environment, only "Development"
I'm creating an application with razor pages. Everything went fine until I decided to switch from "Development" to "Local" for the environment in launchSettings.json. Now the website has no styles and my static files (css, js) are all empty when viewed in the browser. How do I fix this? Help really appreciated
39 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
Why is it that only the plain span is being styled and not the asp span? How can I fix this?
<span class="danger" asp-validation-for="SomeModel.Number"></span>
<span class="danger">some span</span>
<span class="danger" asp-validation-for="SomeModel.Number"></span>
<span class="danger">some span</span>
span.field-validation-error,
.field-validation-error,
.danger,
span {
background: green;
}

.danger {
color: yellow;
}
span.field-validation-error,
.field-validation-error,
.danger,
span {
background: green;
}

.danger {
color: yellow;
}
32 replies
CC#
Created by King TMK 🎗 on 11/21/2024 in #help
✅ Razor pages template gives me an immediate build error
Why is it telling me "The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Microsoft.AspNetCore.Identity'" right after I generated a Razor pages project template with single user authentication enabled? How do I fix this?
39 replies