How to enable IIS to support aspx and add web service extension methods, which cannot be debugged

Source: Internet
Author: User
Tags server port

1. Enable IIS to support aspx and add web service extension methods

Open IIS, go to the local computer, right-click "default website", click "all tasks", and click "add web service extension". In this way, Web Service extension is available, this IIS also supports ASPnet.

If the Web service extension does not support ASPnet, continue with the following method:

1. register the Asp.net component first: (ASP. NET Component:. NET Framework)

Start-> Run-> cmd-> execute the command:

C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_regiis.exe-I (Your. NET Component location)

Ii. Enable ASP. net service in Web Service extension:

IIS-> Local Computer-> Web Service extension-> Asp. Net v2.0.5072: Allow

3. Create a virtual directory in IIS

IIS-> Local Computer-> website-> default website, right-click-> Create "virtual directory"-> get a name-> browse the directory of your Aspx file, OK

4. Click the new virtual directory-> On the right side, right-click the aspx file-> browse

Summary: in fact, it is generally not possible to install IIS first and then install the. NET Framework. If you install. Net first and then install IIS, this error will occur.

2. The vs2005 Asp.net Development Server fails to start listening on the port (which cannot be debugged). The solution is to change the debugging port.

>>> Step 1
[Tools]-> [External tools]-> press [add] And Enter:
1) Title: Web server port: 8080
2) command: C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727 \ webdev. webserver. exe
3) parameter:/port: 8080/path: $ (projectdir)
4) [Use Output Window] selected

>>> Step 2
Click the "Web server port: 8080" option that appears in the "Tools" menu after Step 1 to activate the custom web server, after activation, an "Asp.net Development Server" icon appears in the lower right corner of the window.

>>> Step 3
Right-click the website and choose Properties> Start Options> use custom server. Enter http: // localhost: 8080 in the base URL.

>>> Step 4

Remember to change the running port on the IIS of the website or project to 8080: IIS -- find your project website and right-click and change the port to 8080,

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.