使用IIS7在本地运行.NET和经典ASP [英] Running both .NET and classic ASP locally using IIS7

查看:68
本文介绍了使用IIS7在本地运行.NET和经典ASP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台Windows 7开发机,我的旧应用程序同时使用ASP.NET和经典ASP.

I have a windows 7 development machine, and my legacy application uses both ASP.NET and classic ASP.

我该如何配置IIS7,以便可以在本地运行此应用程序?

What can I configure IIS7 so I can run this application locally?

当前,每当我需要测试ASP代码更改时,都必须推送到其他服务器.

Currently anytime I need to test ASP code changes, I have to push to a different server.

推荐答案

我们在工作中做到了这一点.我们发现您无法共享经典的ASP和.Net应用程序池.因此,请确保您的经典网站和.Net网站使用不同的应用程序池.

We do this at work. We found that you cannot share classic asp and .Net application pools. So make sure that your classic and .Net sites use different application pools.

将经典池配置为在.Net Framework下具有无托管代码",并将托管管道设置为经典".配置.Net应用程序池以使用您正在使用的任何框架,并对托管管道使用集成".对我们来说,这些设置非常有用.

Configure a classic pool to have "No Managed Code" under .Net Framework and set Managed Pipeline to "Classic." Configure the .Net application pool to use whatever framework you are using and use "Integrated" for the managed pipeline. For us these settings work great.

如果要在一个文件夹中共享Classic和.Net.右键单击经典站点,选择管理网站",然后选择高级设置...",然后选择经典应用程序池.然后,请确保在左侧窗格中浏览到站点的.Net部分.转到具有.Net的文件夹,右键单击它,然后在下一个对话框中选择转换为应用程序",选择为.Net设置的应用程序池.

If you are sharing classic and .Net under one folder. Right click on the classic site, choose "Manage Web Site" then "Advanced Settings..." and choose the classic application pool. Then make sure to browse to .Net portion of the site in the pane on the left. Go to the folder that has .Net, right click on it, and choose "Convert to Application" in the next dialog choose the application pool you set up for .Net.

这篇关于使用IIS7在本地运行.NET和经典ASP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆