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,