This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: In IIS 7 - problem with default documents configuration
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Sep 16, 2009
10:38 AM
In IIS 7 - problem with default documents configuration
I need to set different default documents for two virtual directories pointing to the same physical directory.
In IIS 6 this setting works perfectly.
In IIS 7 InstallShield 2010 sets one default document for all virtual directories pointing to this physical folder.
It is not an option to add more than one default document.
Please comment on this - I need a solution a.s.a.p.
PS I know that this setting could be made via AppCmd.exe but initial suggestion that IS 2010 should support this configuration option with it's improved IIS 7 functionality.
In IIS 6 this setting works perfectly.
In IIS 7 InstallShield 2010 sets one default document for all virtual directories pointing to this physical folder.
It is not an option to add more than one default document.
Please comment on this - I need a solution a.s.a.p.
PS I know that this setting could be made via AppCmd.exe but initial suggestion that IS 2010 should support this configuration option with it's improved IIS 7 functionality.
(8) Replies
‎Sep 16, 2009
12:45 PM
Have you tried applying the hotfix provided in KB Q205591? This should resolve issues with virtual directory and application settings not being applied correctly on IIS 7.x machines.
‎Sep 17, 2009
11:13 AM
Josh, this seems like a significant bug and the date on the KB article is early July of this year. I am wondering what measures Acresso has taken to alert their customers of this since I am just finding out about this now? Fortunately, I have not needed to utilize the IIS View in IS2010 yet, but I think Acresso should have notified the installed customer base of this issue and hotfix don't you?
Tim
Tim
‎Sep 17, 2009
12:28 PM
I am unable to reproduce the behavior you are seeing. If I create a new Basic MSI project with one feature, one component, a website (the default site), and a virtual directory, then change the default document property to contain "Default.asp,test.htm,default.htm,default.cfm", all of these items show up in the IIS manager after building and installing this project. Are you able to reproduce this behavior with similar steps in a sample project, or is this only occurring for one project?
Tim, in regards to notification of hotfixes, these are typically only delivered through KB articles, so the only notification available is the RSS feed for new/updated KBs. The impact of this issue is also limited by a number of factors, such as not affecting IIS 6 and earlier support, migrated projects are not affected, and various other things. This fix will likely be rolled into a service pack that would be provided through an update notification in InstallShield.
Tim, in regards to notification of hotfixes, these are typically only delivered through KB articles, so the only notification available is the RSS feed for new/updated KBs. The impact of this issue is also limited by a number of factors, such as not affecting IIS 6 and earlier support, migrated projects are not affected, and various other things. This fix will likely be rolled into a service pack that would be provided through an update notification in InstallShield.
‎Sep 18, 2009
12:50 AM
I have a project converted from InstallShield 2009.
In my case i have 3 virtual directories inside Default Web Site. First two of them defines Default.aspx as a default document. Third one - other startup page, let's say "start.htm". Two of these virtual directories (one with Default.aspx and one with start.htm) uses SAME physical folder on hdd.
When the product is istalled two directories pointing to one physical folder on hdd only have start.htm as a default document.
Important addition - for testing we use Windows Server 2008 x64.
Is this behavior works ok for you?
In my case i have 3 virtual directories inside Default Web Site. First two of them defines Default.aspx as a default document. Third one - other startup page, let's say "start.htm". Two of these virtual directories (one with Default.aspx and one with start.htm) uses SAME physical folder on hdd.
When the product is istalled two directories pointing to one physical folder on hdd only have start.htm as a default document.
Important addition - for testing we use Windows Server 2008 x64.
Is this behavior works ok for you?
‎Sep 21, 2009
11:27 AM
The behavior you are seeing is due to how IIS 7.x stores certain settings. A setting such as default document is stored in a file named web.config in the physical folder that a virtual directory is associated with. If there is more than one virtual directory associated with the same physical directory, changing the default document setting on either virtual directory in the IIS manager will affect the other virtual directory's default document setting. Note that the IIS 7 functionality provided through InstallShield clears each setting (in this case, system.webServer/defaultDocument) before applying the value specified in the project being installed.
‎Sep 29, 2009
11:05 AM
Is it a big deal to utilise applicationHost.Config to write default document configuration in such case? Or add some simple option in IS configuration...
Because currently IS always sets the default document via web.config that overrides applicationHost.Config settings! Even if I don't need it!
Currently I added next custom action in Deferred System context:
\inetsrv\ appcmd.exe set config "Default Web Site/Recruitment" /section:defaultDocument /+files.[@start,value='ExtStart.htm'] /commit:APPHOST
Because currently IS always sets the default document via web.config that overrides applicationHost.Config settings! Even if I don't need it!
Currently I added next custom action in Deferred System context:
‎Sep 29, 2009
11:40 AM
We apply settings like default documents in the same manner as the IIS manager. If you create a virtual directory in the IIS manager and change the default document setting on that new virtual directory, the setting will be stored in web.config in the physical location the virtual directory points to.
Attempting to apply a setting in an area that is not allowed will cause IIS to return an error indicating the property cannot be set in the location just attempted.
Attempting to apply a setting in an area that is not allowed will cause IIS to return an error indicating the property cannot be set in the location just attempted.