Solved

IIS Handler Mappings - is there a way to automate adding a new one on installation?

Posted on 2008-06-20
2
580 Views
Last Modified: 2010-04-21
We have a web application that runs locally on customers computers/networks.   I've recently added  a way to generate forms.  In it we have 3 customer handler mappings that need to be added to IIS.   Due to the end users abilities, it is highly unlikely any of them could add these on their own.   I have looked and cannot find any reference to anyone that has successfully done this with IIS 5, 6, and 7 as possible targets.   Does anyone know a way to do this programmatically?  Is it possible?

So far in Vista with IIS7, when I've installed my application it will add the Handler Mappings *sometimes*, not all the time.  That is pulling from the web.config of my application, in the system.webServer, handlers section.   Like said though it is not consistent.   Anyone with any ideas?

Thanks
0
Comment
Question by:acco_is
2 Comments
 
LVL 37

Accepted Solution

by:
meverest earned 500 total points
ID: 21852203
Hi,

for IIS6, use adslutil.vbs to script your web site changes (in c:\inetpub\adminscripts by default)

for IIS7, AppCmd.exe is used for the similar purpose.

Cheers.
0
 

Author Closing Comment

by:acco_is
ID: 31474014
Using adsutil.exe should work with both IIS6 and IIS7.   Finding all the syntax needed for making these adjustments will be the hard part.  Thanks, its got me headed in the right direction.  
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question