I am working with an installation project for an ASP.net application.
I have a custom action that executes .Net code to configure a website
or create a virtual directory on the IIS server. This has worked quite
well. However, a developer added some additional code to manually add
a custom script mapping to the newly created website/virtual
directory.
At the end of the installation I call "aspnet_regiis -i -enable" just
in case asp.net is not registered with IIS.
When I create a scenario on IIS 6.0 where asp.net is not registered
and run my install, everything works fine, except the asp.net mappings
are not applied to my website/virtual directory with the custom script
mapping. If i remove the custom script mapping through IIS manager and
run "aspnet_regiis -i -enable", it succeeds in setting the script maps
on my virtual directory/website.
So it appears my custom script mapping is intefering with
aspnet_regiis.
Has anyone worked with the system.directoryservice namespace and set
mappings through code? Any ideas would greatly be appreciated.