Join Nate Barbettini for an in-depth discussion in this video Understand web.config, part of Deploying ASP.NET Core Applications.
- [Instructor] You may have noticed…that there's a web.config file…in the directory along with your published binaries.…It plays an important role,…but maybe not the one you expect.…If you've used ASP.NET in the past,…you're probably familiar with using web.config…to store configuration for your application.…ASP.NET Core doesn't web.config…because it uses a new configuration model instead.…So, why is web.config in this folder?…It turns out that IIS still needs web.config…even if ASP.NET Core isn't using it.…Web.config is used to configure…the ASP.NET Core module that IIS uses…to act as a reverse proxy to cast rule.…
It's important that web.config exists…in the root of the published directory.…It's required for IIS to properly host…your ASP.NET Core applications,…and it also prevents IIS from accidentally…serving the content from the Project directory,…which could contain sensitive configuration files.…So, you don't want to remove it.…Visual Studio and dotnet publish…both use a tool called publish-iis…to generate the web.config file for you automatically.…
- Setting up your ASP.NET project
- Setting up IIS
- Creating an IIS site and app pool
- Publishing your app with Visual Studio or the command line
- Deploying to Azure
- Deploying to Linux
- Deploying with Docker
Skill Level Intermediate
1. Get Started
2. Deploying to IIS
3. Deploying to Azure
Get started with Azure1m 4s
4. Deploying to Linux
5. Deploying with Docker
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.