我有一个遗留的Classic ASP应用程序,正在迁移到IISMVC3。我让它们在ASP.NET 6(Windows2003)的虚拟目录中并行运行。
在我的HomeController中,我只有一个动作:
public RedirectResult Index()
{
// go to our Classic ASP application for the time being.
return Redirect("/default.asp");
}
这应该将用户重定向到default.asp,在那里Classic ASP应
我有以下方法来启动和停止服务。我从另一个控制台应用程序调用此方法进行调试,因为我在类库(DLL)中使用了这些方法。
该应用程序是以管理权限启动的。
public void ServiceStart()
{
ServiceController service = new ServiceController();
service.ServiceName = "ASP.NET State Service";
service.Start();
}
public void ServiceStop()
{
ServiceController service