Asp.net| program |asp.net How to set up debugging for the ASP.net application (including remote debugging)
Depending on your type of debugging and operating system selection, please do not reverse the following steps (if not, set from the beginning)
PS: Because I write this draft, with the win 2003, Win2000 traditional version + Visual Studio.NET 2003 English version, so grabbed down the diagram and description is not the same, but these "properties" position is unchanged
First, local debugging
A. Windows 2000 operating system
1, open vs.net tool options → Project Web settings →web Server connection →forntpage extension
2, the user's group → delete "(192.168.0.1) Admins" user group (may not be IP, is the computer name, there is no need to delete)
3, right click "My Computer" → management → service and application →internet Information Management Server (IIS) → Right-click "Default Web Site" All tasks → remove server Extensions
4, under the MS-DOS command Run "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_regiis.exe-i" (here may also be "C:\WINNT\Microsoft.NET\ Framework\ v1.1.4322\aspnet_regiis.exe-i "), and then in" C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Config\machine.config "File found" <processmodel .../> "username=" Machine "" to "Username=" "".
5, in the 3rd step, in the "All Tasks" → "Configure Server Extensions" Complete the wizard will prompt you to create a local user group "(192.168.0.1) Admins → Refresh the user group to see, and then add the group members
6, right click "Internet Information Service" → properties → server Extensions → "Allow the author upload executable program";
7, check the "C:\inetpub\wwwroot" folder (Note that this is the site root directory, must be NTFS format) security attributes, which should have "(192.168.0.1) Admins" user group, did not add, and attach the corresponding power
8, run vs.net, the new project will have user name and password prompt box, input (192.168.0.1) Admins Group members of the corresponding account and password (user password can not be empty, if the account no password please add)
B. Windows 2003 operating system
1, ditto
2, right click "My Computer" → management → service and application →internet Information Management Server (IIS) → site → Right-click "Default Web Site" → All tasks → delete Server Extensions 2002→ will open a Web page, enter "Admin Istrator "and password, done by step
3. Run "C:\windows\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe–i" under MS-DOS command
4, right click the "Default Web site" → All tasks → set up the Server Extensions 2002→ then click on the top left corner of "management" → change anonymous access → select "Open", "participant"
5, complete the above 4 steps, only the members of the Administrators user group have permission to debug, other users debugging, please refer to "Remote debugging"
Second, remote debugging
First, the prerequisites for remote debugging are described first:
1, the WEB server needs to be able to debug local conditions
2. The WEB server needs to install the Visual Studio. NET remote component, and the client only needs a "full remote debugging"
A. Windows 2000 operating system
1, you need to have a WEB server account, the account should at least be "Debugger users" "Webadmins" two members of the user group (here I create a "cityhunter" account, "Web Admins" is set up when local debugging created)
2, in the "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Config\machine.config" file on the server to find "<processmodel .../>" Username "set to" Cityhunter "," password "set to" 123456 ". Then reboot the server (do not know if you can restart IIS)
3, the user must be the user name: "cityhunter" Password: "123456" account log in to the client computer. This is critical for servers and clients in the same workgroup user!! The reason may be that when the WEB server detects an account, it is only the account and password of the current client computer user, and not the account and password entered when the project is opened.
B. Windows 2003 operating system
1, the establishment of a "Cityhunter" account number, the password is "123456" to add it to the "Debugger users" user group
2, right click "My Computer" → management → service and application →internet Information Management Server (IIS) → site → right click "Default Web Site" → Add →server Extensions 2002 admin → will open a page, enter "Admini Strator "and password, completed by steps, and finally this account should be at least two working groups
3, right click "My Computer" → management → service and application →internet Information Management Server (IIS) → application pool → Right-click "DefaultAppPool" → properties → authentication → specified as "cityhunter". Reboot after completion.
4, the user must be the user name: "cityhunter" Password: "123456" account log in to the client computer. To debug a WEB server's project.
After the above settings are completed, debugging, you can see "W3wp.exe" in the server "Task Manager" (Win 2000 is "aspnet_wp.exe") "Vs7jit.exe" is run as "Cityhunter" identity. It should be noted that the company's firewall can not block the above program communication.