Which version of WiX are you using? What operating system is this problem
occurring on? Which version(s) of the .NET Framework do you have installed?

Technical detail: get_Count will throw a NotSupportedException if the
underlying ADSI object doesn't implement the IADsPropertyList interface. The
documentation for System.DirectoryServices.PropertyCollection.Count
indicates that the IIS provider "[does] not currently support Count, so
[...] will throw a NotSupportedException". The line:

  foreach (string propertyName in webSiteEntry.Properties.PropertyNames)

[line 93, src\ext\IIsExtension\wixext\IIsWebSiteHarvester.cs, v3.0.2211.0]

creates a PropertyCollection.KeyCollection, which derives from
PropertyCollection.ValuesCollection. This uses the Count property internally
in its enumerator implementation.

This might be a bug in WiX, if it only works on some versions of Windows.

-- 
Mike Dimmick

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Grootjes, Ivo
Sent: 07 November 2006 15:25
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] heat website throws exception

Hi,

I'm trying to harvest website info using the following command:

heat website DefaultWebSite -out c:\testje2.wxs

I'm getting the error:

heat.exe : error HEAT0001 : The directory cannot report the number of
properties .

Exception Type: System.NotSupportedException

Stack Trace:
   at System.DirectoryServices.PropertyCollection.get_Count()
   at
System.DirectoryServices.PropertyCollection.ValuesEnumerator.MoveNext()
   at
Microsoft.Tools.WindowsInstallerXml.Extensions.IIsWebSiteHarvester.Harvest
WebSite(DirectoryEntry webSiteEntry)
   at
Microsoft.Tools.WindowsInstallerXml.Extensions.IIsWebSiteHarvester.Harvest
WebSite(String name)
   at
Microsoft.Tools.WindowsInstallerXml.Extensions.IIsWebSiteHarvester.Harvest
(String argument)
   at Microsoft.Tools.WindowsInstallerXml.Harvester.Harvest(String argument)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Heat.Run(String[] args)

D:\source\AFM\Client\Wta\Web>heat website DefaultWebSite -out c:\testje2.wxs


The name of my iiswebsite is DefaultWebSite when i enter a different website
name i get "the website could not be found" so heat can find the
DefaultWebSite.

My DefaultWebSite contains 6 virtual directories, 1 aspnet_client directory
and 1 _vti_pvt directory.

Is this a bug or am i doing something wrong?

TIA

Regards,

Ivo Grootjes



Disclaimer:
http://www.afm.nl/disclaimer
http://www.afm.nl/disclaimer_english/
Indien u de link niet kunt openen, neemt u dan contact op met telefoonnummer
+31 (0)20 5535200. Meer informatie vindt u op de website http://www.afm.nl.
If you are unable to access the link, please dial +31 (0)20 5535200
Additional information is available on the website http://www.afm.nl.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to