Blazor REST API

https://learn-blazor.com/architecture/rest-api/ https://github.com/software-architects/learn-blazor/tree/master/samples/RestApi

Deploy Blazor App to Azure

Make sure you check the following before deploying to a Azure hosted web site. When creating a new App Service in Azure, you need to select either .NET 5 or .NET Core. When deploying from Visual Studio, deploy the .Server project and not the .Client project. Do not use Identity.

Pragim Technology Blazor Course Tutorial

https://www.pragimtech.com/blog/blazor/blazor-course-wrap-up/ This course is around 7 hours and consists of 58 clips. We have covered most of the blazor concepts that help you build real-world blazor applications. Setup and run Blazor application You can find the complete source code of the project that we have built as part of this course at the following link.... » read more

Blazor Date Field Binding

Two-way binding is having a bidirectional data flow, i.e., passing the value from the property to the UI and then from the view (UI) to the property. Blazor provides support for two-way binding using the bind attribute. Syntax for creating two-way binding property: Note: Must enclose “InputDate” field in a “EditForm”. Sources: https://www.syncfusion.com/faq/blazor/data-binding/how-to-make-two-way-binding-with-input-date-value https://www.pragimtech.com/blog/blazor/blazor-datepicker/

Blazor CORS Error

Error: Get the following error when trying to access api call from external sites. Access to fetch at xxxx from origin xxxx has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with... » read more

The type or namespace name ‘ServiceContractAttributeAttribute’ does not exist in the namespace ‘System.ServiceModel’

Error: After generating a connected service from WCF, you get the following error during compile… The type or namespace name ‘ServiceContractAttributeAttribute’ does not exist in the namespace ‘System.ServiceModel’ Fix: Add the following from NuGet… System.ServiceModel.Primitives System.ServiceModel.Http Sources: https://stackoverflow.com/questions/45545013/system-servicemodel-not-found-in-net-core-project

Blazor client-side and WCF

Core does not support WCF very well instead of not at all. Especially in terms of authentication and security, such as the service created by using WS* binding.  I suggest you re-construct your server project with BasicHttpBinding or using Asp.net WebAPI to create the backend service. WCF is not supported in .NET Core out of... » read more