how to add a whildcard appliation mapping in IIS programmatically?

B

BentleyInc

I'm trying to find a way to add a whildcard application mapping to
aspnet_isapi.dll in IIS programmatically.... been looking into IIS
administrator reference but didn't find the right function to use.

The equivalent GUI steps would be, open IIS, select my
application->properties, app configuration, in whildcard application mapping
type the path to aspnet_isapi.dll.

Thanks,
Jingmei Li
Bentley Systems Inc.
 
B

BentleyInc

A little more clarification...
I need to set up this in IIS during installation/deployment time, so it
could be some tool that could be executed via command line or code,
preferrably in c#.

AdsGetObject in C++ should be able to do the job, just a little overkill for
my purpose...
 
S

Steven Cheng[MSFT]

Hi Bentley,

Welcome to ASPNET newsgroup.
For the programmatically register script extension mapping in IIS,
generally we can use ADSI interface or WMI interface to do this job. Based
on my researching , the IIS6 on windows server 2003 has a existing script
utility for manipulating IIS extension:

#Iisext.vbs: IIS Web service extension script
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/Serve
rHelp/72d69051-4287-4e92-847c-df3ac3eb77e1.mspx

And I've also found some other member's script on manipulating such
configuration for IIS5:

#Do do I add or remove a Script Mapping?
http://www.iisfaq.com/Default.aspx?tabid=2792

also, if you have interest, you can check the detailed vb script code in
those script components to find the IIS adsi objects they're processing.
thus, you can also create your own script or using the
System.DirectoryService's API to do the same job.

Hope helps. Thanks,


Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "BentleyInc" <[email protected]>
| References: <#aNXqU#[email protected]>
| Subject: Re: how to add a whildcard appliation mapping in IIS
programmatically?
| Date: Wed, 7 Sep 2005 17:29:59 -0400
| Lines: 26
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.181
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: bsi-uu.bentley.com 64.90.224.40
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:123067
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| A little more clarification...
| I need to set up this in IIS during installation/deployment time, so it
| could be some tool that could be executed via command line or code,
| preferrably in c#.
|
| AdsGetObject in C++ should be able to do the job, just a little overkill
for
| my purpose...
|
| | > I'm trying to find a way to add a whildcard application mapping to
| > aspnet_isapi.dll in IIS programmatically.... been looking into IIS
| > administrator reference but didn't find the right function to use.
| >
| > The equivalent GUI steps would be, open IIS, select my
| > application->properties, app configuration, in whildcard application
| mapping
| > type the path to aspnet_isapi.dll.
| >
| > Thanks,
| > Jingmei Li
| > Bentley Systems Inc.
| >
| >
|
|
|
 
B

BentleyInc

Eventually I used DirectoryEntry.Properties["ScriptMaps"] to add my mapping.
 
S

Steven Cheng[MSFT]

Thanks for your response Bentley,

Glad that you've found your own solution on this.
Have a good weekend!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "BentleyInc" <[email protected]>
| References: <#aNXqU#[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: how to add a whildcard appliation mapping in IIS
programmatically?
| Date: Thu, 8 Sep 2005 15:08:58 -0400
| Lines: 90
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.181
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: bsi-uu.bentley.com 64.90.224.40
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
5.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:342717
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Eventually I used DirectoryEntry.Properties["ScriptMaps"] to add my
mapping.
|
|
| | > Hi Bentley,
| >
| > Welcome to ASPNET newsgroup.
| > For the programmatically register script extension mapping in IIS,
| > generally we can use ADSI interface or WMI interface to do this job.
Based
| > on my researching , the IIS6 on windows server 2003 has a existing
script
| > utility for manipulating IIS extension:
| >
| > #Iisext.vbs: IIS Web service extension script
| >
|
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/Serve
| > rHelp/72d69051-4287-4e92-847c-df3ac3eb77e1.mspx
| >
| > And I've also found some other member's script on manipulating such
| > configuration for IIS5:
| >
| > #Do do I add or remove a Script Mapping?
| > http://www.iisfaq.com/Default.aspx?tabid=2792
| >
| > also, if you have interest, you can check the detailed vb script code in
| > those script components to find the IIS adsi objects they're processing.
| > thus, you can also create your own script or using the
| > System.DirectoryService's API to do the same job.
| >
| > Hope helps. Thanks,
| >
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > --------------------
| > | From: "BentleyInc" <[email protected]>
| > | References: <#aNXqU#[email protected]>
| > | Subject: Re: how to add a whildcard appliation mapping in IIS
| > programmatically?
| > | Date: Wed, 7 Sep 2005 17:29:59 -0400
| > | Lines: 26
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.3790.181
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: bsi-uu.bentley.com 64.90.224.40
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:123067
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | A little more clarification...
| > | I need to set up this in IIS during installation/deployment time, so
it
| > | could be some tool that could be executed via command line or code,
| > | preferrably in c#.
| > |
| > | AdsGetObject in C++ should be able to do the job, just a little
overkill
| > for
| > | my purpose...
| > |
| > | | > | > I'm trying to find a way to add a whildcard application mapping to
| > | > aspnet_isapi.dll in IIS programmatically.... been looking into IIS
| > | > administrator reference but didn't find the right function to use.
| > | >
| > | > The equivalent GUI steps would be, open IIS, select my
| > | > application->properties, app configuration, in whildcard application
| > | mapping
| > | > type the path to aspnet_isapi.dll.
| > | >
| > | > Thanks,
| > | > Jingmei Li
| > | > Bentley Systems Inc.
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top