ifucdseeme
Posts: 2
Joined: Fri Jul 11, 2008 4:52 pm

Error when setting Virtual Directory as a Web Application

I have an install that requires that my Application Install Directory be a Virtual Directory and a Web Application. When I run the install without the checkbox 'Virtual Directory is a Web Application' the install runs perfectly and creates the Virtual Directory. When I check the box 'Virtual Directory is a Web Application' the install fails with the below error.
I am running the install on a Winows XP SP2, and the Application install directory is D:\Program Files\Company Name\StoreWebReports Any ideas on why setting the Virtual Directory as a Web Application would cause this error? Thanks in advance for any help in resolving this error.

Image

1: {56A47E46-8F94-4BDB-AD1E-53DB13CDA387}
Action 12:22:10: AI_IIsRollback. Rolling back IIS configuration
Action 12:22:10: AI_IIsConfig. Creating IIS Web Sites and Virtual Directories
AI_IIsConfig: Installing "Default Web Site\StoreWebReports"
Error 4020. There was an error during the IIS configuration process.
Your original IIS configuration will be restored.
MSI (s) (9C!28) [12:22:17:015]: Product: Associate Sales Per Hour Report -- Error 4020. There was an error during the IIS configuration process.
Your original IIS configuration will be restored.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Error when setting Virtual Directory as a Web Application

Hi,

This behavior may be caused by the machine on which you are testing the package. Please try the installing the package on other machines. If the behavior can be reproduced, please contact us at support at advancedinstaller dot com and I will send you a file which will create a log (so we can investigate the problem).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ifucdseeme
Posts: 2
Joined: Fri Jul 11, 2008 4:52 pm

Re: Error when setting Virtual Directory as a Web Application

Thanks for the reply. I will give it a shot on another machine to see if the problem is reprocuceable and report back.
liorbk
Posts: 13
Joined: Tue Apr 08, 2008 2:44 pm

Re: Error when setting Virtual Directory as a Web Application

Hi,
I had this problem last week as well on a computer with a Spanish Windows XP SP2.
Does this concerning the fact that the OS is not English.
I am using version 6.5.2 on that setup.

MSI (s) (9C:60) [11:13:45:421]: Executing op: ActionStart(Name=AI_IIsConfig,Description=Creating IIS Web Sites and Virtual Directories,Template=Installing "[1]")
Action 11:13:45: AI_IIsConfig. Creating IIS Web Sites and Virtual Directories
MSI (s) (9C:60) [11:13:45:437]: Executing op: CustomActionSchedule(Action=AI_IIsConfig,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (9C:70) [11:13:45:453]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI109E.tmp, Entrypoint: OnIIsConfig
AI_IIsConfig: Installing "Default Web Site\MY_NAME"
MSI (s) (9C!DC) [11:14:09:234]: Product: MY_NAME -- Error 4020. There was an error during the IIS configuration process.
Your original IIS configuration will be restored.

Thanks,
Lior
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Error when setting Virtual Directory as a Web Application

Hi Lior,

Please test the package on other machines. The language of the operating system should not affect this behavior (most likely there is an incorrect IIS configuration on the machines you tested).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jmedina
Posts: 29
Joined: Fri Nov 21, 2008 9:29 pm

Re: Error when setting Virtual Directory as a Web Application

hi
i have the same problem.
Hi,
I have this problem with a Spanish Windows XP SP2.
I am using version 6.9.1 on that setup.

MSI (s) (D0:D8) [17:39:37:421]: Set LastUsedSource to: C:\Inetpub\ftproot\Autorun\Sr\Instalar\.
MSI (s) (D0:D8) [17:39:37:421]: Set LastUsedType to: n.
MSI (s) (D0:D8) [17:39:37:437]: Set LastUsedIndex to: 1.
MSI (s) (D0:D8) [17:39:37:437]: Executing op: ActionStart(Name=AI_IIsRollback,Description=Deshaciendo la configuración de IIS,Template=Se está restaurando la configuración de la metabase.)
Acción 17:39:37: AI_IIsRollback. Deshaciendo la configuración de IIS
MSI (s) (D0:D8) [17:39:37:437]: Executing op: CustomActionSchedule(Action=AI_IIsRollback,ActionType=11521,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (D0:D8) [17:39:37:437]: Executing op: ActionStart(Name=AI_IIsConfig,Description=Se está creando sitios web IIS y directorios virtuales,Template=Se está instalando "[1]")
Acción 17:39:37: AI_IIsConfig. Se está creando sitios web IIS y directorios virtuales
MSI (s) (D0:D8) [17:39:37:437]: Executing op: CustomActionSchedule(Action=AI_IIsConfig,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (D0:34) [17:39:37:468]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI26.tmp, Entrypoint: OnIIsConfig
AI_IIsConfig: Se está instalando "SX5.00"
Error 4020. Ha ocurrido un error durante el proceso de configuración del IIS.
Su configuración original del IIS será restaurada.
MSI (s) (D0!38) [17:55:53:703]: Producto: SX - SX -- Error 4020. Ha ocurrido un error durante el proceso de configuración del IIS.
Su configuración original del IIS será restaurada.

on my install i have enable the option virtual directory is a web application. :?:
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Error when setting Virtual Directory as a Web Application

Hi,

Usually this problem is caused by an incorrect configuration on the target machine. Does the package work on other machines?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jmedina
Posts: 29
Joined: Fri Nov 21, 2008 9:29 pm

Re: Error when setting Virtual Directory as a Web Application

yes work fine in others pc's(windows XP sp2, windows 2003)

you say "incorrect configuration on the target machine" wich is the correctly way to configure the target.

Regards.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Error when setting Virtual Directory as a Web Application

Hi,

You can find more information about IIS here:
Install and Configure IIS
http://www.iis.net/

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kithkanan
Posts: 21
Joined: Mon Jul 13, 2009 11:28 am

Re: Error when setting Virtual Directory as a Web Application

Hi Cosmin,

I am having this problem as well. The installer works fine on my pc but when I try to install it in the server, I got the error they are getting above. I have enabled the option "virtual directory is a web application". But when I tried to manually add a virtual directory on IIS of my server, it worked. Can you please give us a hint on how to know if the configuration of IIS is not correct?

Btw, in my installer, I am adding a Virtual Directory to "Default Web Site". But my IIS does not have "Default Web Site" in it and so I just added it manually. Am I doing the correct thing?

Thanks in advance! :)

--
Matt
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Error when setting Virtual Directory as a Web Application

Hi Matt,

You can find more information about how to correctly configure IIS in the articles I mentioned in my previous post. Note that IIS should have a default website (it is created automatically).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”