Razor Pages/ ASP.NET CORE Routing Issue on Deployed Site (404 Error)

When I deploy my site it changes the generated anchor link for certain items. On my local server the link turns out to be http://localhost:49377/Recipe/1 and it works when I click it. On my deployed server it shows thedeployedsserver.net/Home/Index/1?page=%2FRecipe . It’s this link in the Menu.cshtml that changes: <h3><a asp-page=”/Recipe” asp-route-id=”@recipe.Id”>@recipe.Name</a></h3> I think it’s maybe…

ASP.NET Core 3 and 500.30 In-Process Startup Failure

My service targets the following frameworks: Microsoft.AspNetCore.App 3.0.0 Microsoft.NETCore.App 3.0.0 Everything runs fine locally. When I deploy to an App Service in Azure, I experience the following error: 500.30 In-Process Startup Failure Reading the documentation tells me perhaps these frameworks are not on the machine hosting my service. However I checked what frameworks are installed…

In Github actions work flow continuous integration how to build asp.net 4.5 in Github on code push?

I have created a build workflow on github Actions tab which will build the project on code push. I have created build.yml file something like this name: CI on: [push] jobs: build: runs-on: windows-latest name: Build steps: – uses: actions/checkout@v1 – name: Run a one-line script run: Run dotnet MyProjectName – name: Run a multi-line…

ASP.NET Core 3 and 500.30 In-Process Startup Failure

My service targets the following frameworks: Microsoft.AspNetCore.App 3.0.0 Microsoft.NETCore.App 3.0.0 Everything runs fine locally. When I deploy to an App Service in Azure, I experience the following error: 500.30 In-Process Startup Failure Reading the documentation tells me perhaps these frameworks are not on the machine hosting my service. However I checked what frameworks are installed…

ASP.NET conditional formatting based on value with JavaScript

I am new to both CSS and JavaScript, and I want to change the font color of this section of my .aspx file: #.aspx <script src=”~/CSS/traffic_lights.js” type=”text/javascript”></script> <!– This handles red/amber/green–> <div class=”Pr”> <h3>Say what you will about this number:</h3> <asp:Label ID=”lblResults2″ runat=”server” Font-Bold=”true”></asp:Label> </div> My attempt involves adding a .js script to my project…