You had published and deployed your application to the web, and the default error page that ship with the template will give the following instruction. Which means the user will see the same page when an error occurred. Best practice is to change the instruction into something more instructive for Continue Reading
Changing the environment variable in Asp.net core 6 – Visual studio 2022
In Visual Studio 2022 access to the environment variables had changed from the previous version. The management of launch profiles has moved to a dedicated dialog. it may be accessed via a specific link. This link is Accessible under Project properties > Debug > General The default vs 2022 environment Continue Reading
docker-compose files
docker-compose.yml docker-compose.override.yml
Blazor Sever Docker file
System.ArgumentException: ‘The path must be absolute’
Getting this error because you are trying to Host Blazor Server on Docker Choosing Production environment over Development Environment and specifying the certificate path used by Kestrel , will not give you ‘The path must be absolute’ and everything will work fine. Why talking about Kestrel? Switching to Production environment, Continue Reading
There was an error trying to log you in: ‘ (500)’
Troubleshooting This error happens at first place if the database doesn’t exist in your database server. To fix the error: Update the connection string in your appsettings.json and set the correct database server name, username, and password. you can skip this step, if using localdb Execute Add-Migration (if needed). Execute Continue Reading
Blazor WebAssembly Search Engine Optimization (SEO)
Blazor server seo is not complicated as Blazor WebAssembly seo. When it comes to Blazor server seo, to optimize for seo just we need to choose the rendering mode to be server prerendering. But, for WebAssembly seo the rendering mode will be WebAssembly prerendering. In addition to this, we need Continue Reading
nofollow and sponsored links
Link to other page is created to facilitate navigation on local site, but what about creating external links for advertisement and affiliate marketing ? rel=”nofollow”, or rel=”sponsored” added to link, tell crawler to not follow the link. For instance, this External Link contains “nofollow”. The HTML description for the link Continue Reading