debugger setup for Web Application VS2005/IIS7/Vista April 20, 2010
Posted by lemonpress in Debugging ASP.NET.trackback
Web Application Project/Properties (Project, not Solution) is the main config place for debug
Build>Configuration> Active(Debug) —-> try All configurations too
Build > General > Defing debug Constant (unchecked)
Build > General > Define trace Constant (checked)
Build > Output > bin\
Web > Start Action > try variations:
- Specific Page equivalent to Solution explorer > RClick Page.aspx > Set as Start Page
- Current page – page.aspx[.cs] displayed in Active tab in VS editor.
- Try other variations
Web > Servers
- Option 1: Use Visual Sudio Development Server > auto-assign port/Specific Port; Enable Edit and Continue (checked) – this is what it should normally be
- Option 2: Use IIS Web Server
Previously this fixed the problem but now it doesn’t work
1. c:\Windows\system32\drivers\etc\hosts commented out
1. c:\Windows\system32\drivers\etc\hostscommented out#::1 localhost2. removed env varFP_NO_HOST_CHECK
Debugging web application using IIS Web server
Install the IIS 6.0 Management Compatibility Components by using the Windows Vista Control Panel
- Control Panel, click Programs and Features, and then click Turn Windows features on or off (LHS).
- Open Internet Information Services.
- Open Web Management Tools.
- Open IIS 6.0 Management Compatibility.
- Select the check boxes for IIS 6 Metabase and IIS 6 configuration compatibility and IIS 6 Management Console.
- Click OK.
http://www.activexperts.com/support/activmonitor/online/ii6metabase/
http://learn.iis.net/page.aspx/125/metabase-compatibility-with-iis-7/
http://blog.scrappydog.com/2008/06/enabling-iis-6-metabase-compatibility.html
http://americanparanoia.com/wconnect/weblog/ShowEntry.blog?id=493
Change Security Settings for IIS
- Control Panel, click Programs and Features, and then click Turn Windows features on or off (LHS).
- Internet Information Services
- Security
- check Windows Authentication & basic Authentication
- open in IIS7 manager
- click web site virtual directory, e.g. museumoflondon
- in Features View/Security/Authentication select Windows & Basic Authentication “Enable”
In VS Web Application project/Properties/Web
- check radio button “Use IIS Web Server”
In web.config
<configuration><system.web>
<compilation debug=”true” />
<authentication mode=”Windows” />
VS Top Menu places relating to debugging
Project > Set as Startup Project
Build > Configuration Manager >Properties
Project=museumoflondon
Configuration = Debug
Platform= Any CPU
Build = True
Tools > Options > Debugging > General
Enable Source server Support; Print source server diagnostic messages
View > Toolbars > debug, Debug Location
Project > ASP.Net Configuration > Application Configuration > Debugging and Tracing > Configure Debugging and tracing > Tick Enable debugging
Ticking more options will display lots of logging info in the browser on aspx page invocation
Project config places relating to Debug
D:\vs_projects\museumoflondon\museumoflondon\museumoflondon.csproj.user (also contains debug settings)
D:\vs_projects\museumoflondon\museumoflondon\museumoflondon.csproj
Delete crap
D:\vs_projects\museumoflondon\museumoflondon\bin
D:\vs_projects\museumoflondon\museumoflondon\obj
D:\vs_projects\museumoflondon\museumoflondon\App_Data
C:\Users\julia\AppData\Local\Microsoft\WebsiteCache
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
More on MSDN: Debugging in VS2005
http://msdn.microsoft.com/en-us/library/sc65sadd%28v=VS.80%29.aspx
http://msdn.microsoft.com/en-us/library/e8z01xdh%28VS.80%29.aspx
Comments»
No comments yet — be the first.