Windows Vista Forums

II6 - Application Extension Mapping
  1. #1



    Newbie
    Join Date : Aug 2008
    Posts : 2
    Vista Pro 32bit
    Local Time: 06:38 PM

    II6 - Application Extension Mapping

    I'm a bit new to Powershell. I am looking for the ability configure an IIS6 website. More specifically I want to insert an Application Extension Mapping.

    For an idea of what I'm trying to do...
    A Complete URL Rewriting Solution for ASP.NET 2.0
    Look for the section at the end called "IIS Configuration: using RewriteModule with extensions other than .aspx ".



    Thanks in advance.

      My System SpecsSystem Spec

  2. #2



    Newbie
    Join Date : Aug 2008
    Posts : 2
    Vista Pro 32bit
    Local Time: 06:38 PM


      Thread Starter

    Re: II6 - Application Extension Mapping

    I eventually found my answer... so if anyone is curious...
    Code:
    $Site = [ADSI]"IIS://./W3SVC/1/Root"
    $ScriptMaps = $Site.ScriptMaps
     
    # Depending on the version of ASP.NET this is the Map we want to add:
    $ScriptMap = ".html,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,1,"
     
    $ScriptMaps += $ScriptMap
     
    $Site.ScriptMaps = $ScriptMaps
    $Site.SetInfo()

      My System SpecsSystem Spec

II6 - Application Extension Mapping problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply a shim do an specific application to force the application r 2008 ts user Vista account administration 2 08 Oct 2009
Can an .asp extension be redirected to an .aspx web application bythe server in IIS 6 The Great Pawn Hunter .NET General 2 02 Apr 2008
Files with extension ".doc" should be opened in Microsoft Word Application Venkat Vista security 2 26 Nov 2007
Files with extension ".doc" should be opened in Microsoft Word Application Venkat Vista General 1 24 Nov 2007
appdata-local-Application Data-Application Data-Application Data infinitum ad nauseum. WHY keepout Vista General 15 15 Sep 2007