Debug ASP. NET code in win7 + iis7.5

Source: Internet
Author: User

I. Register ASP. NET on iis7.5

After iis7.5 is installed with win7, many inexplicable errors are reported when you run the ASP. NET Website. It turns out that. NET is installed first, IIS is installed later, and Asp.net is not registered on IIS.

It's strange that. NET is not the son of Microsoft. Why can't it be supported by default? Your own operating system, your own product, and installation are required. In the past, 2003 and XP can still be understood. All of them are win7 and must be registered.

After searching for aspnet_regiis.exe, I found that there are two files on my system, one of which is 4.0 and the other is 2.0. I thought it would be better to be advanced and I registered the 4.0 file. Then the application corresponding to the website created on IISProgramPool

Yes. Net4.0.

2. Use an additional program for debugging. Select w3wp.exe.

.

Iii. Running on vs2008CodeYou must register 2.0 for debugging.

However, the defined breakpoint is not hit at all. Everything seems to have changed. At that moment, I shouted at Microsoft. Later I discovered that I should register ASP. net2.0, and then switch the website application pool to 2.0, so that I can hit it.

Microsoft products should be better and better. For example, this IIS seems complicated, but new sites can be added. Unlike XP, there can only be one site. When Vista and win7 came out, we all said that XP is already very useful. Why upgrade. However, XP, after all, was a product more than 10 years ago and cannot take advantage of the existing hardware. Now we are full of praise for win7, but Win8 is coming again, and it is also a buzz.

The human nature is like familiar things, greedy for ease and resistance to changes. We hate new things, but we want to hide our ignorance and weakness.

Related Article

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.