简体   繁体   English

使用混合ASP.NET版本构建的调试应用程序

[英]Debugging application built with mixed ASP.NET versions

I am working on an application built using ASP.NET 1.1 but that invokes services built in ASP.NET 2.0. 我正在使用ASP.NET 1.1构建应用程序,但是该应用程序调用ASP.NET 2.0构建的服务。

Attempts to debug my code by setting a breakpoint and attaching the w3wp.exe process fail because IIS is running under ASP.NET 2.0. 通过设置断点并附加w3wp.exe进程来调试我的代码的尝试失败,因为IIS在ASP.NET 2.0下运行。

If I select ASP.NET 1.1 as the version in IIS then debugging works, but the calls to the 2.0 services (which are everywhere) causes the page to crash. 如果我选择ASP.NET 1.1作为IIS中的版本,则可以进行调试,但是对2.0服务(无处不在)的调用会导致页面崩溃。

Does anyone have a solution/workaround to this problem? 是否有人对此问题有解决方案/变通办法?

.NET 1.1 and 2.0 can't live both in the same process, so you must separate them. .NET 1.1和2.0不能同时存在于同一进程中,因此必须将它们分开。

Since you're speaking about w3wp.exe, it seems you're using Windows 2003 Server, which will make things easier. 由于您在谈论w3wp.exe,因此您似乎在使用Windows 2003 Server,这将使事情变得更容易。

Make sure there are two application pools on your server. 确保服务器上有两个应用程序池。 Put your 1.1 app in one pool, and the 2.0 web service in the other. 将您的1.1应用程序放在一个池中,而将2.0 Web服务放在另一个池中。

It will create two process, and you can debug them separately 它将创建两个过程,您可以分别调试它们

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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