By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,570 Members | 970 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,570 IT Pros & Developers. It's quick & easy.

how to add a whildcard appliation mapping in IIS programmatically?

P: n/a
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.
Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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...

"BentleyInc" <Be********@online.nospam> wrote in message
news:#a*************@TK2MSFTNGP11.phx.gbl...
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.

Nov 19 '05 #2

P: n/a
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/pro.../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" <Be********@online.nospam>
| References: <#a*************@TK2MSFTNGP11.phx.gbl>
| 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: <eH**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: bsi-uu.bentley.com 64.90.224.40
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.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...
|
| "BentleyInc" <Be********@online.nospam> wrote in message
| news:#a*************@TK2MSFTNGP11.phx.gbl...
| > 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.
| >
| >
|
|
|

Nov 19 '05 #3

P: n/a
Eventually I used DirectoryEntry.Properties["ScriptMaps"] to add my mapping.
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:hj*************@TK2MSFTNGXA02.phx.gbl...
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/pro.../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" <Be********@online.nospam>
| References: <#a*************@TK2MSFTNGP11.phx.gbl>
| 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: <eH**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: bsi-uu.bentley.com 64.90.224.40
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.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...
|
| "BentleyInc" <Be********@online.nospam> wrote in message
| news:#a*************@TK2MSFTNGP11.phx.gbl...
| > 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.
| >
| >
|
|
|

Nov 19 '05 #4

P: n/a
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" <Be********@online.nospam>
| References: <#a*************@TK2MSFTNGP11.phx.gbl>
<eH**************@TK2MSFTNGP11.phx.gbl>
<hj*************@TK2MSFTNGXA02.phx.gbl>
| 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: <e$**************@TK2MSFTNGP15.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: bsi-uu.bentley.com 64.90.224.40
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGP08.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.
|
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:hj*************@TK2MSFTNGXA02.phx.gbl...
| > 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/pro.../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" <Be********@online.nospam>
| > | References: <#a*************@TK2MSFTNGP11.phx.gbl>
| > | 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: <eH**************@TK2MSFTNGP11.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: bsi-uu.bentley.com 64.90.224.40
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.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...
| > |
| > | "BentleyInc" <Be********@online.nospam> wrote in message
| > | news:#a*************@TK2MSFTNGP11.phx.gbl...
| > | > 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.
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.