Josh
Josh

Reputation: 3611

How to create an ASP.NET application with a default web.config?

I am creating an ASP.NET 2.0 application (using C#), and for some reason when I create the initial application it doesn't create the web.config file. Is this normal? I haven't touched ASP.NET in some years so I am a little rusty. I tried creating the web.config manually but can't seem to get it just right. How can I create an ASP.NET application with a bundled web.config file? Thanks.

Upvotes: 2

Views: 576

Answers (3)

user268043
user268043

Reputation:

I found that the easiest way is just to hit F5.

Upvotes: 0

ram
ram

Reputation: 11626

I use VS2008 and when I hit F5, VS asks me if I want to create a default web.config (if one is not already present). What tools are you using for development ?

Upvotes: 1

wsanville
wsanville

Reputation: 37516

From the Website menu, go to Add New Item, and pick "Web Configuration File." That will give you a vanilla web.config that you can start with.

Visual Studio will not create a web.config file for you if you create an Empty Web site, so that would be normal behavior. Otherwise, it will create one for you.

Upvotes: 2

Related Questions