Bugs item #1084109, was opened at 2004-12-12 18:19 Message generated for change (Comment added) made by digitaldrummerj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474851&aid=1084109&group_id=54790
Category: Tasks Group: 0.85 >Status: Closed Resolution: None Priority: 5 Submitted By: justinj (digitaldrummerj) Assigned to: Nobody/Anonymous (nobody) Summary: iisdirinfo errors with nant-0.85rc1 Initial Comment: When I run iisdirinfo with nantcontrib .85 it errors with Error retrieving info for virtual directory 'MyDirectory' on 'localhost:80'. The directory cannot report the number of properties. This same command worked just fine with .84. I am running Windows XP sp1. Thx ---------------------------------------------------------------------- >Comment By: justinj (digitaldrummerj) Date: 2005-01-24 11:07 Message: Logged In: YES user_id=1176927 I am closing my bug report since I submitted a patch for it. ---------------------------------------------------------------------- Comment By: justinj (digitaldrummerj) Date: 2004-12-14 07:24 Message: Logged In: YES user_id=1176927 what about just hard coding what the properties that get returned and using the IISVersion to not show the invalid properties on Win2k3? This is the only reason that the code for .84 does not work on Win2k3 which was the only problem that the old code really had from my perspective. ---------------------------------------------------------------------- Comment By: Rutger Dijkstra (rutgerdijkstra) Date: 2004-12-14 04:35 Message: Logged In: YES user_id=1131474 Hence the suggestion to port the 'EnumCommand' from adsutil.vbs. Assuming sufficient backward compatibility that should still work on Windows 2003. You could mail a patch to one of the admins: Gert Driesen has taken care of earlier iis-patches. ---------------------------------------------------------------------- Comment By: justinj (digitaldrummerj) Date: 2004-12-13 12:25 Message: Logged In: YES user_id=1176927 So I did a little bit of research and ran across the following statement in this msdn article, http://msdn.microsoft.com/library/default.asp?url=/library/en- us/iissdk/iis/enumerating_properties_at_a_metabase_node.asp The following example shows you how to use the C# programming language to enumerate properties at the default Web server metabase node. "Previous to Windows Server 2003 SP1, the IIS ADSI provider could not be used from System.DirectoryServices to enumerate metabase nodes." ---------------------------------------------------------------------- Comment By: justinj (digitaldrummerj) Date: 2004-12-13 11:01 Message: Logged In: YES user_id=1176927 I can do it but I am not sure what the process is to submit the code. ---------------------------------------------------------------------- Comment By: Rutger Dijkstra (rutgerdijkstra) Date: 2004-12-13 03:24 Message: Logged In: YES user_id=1131474 from .84 to .85 iisdirinfo has been changed from spitting out a hardwired set of properties to enumerating the properties of the DirectoryEntry. Sadly, the IIS ADSI-provider does not support the way this is implemented. At least not on W2K and apparently not on Windows XP either. Maybe, someone feels like porting <sysdrive>:\Inetpub\AdminScripts\adsutil.vbs to .Net. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474851&aid=1084109&group_id=54790 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ NAntContrib-Developer mailing list NAntContrib-Developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer