In Visual Studio 2005, use the <Project> Property Pages to set project properties for Web application debugging by doing the following:
- Open the Property Pages by right-clicking the project name in Solution Explorer, and selecting Property Pages.
- Click the Start Options tab.
- Under Debuggers, make sure the ASP.NET box is selected.
- <compilation> tag. This marks the beginning of the <compilation> section.
- Inside the <compilation> tag, you will create the debug attribute.
- Attributes are case sensitive, so be sure to specify "debug", not "Debug" or "DEBUG."
- Set debug to true.
<system.web>
<compilation defaultLanguage="VB"
debug="true"
numRecompilesBeforeAppRestart="15">
<compilers>
<compiler language="VB;VBScript"
extension=".cls"
type="Microsoft.VisualBasic.VBCodeProvider,system, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
< compiler language="C#;Csharp"
extension=".cs"
type="Microsoft.CSharp.CSharpCodeProvider,system, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilers>
<assemblies>
<add assembly="ADODB" />
<add assembly="*" />
</assemblies>
<namespaces>
<add namespace="System.Web" />
<add namespace="System.Web.UI" />
<add namespace="System.Web.UI.WebControls" />
<add namespace="System.Web.UI.HtmlControls" />
</namespaces>
</compilation>
</system.web>
</configuration>