Built-in Middleware Components in ASP.NET Core | Day 8 | Dot Net Tutorials | Pranaya Rout



Built-in Middleware Components in ASP.NET Core | Day 8 | Dot Net Tutorials | Pranaya Rout

Built-in Middleware Components in ASP.NET Core | Day 8 | Dot Net Tutorials | Pranaya Rout

Built-in Middleware Components in ASP.NET Core | Day 8 | Dot Net Tutorials | Pranaya Rout | Online Training

What is wwwroot folder in ASP.NET Core?
By default, the wwwroot folder in the ASP.NET Core Web Application is treated as the webroot folder, and this folder or directory should be present in the project root directory. In ASP.NET Core Web Application, the Static files can be stored in any folder under the webroot (wwwroot) folder and can be accessed with a relative path to that root.

Where must we store the Static Files in ASP.NET Core (.NET 6)?
In ASP.NET Core Application, the default directory or location for the static files is the wwwroot (webroot) folder; moreover, this folder or directory should be in the project root folder. By default, this is the only place where the ASP.NET Core application can serve the static files directly. But we can change this default behavior using the WebApplicationOptions Instance and WebRootPath property.

At the end of this video, you will understand the following pointers.
wwwroot Folder in ASP.NET Core
Where do we need to store the static files in ASP.NET Core?
What is wwwroot folder in ASP.NET Core?
How to Configure Static Files Middleware in ASP.NET Core Web Application?
How to use your own Webroot folder?
How to Configure Default Page in ASP.NET Core
What is Developer Exception Page Middleware?
How to use Developer Exception Page Middleware in ASP.NET Core Application?
How to Customize the UseDeveloperExceptionPage Middleware in ASP.NET Core?
Where do we need to configure the UseDeveloperExceptionPage Middleware?

Where do we need to Configure the UseDeveloperExceptionPage Middleware?
We need to configure the UseDeveloperExceptionPage() Middleware as early as possible in the application’s Request Processing Pipeline to handle the unhandled exception and then display the Developer Exception Page with detailed information about the exception.

Note: From .NET6, no need to configure developer exception page middleware explicitly. By default, the Framework will load the developer exception page if the environment variable is Development.

Text Document Links:
wwwroot Folder in ASP.NET Core: https://dotnettutorials.net/lesson/wwwroot-folder-asp-net-core/
Static Files Middleware in ASP.NET Core: https://dotnettutorials.net/lesson/static-files-middleware-asp-net-core/
Configuring Default Page in ASP.NET Core: https://dotnettutorials.net/lesson/configuring-default-page-asp-net-core/
Developer Exception Page Middleware in ASP.NET Core: https://dotnettutorials.net/lesson/developer-exception-page-middleware-asp-net-core/

You can contact us for live training using the Mobile Number, WhatsApp Number, and Email ID below.
Contact Number: 91 7021801173
WhatsApp Number: 91 7021801173
Email ID: [email protected]
Telegram Group: https://telegram.me/dotnettutorials

#BuiltInMiddlewareComponents #DotNetCoreBuiltInMiddlewareComponents #BuiltInMiddlewareComponentsDotNetCore #ASPDOTNETCore #DotNet #CSharp #DotNetCore #EntityFramework #EntityFrameworkCore #MSSQLServer #LINQ #dotnetcoreinterview #ADO #SOLID #DesignPattern #DotNetTraining #MVC #WebAPI #JOB #Interview #dotnetjob #dotnetinterview #dotnettutorials #pranaya #Developers

Comments are closed.