-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed while processing WebSites #544
Comments
This error is observed only on version 1.9.1. I rolled back to version 1.6.4.3, and there is no such error. <Component Id="Component.INSTALL_LOCATION_WEB_CLIENT.VirtDir" Guid="*-*-*-*-*" Win64="yes" KeyPath="yes">
<iis:WebVirtualDir Id="VirtDir" Alias="O2k-Web-VirtualDir" Directory="INSTALL_LOCATION_WEB_CLIENT" WebSite="WebSite">
<iis:WebApplication Id="MyWebAppWebApplication" Name="MyWebApp" />
</iis:WebVirtualDir>
<iis:WebSite Id="WebSite" Description="O2k-Web" Directory="INSTALL_LOCATION_WEB_CLIENT">
<iis:WebAddress Id="WebSite_Address1" IP="[SERVER_IP_ADDRESS]" Port="[SQL_PORT]" />
</iis:WebSite>
<RemoveFolder Id="INSTALL_LOCATION_WEB_CLIENT" On="uninstall" />
</Component> Looks like a long ID: |
To solve the problem, I used: |
It is an interesting one. If the problem indeed caused by the too long component ID then indeed BTW there are also other ways of controlling the ID allocation. You can pass the explicit ID for dir: new Dir(new Id("AdminWebDir"), "AdminWeb",
new IISVirtualDir
{
Name = "MyWebApp",
. . . will generate <Component Id="Component.AdminWebDir.VirtDir" Guid="6fe30b47-2577-43ad-9095-1861c12f314b" KeyPath="yes">
<WebVirtualDir Id="VirtDir.2" Alias="MyWebApp2" Directory="WebDir" WebSite="WebSite.1" xmlns="http://schemas.microsoft.com/wix/IIsExtension">
<WebApplication Id="Test2WebApplication" Name="Test2" WebAppPool="MyWebApp2_AppPool" />
</WebVirtualDir> There is even another way of controlling Component.Id directly but it is currently is not enabled for new Dir("AdminWeb",
new IISVirtualDir
{
Name = "MyWebApp",
AttributesDefinition = "Component:Id=Component.AdminWeb" |
…SVirtualDir.AttributesDefinition`
* VS project templates - added packages.config files * Added Condition-s for .NET Frameworks 4.7.1 and 4.7.2 * Issue #569: Updating WixSharp leads to malfuncion of SetEvVar * Added support for `UI.Error` WiX element * Issue #552: Question: Install 2 windows services in same installer * Issue #541: Installing 2 Services in the same installer results in … * Samples update * Issue #560: Semantic difference between UninstallCondition and IsUninstalling * Issue #564: Correct variable name of SequentialGuid initialization. * Issue #562: Typo in Compiler.cs comments * Issue #561: Typo in WixProject.cs * Added missing namespace in custom dialog template, fixed comment. * Added explicit `WixEntity.ComponentId` property * Issue #551: Cannot include extra .wxs as part of a bundle * Issue #542: ServiceInstaller.StartOn/StopOn/RemoveOn - Documentation bug * Issue #544: Failed while processing WebSites; added support for `IISVirtualDir.AttributesDefinition`
Hi Oler.
I have problems installing a website:
My code:
What was generated:
The text was updated successfully, but these errors were encountered: