使用visual studio 2005调试.asp页面

时间:2021-10-24 01:31:49

I'm migrating a website made in classic asp to asp.net, but the asp.net dev server doesn't handle .asp pages.

我正在将经典asp制作的网站迁移到asp.net,但asp.net dev服务器不处理.asp页面。

Is it possible to make it run .asp pages? Maybe a custom httphandler for .asp?

是否可以让它运行.asp页面?也许是.asp的自定义httphandler?

thanks!

5 个解决方案

#1


6  

Are you running Winxp with IIS installed? If so, here's what I do: hit the asp pages in the browser using your local IIS, and then open the folder where the ASP pages reside as a website project in VS. Go to the Debug menu, choose Attach to Process, and then look for the dllhost.exe process that is running under the IWAM_MACHINENAME user. You also have to make sure the you have setup the virtual directory to allow ASP server-side debugging. After attaching to that process, you can set breakpoints, etc. as usual.

您是否在安装了IIS的情况下运行Winxp?如果是这样,这就是我所做的:使用本地IIS点击浏览器中的asp页面,然后打开ASP页面所在的文件夹作为VS中的网站项目。转到“调试”菜单,选择“附加到进程”,然后查找在IWAM_MACHINENAME用户下运行的dllhost.exe进程。您还必须确保已设置虚拟目录以允许ASP服务器端调试。附加到该过程后,您可以像往常一样设置断点等。

#2


0  

The last time I had to debug asp pages I found it was easier to insert a bunch of Response.Write()'s. If you cant find a way to do it in VS, then this may help.

我最后一次调试asp页面时发现插入一堆Response.Write()更容易。如果你无法在VS中找到办法,那么这可能有所帮助。

#3


0  

Unfortunately you will have to use traditional (or arcane!) methods to debug your asp pages in VS2005 (i.e. alert(), response.write() etc.)

不幸的是,您将不得不使用传统(或奥术!)方法来调试VS2005中的asp页面(即ale​​rt(),response.write()等)。

#4


0  

Possibly not what you want to hear, but vs2005 doesn't support this. It was re-added into vs2008. Perhaps one of the free vs2008 express edtions might get you out of this hole?

可能不是你想听的,但vs2005不支持这个。它被重新添加到vs2008中。也许免费的vs2008快递之一可能会让你走出这个洞?

#5


0  

In addition to the answer provided by patmortech I would recommend that if you are testing a mixed tech site you attach to aspnet_wp to debug the .NET portions of the app. This is also true if your app uses third-party ISAPI filters.

除了patmortech提供的答案之外,我建议如果您正在测试混合技术站点,请附加到aspnet_wp以调试应用程序的.NET部分。如果您的应用使用第三方ISAPI过滤器,也是如此。

The Cassini server is good for pure .NET only.

Cassini服务器仅适用于纯.NET。

#1


6  

Are you running Winxp with IIS installed? If so, here's what I do: hit the asp pages in the browser using your local IIS, and then open the folder where the ASP pages reside as a website project in VS. Go to the Debug menu, choose Attach to Process, and then look for the dllhost.exe process that is running under the IWAM_MACHINENAME user. You also have to make sure the you have setup the virtual directory to allow ASP server-side debugging. After attaching to that process, you can set breakpoints, etc. as usual.

您是否在安装了IIS的情况下运行Winxp?如果是这样,这就是我所做的:使用本地IIS点击浏览器中的asp页面,然后打开ASP页面所在的文件夹作为VS中的网站项目。转到“调试”菜单,选择“附加到进程”,然后查找在IWAM_MACHINENAME用户下运行的dllhost.exe进程。您还必须确保已设置虚拟目录以允许ASP服务器端调试。附加到该过程后,您可以像往常一样设置断点等。

#2


0  

The last time I had to debug asp pages I found it was easier to insert a bunch of Response.Write()'s. If you cant find a way to do it in VS, then this may help.

我最后一次调试asp页面时发现插入一堆Response.Write()更容易。如果你无法在VS中找到办法,那么这可能有所帮助。

#3


0  

Unfortunately you will have to use traditional (or arcane!) methods to debug your asp pages in VS2005 (i.e. alert(), response.write() etc.)

不幸的是,您将不得不使用传统(或奥术!)方法来调试VS2005中的asp页面(即ale​​rt(),response.write()等)。

#4


0  

Possibly not what you want to hear, but vs2005 doesn't support this. It was re-added into vs2008. Perhaps one of the free vs2008 express edtions might get you out of this hole?

可能不是你想听的,但vs2005不支持这个。它被重新添加到vs2008中。也许免费的vs2008快递之一可能会让你走出这个洞?

#5


0  

In addition to the answer provided by patmortech I would recommend that if you are testing a mixed tech site you attach to aspnet_wp to debug the .NET portions of the app. This is also true if your app uses third-party ISAPI filters.

除了patmortech提供的答案之外,我建议如果您正在测试混合技术站点,请附加到aspnet_wp以调试应用程序的.NET部分。如果您的应用使用第三方ISAPI过滤器,也是如此。

The Cassini server is good for pure .NET only.

Cassini服务器仅适用于纯.NET。