Considerations for debugging Web projects with vs2005 in Vista IIS 7 application Tips

Source: Internet
Author: User

Debugging the WEB project core with vs2005 in Vista IIS 7 addresses the following issues:
1, Vista's own security in the user Account Control (UAC)
2, install the necessary IIS7 components.
3, Vista with the IIS7 and IIS 6 at the bottom of the changes, how we let IIS7 in a compatible IIS6 mode of operation. Because VS2005 does not support IIS7.
The screenshot below shows how to configure these points to ensure that VS2005 can debug the IIS based Web project in the Vista operating system.

First, install the necessary IIS7 components

IIS7 is broken into a number of components that are not installed by default and you need to install these components.

The following figure corresponds to the function, which can be opened by:
Start--> Control Panel--> program--> turn Windows features on or off



1, VS2005 does not recognize IIS7, to let it identify IIS7, you need to install a IIS7 plug-in: IIS6 management compatibility;

2. IIS default security: In VS2005, if you want to debug a site, you must have integrated Windows authentication

The other two, in some cases, can also be used:

Digest authentication uses a Windows domain controller to authenticate users who request access to content on the WEB server.

Basic authentication requires a user to provide a valid username and password to access content.

3, to debug asp.net of course to install the IIS support asp.net components.

Second, configure IIS7

1, IIS7 After installing the above components, some features are not enabled, you need to enable it:

The following configuration features you can

Control Panel--> Management tools-->internet Information Services (IIS) Manager program

After you open Internet Information Services (IIS) Manager, in the lower part of the middle section, you can see the authentication configuration entry, which is the following interface:

Just a few of our additional authentication needs to be enabled on the site you want to debug.

Note: It is the site you want to debug, not the application directory you want to debug!

2, the IIS7 application pool settings

The IIS application pool is divided into two types based on the managed piping pattern: integration and Classic

In integrated. NET mode, applications should not specify ASP.net module components in the <system.web>/

The classic. NET pattern is the way we used to be in IIS 6 without the above restrictions.

After all, now that Longhorn Server is far away from us, we certainly want to be compatible with the IIS6 mode of window 2003, so we need to modify the site's application pool settings, as shown below:

My screenshot above is to use the existing Classic mode of the application pool, you can also build a classic model of the application pool, and then use the map to configure the corresponding site to use this classic mode of application pool.

Third, the start of the VS2005.

Because of Vista User Account Control (UAC), we should run Vista as an administrator in order to avoid the problem of not having permissions in debugging. The following figure:


Resources:

enabling ASP.net 2.0 debugging on Visual Studio, IIS 7.0 and Vista
Http://www.thousandtyone.com/blog/EnablingASPNET20DebuggingOnVisualStudio2005IIS70AndVista.aspx

Tips and tricks: using Vista IIS7 in VS 2005
Http://weblogs.asp.net/scottgu/archive/2006/09/19/Tip_2F00_Trick_3A00_-Using-IIS7-on-Vista-with-VS-2005.aspx
Running Web applications on Windows Vista with Visual Studio 2005
http://msdn2.microsoft.com/en-US/library/aa964620 (vs.80). aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.