如何在win7上设置IIS以便按顺序运行经典ASP. [英] How to setup IIS on win7 in order run classic asp progrmically.

查看:66
本文介绍了如何在win7上设置IIS以便按顺序运行经典ASP.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< b></b>我已经在Google上搜索了一些代码,并成功设置了iis并在win7上添加了虚拟目录.

但这不允许运行经典asp.

任何人都知道如何以编程方式或通过一些快速命令来执行此操作,请帮助我.

最好的问候.

//设置IIS

字符串command1 ="START/w PKGMGR.EXE/l:log.etw/iu:IIS-WebServerRole; IIS-WebServer; IIS-CommonHttpFeatures; IIS-StaticContent; IIS-DefaultDocument; IIS-DirectoryBrowsing; IIS-HttpErrors; IIS-HttpRedirect ; IIS应用程序开发; IIS-ASP; IIS-CGI; IIS-ISAPI扩展; IIS-ISAPIFilter; IIS-ServerSideIncludes; IIS-HealthAndDiagnostics; IIS-HttpLogging; IIS-LoggingLibraries; IIS-RequestMonitor; IIS-HttpTracing; IIS-CustomLogging; IIS -ODBCLogging; IIS-Security; IIS-BasicAuthentication; IIS-WindowsAuthentication; IIS-DigestAuthentication; IIS-ClientCertificateMappingAuthentication; IIS-IISCertificateMappingAuthentication; IIS-URLAuthorization; IIS-RequestFiltering; IIS-IPSecurity; IIS-Performance; IIS-HttpCompressionStatic; IIS-HttpCompressionDynamic ; IIS-WebServerManagementTools; IIS-ManagementScriptingTools; WAS-WindowsActivationService; WAS-ProcessModel; IIS-WebDAV; IIS-ASPNET; IIS-NetFxExtensibility; WAS-NetFxEnvironment; WAS-ConfigurationAPI; IIS-ManagementService; NetFx3;
runCommand(command1);

<b></b>I have googleing some codes and successfully setup iis and add virtual directory on win7.

But this is not allow to run classic asp.

Any body know how to do this programically or with some prompt commands,please help me.

Best Regards.

//setup IIS

string command1 = "START /w PKGMGR.EXE /l:log.etw /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementScriptingTools;WAS-WindowsActivationService;WAS-ProcessModel;IIS-WebDAV;IIS-ASPNET;IIS-NetFxExtensibility;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-ManagementService;NetFx3";
runCommand(command1);

推荐答案

在我的Windows 7机器上,带有IIS 7的ISAPI和CGI扩展.如果没有列出ASP,则可以在知道dll的情况下添加它.

或转到控制面板->程序和功能->打开或关闭Windows功能.然后在树形视图中,ASP位于IIS下->万维网服务->应用程序开发功能.选中"asp"框以及要添加的其他任何内容,然后让Windows安装它,我不需要asp,所以我不会去,但是安装后,您可能需要进入IIS菜单并启用它.

我个人将尝试说服人们至少将该站点更新为asp .net,或者也许转而使用MVC或其他新方法.
On my windows 7 machine here w/ IIS 7 its under ISAPI and CGI extentions. If ASP isnt listed there you can add it if you know the dll.

Or go to control panel -> Programs and Features -> Turn on or off Windows Features. then in the tree view there ASP is under IIS -> World Wide Web Services -> Application Development Features. Check the box for asp and whatever else you want to add and let windows install it, i have no need for asp so i''m not going to, but after its installed you may need to to into the IIS menu and enable it.

Personally i would try to convince people to update the site to asp .net at least, or maybe make the move to MVC or some other new fangled thing.


这篇关于如何在win7上设置IIS以便按顺序运行经典ASP.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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