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.
3 Answers
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.
1 Comment
Josh
Visual Studio 2005. My apologies for not specifying. I just needed to compile with F5 and then I was prompted. Thank you.