Bugs item #1905564, was opened at 2008-03-01 20:08
Message generated for change (Comment added) made by jasongin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1905564&group_id=105970
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: votive
Group: v3.0
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Brian (bschloz)
>Assigned to: Jason Ginchereau (jasongin)
Summary: Multiple Wix projects in same solution cause E_FAIL
Initial Comment:
With the latest weekly build (3829) when there is more than one Wix project in
a solution, the second one fails to load and we receive the following
messagebox:
Error HRESULT E_FAIL has been returned from a call to a COM component.
If one of the Wix projects is removed from the solution (either one) it seems
to work fine. The previous Build 3815 worked fine with both projects in the
solution.
----------------------------------------------------------------------
>Comment By: Jason Ginchereau (jasongin)
Date: 2008-05-29 13:16
Message:
Logged In: YES
user_id=2086430
Originator: NO
This bug was fixed about a month ago.
----------------------------------------------------------------------
Comment By: mesheets (mesheets)
Date: 2008-04-07 09:26
Message:
Logged In: YES
user_id=1876674
Originator: NO
To follow up on my initial comment in light of more recent postings, I can
confirm that the WiX project that was experiencing the E_FAIL error
includes a subfolder as part of the project definition.
<ItemGroup>
<Folder Include="Subfolder\" />
</ItemGroup>
----------------------------------------------------------------------
Comment By: robertob (robertob1)
Date: 2008-04-03 12:33
Message:
Logged In: YES
user_id=2025042
Originator: NO
I’ve been able to further pin down the source and repro steps for
generating the "Error HRESULT E_FAIL has been returned from a call to a COM
component." issue when reopening a wix3 project using the current builds.
Repro path 1
1. file | new | WixProject | <anyName>
2. references | addReference | <anyWixExtension>
3. save solution, close and reopen
4. <project> | add | newFolder | <anyName>
5. save solution, close and reopen at which time bug repro’s
Repro path 2
1. file | new | WixProject | <anyName>
2. <project> | add | newFolder | <anyName>
3. save solution, close and reopen
4. <project> | references | addReference | <anyWixExtension>
5. save solution, close and reopen at which time bug repro’s
Work around 1
Open project file in notepad and remove all <WixExtension…/> entries
then readd them with ide once project has successfully reopened. Removing
<Folder Include… /> entries would work as well but requires also removing
*.wixproj settings that will cause repro
<ItemGroup>
<WixExtension Include="WixIIsExtension">
<HintPath>C:\Program Files (x86)\Windows Installer XML
v3\bin\WixIIsExtension.dll</HintPath>
</WixExtension>
<Compile Include="WixProject1.wxs" />
<Folder Include="NewFolder1\" />
</ItemGroup>
*.wixproj settings that will not cause repro
<ItemGroup>
<WixExtension Include="WixIIsExtension">
<HintPath>C:\Program Files (x86)\Windows Installer XML
v3\bin\WixIIsExtension.dll</HintPath>
</WixExtension>
<Compile Include="WixProject1.wxs" />
</ItemGroup>
*.wixproj settings that will not cause repro
<ItemGroup>
<Compile Include="WixProject1.wxs" />
<Folder Include="NewFolder1\" />
</ItemGroup>
----------------------------------------------------------------------
Comment By: AJ Shurts (ajshurts)
Date: 2008-04-02 13:09
Message:
Logged In: YES
user_id=1800205
Originator: NO
I am seeing this same bug WITHOUT multiple projects in the same solution.
My solution consists of only one WiX project and nothing else.
Microsoft (R) Windows Installer Xml Compiler version 3.0.3907.0
Copyright (C) Microsoft Corporation 2003. All rights reserved.
I am able to create a project and work on it, but as soon as I close it
down and attempt to come back to it, this error occurs. If I create a new
solution and attempt to add the existing project, I receive this error:
"This project object has been unloaded from the MSBuild engine and is no
longer valid"
I am not using the WiXUIExtension:
<snip>
<ItemGroup>
<WixExtension Include="WixUtilExtension">
<HintPath>C:\Program Files\Windows Installer XML
v3\bin\WixUtilExtension.dll</HintPath>
</WixExtension>
<WixExtension Include="WixSqlExtension">
<HintPath>C:\Program Files\Windows Installer XML
v3\bin\WixSqlExtension.dll</HintPath>
</WixExtension>
<WixExtension Include="WixIIsExtension">
<HintPath>C:\Program Files\Windows Installer XML
v3\bin\WixIIsExtension.dll</HintPath>
</WixExtension>
</ItemGroup>
</snip>
----------------------------------------------------------------------
Comment By: Markus Loibl (mausoma)
Date: 2008-03-21 02:37
Message:
Logged In: YES
user_id=424353
Originator: NO
Hi,
I just copied my comment from another problem, without editing it before.
Sorry.
Of course, its no problem of WixUIExtension.
But you should check if one of your projects contains any subdirectories!
----------------------------------------------------------------------
Comment By: Markus Loibl (mausoma)
Date: 2008-03-21 02:35
Message:
Logged In: YES
user_id=424353
Originator: NO
Hello,
I had the same problems, but it was not a problem of WixUIExtension! I had
some subdirectories within my project:
After removing from the wixproj...
<ItemGroup>
<Folder Include="NewFolder1\" />
</ItemGroup>
... and after CLOSING COMPLETELY DevStudio (yes, just reload doesn't
work!!) and reopening the solution, I could open it normally without
E_FAIL!
I then just inserted my previously removed resources to the projects'
root, and it works for me.
----------------------------------------------------------------------
Comment By: mesheets (mesheets)
Date: 2008-03-03 14:32
Message:
Logged In: YES
user_id=1876674
Originator: NO
I have observed a similar HRESULT E_FAIL issue with the 3829 weekly build.
In my case, I have 3 WiX projects in the solution. The order in which the
WiX projects are listed in the solution file does not appear to matter--I
can manually change the order in a text editor, but it is always the same
project that fails to load (this WiX project is "project referenced" by
both of the other two projects).
Sometimes, I can manually unload the other WiX projects (after the
solution loads) and then I can manually reload all 3 WiX projects
successfully. Once Visual Studio is open, things seem to work fine (i.e. I
can close that solution and then reload it again without error); however,
if I close Visual Studio, I am back to square 1 with the HRESULT E_FAIL
message.
Other times, no tricks seem to work, and the HRESULT E_FAIL message
appears each time I try to load the last project.
I have not experienced this problem in the 3808 and other earlier builds.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1905564&group_id=105970
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs