I'm fairly new to Visual Studio's approach to web application development, so please be patient while I figure out how it relates (or parallels) PHP or Java development. (Or not: it can be completely different; I'm just getting started here!) Your kind help is really appreciated here!
This really neat-o web app has fallen into my lap, and it includes all sorts of plug-ins and stuff, such I cannot (with any degree of success) move the WebApp from the VS2008 development machine to my (more modern) VS2010 dev machine. As I come to understand Visual Studio's approach to web application development, this may change. But that's not the problem: it's just the environment.
(The application is broken, and needs a few debugging runs to figure out where code needs adjustment to take into account changes to the business model, to adapt the WebApp to meet new requirements in our ever-changing business.)
Here's the problem: In order to debug this WebApp, I need to successfully compile it: to this end I click the green arrow button (labelled "Start Debugging") and Visual Studio begins to chug along, compiling the application. It builds, then Validates Web Site, then breaks at a line "<authentication mode="Windows"/>" in the [web.config] file, giving me the following error
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
This is a bit frustrating, as I'm running in debug in Visual Studio. I realize it's running a local instance of the ASP.Net Development Server, but it's fouling on machine-generated code! VS builds that - it's right under the paragraph:
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
...and since none
of my predecessors have ever
documented the first line of code ("...if it was difficult to write, it should be difficult to understand...
"), I figure that Visual Studio is responsible for pretty much everything in the [web.config] file.
In previous experience with Visual Studio, I just hit the green (arrow) button, the app churns in the compiler for a few seconds or so, then everything runs (normally) until we hit the first breakpoint (or error). Only this is blowing up before it ever gets started. Have I missed something, or did I do something wrong? Or is there a step in the Visual Studio WebApp development that I've missed?
I'm seriously confused, and not a little frustrated. Thanks for your time and attention!