Web config missing when creating asp net core web app in vs 2017 rc

Introduction

When creating an ASP.NET Core web app in Visual Studio 2017 RC, you may encounter an issue where the web.config file is missing. This can cause problems as the web.config file is essential for various aspects of your web application. In this article, we will explore the possible solutions to this problem and provide examples to help you resolve it.

Possible Solutions

There are a few possible solutions to the issue of the web.config file missing when creating an ASP.NET Core web app in Visual Studio 2017 RC. Let's explore each solution in detail.

Solution 1: Manually Add the Web.config File

If the web.config file is missing, you can manually add it to your project. To do this, these :


1. Right- on your project in Visual Studio and select "Add" > "New Item".
2. In the "Add New Item" dialog, search for "Web Configuration File" and select it.
3. Click on the "Add" button to add the web.config file to your project.

Once you have added the web.config file, you can configure it according to your application's requirements.

Solution 2: Use the Default Web.config File

If you are creating an ASP.NET Core web app the default template in Visual Studio 2017 RC, the web.config file should be automatically generated for you. However, if it is missing, you can try the following steps:


1. Right-click on your project in Visual Studio and select "".
2. In the "Properties" window, navigate to the "Debug" tab.
3. Under the "Web Server Settings" section, check the "Use Local IIS Web server" option.
4. Click on the "Create  Directory" button.

This will create a default web.config file for your project. You can then modify it as needed.

Solution 3: Visual Studio

If you are still facing the issue of the web.config file missing, it is possible that there is a bug in the version of Visual Studio you are using. In this case, updating Visual Studio to the latest version may resolve the problem. To update Visual Studio, follow these steps:


1. Open Visual Studio and go to the "Help" menu.
2. Select "Check for Updates" from the  menu.
3. Follow the prompts to install any available updates.

After updating Visual Studio, create a new ASP.NET Core web app and check if the web.config file is now present.

Conclusion

The issue of the web.config file missing when creating an ASP.NET Core web app in Visual Studio 2017 RC can be frustrating. However, by following the solutions provided in this article, you should be able to resolve the problem and successfully create your web application. to always keep your development tools up to date to avoid any potential bugs or issues.

Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *

Table of Contents