473,327 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

how to add a whildcard appliation mapping in IIS programmatically?

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
4 3061
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Pierre Fortin | last post by:
Hi! "Python Essential Reference" - 2nd Ed, on P. 47 states that a string format can include "*" for a field width (no restrictions noted); yet... >>> "%*d" % (6,2) # works as expected ' ...
0
by: Chris | last post by:
I am using Castor to marshal and unmharshal some objects. I have an object that has a List of strings. I can marshal it without using a mapping file. However, when I try to unmarshal it without...
6
by: naruto | last post by:
Hi all, I have the following being defined in a A.cxx file. // define in source file. Not exported to the outside world (this cannot be // moved to the header file ) #define CHANNEL_0 0...
0
by: Rob | last post by:
Hi, Does anyone know of a good reference for mapping a network drive programmatically using VB.Net? Is it best to use API calls or is there a better way to do it? Thanks Rob
1
by: JeremyGrand | last post by:
I'd just like to confirm that one really can't use the ide to configure tablestyles & columnstyles in a datagrid. I've tried it and can't make it "take". The examples I find all show this done in...
32
by: deko | last post by:
I have a popup form with a textbox that is bound to a memo field. I've been warned about memo fields so I'm wondering if I should use this code. Is there any risk with changing the form's...
1
by: PetersonMike | last post by:
One gets countless hits when searching for discussions on the need to install IIS before .NET so that ISAPI references are setup properly. It's also documented that one can run apsnet_regiis.exe...
1
by: maz01 | last post by:
Hello All, I am developing an application in visual basic 2005 that will run continuously in the background on a users workstation. This application will automatically transfer files from the...
0
by: alan.limebeer | last post by:
I'm writing a quick and dirty admin tool to check 308 servers for the Last Modified date of a specific file that exists in the same place on all 308 servers. Using the System.IO namespace objects...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.