简体   繁体   中英

Debugging w/ Attach to Process Starts ASP.NET Dev Server

I'm developing an ASP.NET site off of my Windows XP IIS Installation, and whenever I tell visual studio to attach-to-process to the aspnet_wp.exe it starts a new instance of asp.net development server. Is there a way to make it not start asp.net development server since I don't need it to launch anything?

If you want to turn that off all you have to do is change the settings on the project file (using f4 to show the property grid). There is an option that says Always Start When Debugging , set that to false and you should be fine.

If you right-click the web project and select Properties, there is a Web tab. On there you can select the Server to use when debugging, by default it is set to the Visual Studio Development Server. You probably want to use the Local IIS Web Server instead.

如果要附加到IIS工作进程,则需要附加到w3wp.exe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM