Click here to Skip to main content
15,921,694 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<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);
Posted

1 solution

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.
 
Share this answer
 
Comments
JamesIntel 20-Sep-11 20:56pm    
Thanks.

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.

What does this means???????
It sound new to for me. It might be improve my error.
Could you tell me about this in more details.?

I have googleing over 2 days and I failed to run it.

But your sound is new to for me.

Kind Regards.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900