When creating a Web application, a web.config file existed in the virtual directory before the virtual directory was configured in Wise Installation Studio 7.0 SP1. The modifications that were made to the web.config file cause the settings to be set incorrectly for the Web application. This behavior only occurs when the original web.config file contains the line '<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">'.
Steps to reproduce:
Create a new .wsi using the Web application template.
On the files page, add 1 text file and a web.config file that contains '<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">' to a directory.
On the Web files page, create a virtual directory that points to the directory created in step 2.
Compile the .wsi.
Run the .msi on a Windows Vista* computer.
In IIS, browse to the virtual directory and try viewing the Authentication for the virtual directory. The message "Cannot create a file when that file already exists" appears. If this were an actual Web application, the Web application would error when trying to browse to it as well.
When the virtual directory is created, the following text is added to the already existing web.config file. (This text will vary based on the options chosen on the Web Details dialog.)
The xmlns="" causes the computer's applicationHost.config file to not be updated properly by our custom actions.
NOTE: This issue is resolved in Wise Package Studio version 8.0 which was released on 29 October 2009 This issue is resolved in Wise Installation Studio 7 SP2, which was released on 15 March 2010
After compiling the installation the first time (so that our section is added to the web.confi file), modify the section we added so that all instances of xmlns="" are removed. If just the default settings were taken, as in the example text added in the Cause section, the section we added should be modified to look like: