<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Benjamin Guinebertière</title><link>http://blogs.msdn.com/benjguin/default.aspx</link><description /><dc:language>fr-FR</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Changement de rôle en janvier</title><link>http://blogs.msdn.com/benjguin/archive/2009/11/10/changement-de-r-le-en-janvier.aspx</link><pubDate>Tue, 10 Nov 2009 13:47:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9920137</guid><dc:creator>benjguin</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/9920137.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=9920137</wfw:commentRss><description>&lt;p&gt;Après 16 ans en SSII et à MCS (Microsoft Consulting Services), je change de fonction en janvier prochain. Je reste architecte et chez Microsoft, mais je change de division. J’intègre la Division Plateforme &amp;amp; Ecosystème (&lt;a href="http://msdn.microsoft.com/fr-fr/bb219575.aspx" target="_blank"&gt;DPE&lt;/a&gt;) qui favorise l’adoption de la plateforme Microsoft pour des projets innovants. La division promeut par exemple la &lt;a href="http://www.microsoft.com/windowsazure/" target="_blank"&gt;plateforme Windows Azure&lt;/a&gt; depuis la Professional Developer Conference 2008 (PDC) qui s’est tenue il y a un an.&lt;/p&gt; &lt;p&gt;L’actualité prochaine sera autour de SharePoint 2010, Visual Studio 2010, la plateforme Windows Azure qui entre en production en ce début 2010, et plein d’autres technologies.&lt;/p&gt; &lt;p&gt;Je garderai une affinité avec tout ce qui tourne autour de l’intégration (SOA, EAI, Interopérabilité, …) bien sûr, mais travaillerai également sur la plateforme Microsoft en général (à l’exception de produits à usage non professionnels tels que la Xbox, ce qui tombe bien car je ne me suis passionné que pour 2 jeux depuis Tétris !).&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Tout cela devrait me permettre de reprendre le clavier pour écrire sur ce blog plus souvent que je n’ai pu le faire récemment.&lt;/p&gt; &lt;p&gt;A bientôt&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;:-)&lt;/p&gt; &lt;p&gt;Benjamin&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9920137" width="1" height="1"&gt;</description></item><item><title>Hardware and Windows Network Load Balancing</title><link>http://blogs.msdn.com/benjguin/archive/2008/11/11/hardware-and-windows-network-load-balancing.aspx</link><pubDate>Wed, 12 Nov 2008 02:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9060988</guid><dc:creator>benjguin</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/9060988.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=9060988</wfw:commentRss><description>&lt;P&gt;I recorded this ~15 minutes sketchcast about Hardware load balancing and Windows Network Load Balancing&lt;/P&gt;You can download the WMV file at &lt;A href="http://dl.free.fr/vC12pB1IY" mce_href="http://dl.free.fr/vC12pB1IY"&gt;this location&lt;/A&gt; &lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9060988" width="1" height="1"&gt;</description></item><item><title>BizTalk Server Roadmap</title><link>http://blogs.msdn.com/benjguin/archive/2008/09/06/biztalk-server-roadmap.aspx</link><pubDate>Sat, 06 Sep 2008 16:55:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8927902</guid><dc:creator>benjguin</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/8927902.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=8927902</wfw:commentRss><description>&lt;p&gt;A roadmap of BizTalk Server : BizTalk Server 2009 and beyond, relationship with « Oslo » is available at &lt;a href="http://www.microsoft.com/biztalk/en/us/roadmap.aspx"&gt;http://www.microsoft.com/biztalk/en/us/roadmap.aspx&lt;/a&gt;
	&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8927902" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/SOA/default.aspx">SOA</category><category domain="http://blogs.msdn.com/benjguin/archive/tags/BizTalk+Server/default.aspx">BizTalk Server</category></item><item><title>WebCasts de la conférence SOA du 25 octobre dernier</title><link>http://blogs.msdn.com/benjguin/archive/2007/12/05/webcasts-de-la-conf-rence-soa-du-25-octobre-dernier.aspx</link><pubDate>Wed, 05 Dec 2007 13:19:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6664873</guid><dc:creator>benjguin</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/6664873.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=6664873</wfw:commentRss><description>&lt;p&gt;Les WebCasts de cette conférence sont disponibles à &lt;a href="http://www.microsoft.com/france/vision/soa-conference/"&gt;http://www.microsoft.com/france/vision/soa-conference/&lt;/a&gt;
	&lt;/p&gt;&lt;p&gt;J'intervenais avec Unilog Management sur SOA et méthodologie: &lt;a href="http://www.microsoft.com/france/vision/soa-conference/Webcast.aspx?eid=f5f97963-f1f6-40ed-ba30-0382259e760c"&gt;Comment démarrer sereinement un projet SOA&lt;/a&gt;
	&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6664873" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/SOA/default.aspx">SOA</category></item><item><title>How to expand a VHD disk</title><link>http://blogs.msdn.com/benjguin/archive/2007/10/04/how-to-expand-a-vhd-disk.aspx</link><pubDate>Thu, 04 Oct 2007 23:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5278542</guid><dc:creator>benjguin</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/5278542.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=5278542</wfw:commentRss><description>&lt;P&gt;&lt;EM&gt;NB, MAR 2009: It was brought to my attention (thanks Fernando) that utilities like VHDResizer (&lt;/EM&gt;&lt;A href="http://vmtoolkit.com/files/default.aspx"&gt;&lt;EM&gt;http://vmtoolkit.com/files/default.aspx&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt;)&amp;nbsp;may do the job in a simpler way. I did not check myself.&lt;/EM&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I was working on a Virtual PC 2007 virtual machine with a dynamically expanding disk of a maximum of 16 Gb. &lt;/P&gt;
&lt;P&gt;This disk was the C: system drive on the virtual machine and I was running out of virtual space (I had enough space on the hardware host disk). &lt;/P&gt;
&lt;P&gt;A dynamically expanding disk can only grow to its predefined maximum size. The name comes from the fact that if you store 10Mb in a 16Gb dynamically expanding disk, vhd file size will only be ~10 Mb. You'll find much more at &lt;A href="http://support.microsoft.com/kb/825092/en-us" mce_href="http://support.microsoft.com/kb/825092/en-us"&gt;http://support.microsoft.com/kb/825092/en-us&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;So the virtual guest machine had a 15.5 Gb system drive for a maximum of 16Gb. &lt;/P&gt;
&lt;P&gt;Here is what worked for me. &lt;/P&gt;
&lt;P&gt;Let's call C.vhd the file of the 15.5 Gb C: drive. &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;shut down the guest virtual machine &lt;/LI&gt;
&lt;LI&gt;Create thru the Virtual Disk Wizard a new dynamically expanding disk with a max size of 100 Gb =&amp;gt; this creates Cbis.vhd with an initial size of a few Kb. &lt;/LI&gt;
&lt;LI&gt;close Virtual PC 2007 &lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;use VHDMount (installed it on my Vista machine from the Virtual Server 2005 SP1 installation) to issue the following commands&lt;BR&gt;(if prompted to format a disk, don't do it, if X: or Y: drives don't get created, don't worry) &lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;vhdmount /m /f C.vhd X &lt;/LI&gt;
&lt;LI&gt;vhdmount /m /f CBis.vhd Y &lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;go to Disk Management (Computer, Manage, Disk Management) on the real Vista machine &lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;assign X: to the disk corresponding to C.vhd if it's not already done &lt;/LI&gt;
&lt;LI&gt;format the disk corresponding to CBis.vhd. NTFS, quick formatting is OK &lt;/LI&gt;
&lt;LI&gt;assign Y: to the disk corresponding to Cbis.vhd if it's not already done &lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Copy all the files from X: to Y: &lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;robocopy X:\ Y:\ /E /COPYALL /R:5 &lt;/LI&gt;
&lt;LI&gt;Fix any remaining copy issues (for instance ACL not authorizing administrators group to read) &lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;go to Disk Management (Computer, Manage, Disk Management) on the real Vista machine &lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;Mark Y: partition as active &lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Unmount X: and Y: &lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;vhdmount /u All &lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;Change the virtual machine .vmc file (with notepad) and replace C.vhd by Cbis.vhd &lt;/LI&gt;
&lt;LI&gt;Restart virtual machine &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Then you can delete C.vhd and keep CBis.vhd. &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5278542" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/KB/default.aspx">KB</category></item><item><title>MSDTC transaction to a SQL cluster on a different domain</title><link>http://blogs.msdn.com/benjguin/archive/2007/09/17/msdtc-transaction-to-a-sql-cluster-on-a-different-domain.aspx</link><pubDate>Tue, 18 Sep 2007 00:12:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4962594</guid><dc:creator>benjguin</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/4962594.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=4962594</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx/kb/827805/en-us"&gt;http://support.microsoft.com/default.aspx/kb/827805/en-us&lt;/a&gt; explains how to test a distributed transaction scenario between 2 SQL Servers without the need to install DTCPing.
&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;Here is a scenario.
&lt;/p&gt;&lt;p&gt;BTS1 server initiates a distributed transaction on VSQL, a SQL instance hosted on a Windows Cluster having the following characteristics:
&lt;/p&gt;&lt;ul&gt;&lt;li&gt;SQLN1 is the first node of the cluster
&lt;/li&gt;&lt;li&gt;SQLN2 is the second node
&lt;/li&gt;&lt;li&gt;&lt;div&gt;The cluster has at least the following two cluster groups
&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;SQL group
&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Network Name: VSQL
&lt;/li&gt;&lt;li&gt;SQL Server instance resources (disks, SQL, etc.)
&lt;/li&gt;&lt;li&gt;other resources like IP Address
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Cluster group
&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Network Name: VCLUST
&lt;/li&gt;&lt;li&gt;MSDTC resource
&lt;/li&gt;&lt;li&gt;other resources like IP Address, quorum disk etc.
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;BTS1 and the cluster are on two different domains. Among other things, they don't share the same DNS. For instance, BTS1 is BTS1.domain1.net and VSQL is VSQL.domain2.net
&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;In order to be able to ping VSQL, you can add an entry in BTS1, in its %windir%\system32\drivers\etc\hosts. file like
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;lt;ip address&amp;gt;    VSQL
&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;If you only do that, you might end up with an error like
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;The transaction has already been implicitly or explicitly committed or aborted
&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;In order to have the distributed transaction working, you need the following to be true (this can be done with the hosts. file):
&lt;/p&gt;&lt;ul&gt;&lt;li&gt;BTS1 can ping VSQL
&lt;/li&gt;&lt;li&gt;SQLN1 can ping BTS1
&lt;/li&gt;&lt;li&gt;SQLN2 can ping BTS1
&lt;/li&gt;&lt;li&gt;BTS1 can ping VCLUST
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;NB: names must be the netbios names.
&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;Additional information:
&lt;/p&gt;&lt;ul style="margin-left: 47pt"&gt;&lt;li&gt;&lt;a href="http://support.microsoft.com/default.aspx/kb/899191/en-us"&gt;http://support.microsoft.com/default.aspx/kb/899191/en-us&lt;/a&gt; (New functionality in the Distributed Transaction Coordinator service in Windows Server 2003 Service Pack 1 and in Windows XP Service Pack 2)
&lt;/li&gt;&lt;li&gt;&lt;a href="http://support.microsoft.com/default.aspx/kb/827805/en-us"&gt;http://support.microsoft.com/default.aspx/kb/827805/en-us&lt;/a&gt; (MSDTC fails to mutually authenticate when computers do not run in the same domain)
&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4962594" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/KB/default.aspx">KB</category></item><item><title>ISA Server 2004/2006 would prevent local Windows Update</title><link>http://blogs.msdn.com/benjguin/archive/2007/09/14/isa-server-2004-2006-would-prevent-local-windows-update.aspx</link><pubDate>Fri, 14 Sep 2007 15:10:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4909645</guid><dc:creator>benjguin</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/4909645.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=4909645</wfw:commentRss><description>&lt;p&gt;From an ISA Server computer, when you try to check Microsoft or Windows Update from IE, you get the initial page, but when you want to check updates you get a 0x80072EFD error.
&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;To avoid that, configure Internet Explorer proxy to the local ISA Server on the &lt;span style="text-decoration:underline"&gt;Internal&lt;/span&gt; IP Address
&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;Exemple: your ISA Server has an internal address of 192.168.1.1, go to IE LAN Settings and use 192.168.1.1:8080 as web proxy.
&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4909645" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/Web+Infrastructure/default.aspx">Web Infrastructure</category><category domain="http://blogs.msdn.com/benjguin/archive/tags/KB/default.aspx">KB</category></item><item><title>Sample Behavior of BizTalk Server 2004 SP1 with .NET Framework 2.0 installed</title><link>http://blogs.msdn.com/benjguin/archive/2007/09/14/sample-behavior-of-biztalk-server-2004-sp1-with-net-framework-2-0-installed.aspx</link><pubDate>Fri, 14 Sep 2007 10:05:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4906313</guid><dc:creator>benjguin</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/4906313.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=4906313</wfw:commentRss><description>&lt;p&gt;On a test environment, we had this exception on one of the two BizTalk Server 2004 SP1 nodes:
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks
&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;This was a BizTalk Server 2004 event in Application event log
&lt;/p&gt;&lt;p&gt;On the other node, they were .NET Framework 2.0 and BizTalk events (meaning that some code was not correctly written from a multithreading perspective).
&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;In fact, what happened was that BizTalk Server 2004 was running on top of .NET Framework 2.0 on one node and on top of .NET Framework 1.1 on the other node. So, an orchestration dehydrating on none node and rehydrating on the other node was just serialized with a Framework and deserialized with another Framework.
&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;Here are two KB articles related to that:
&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://support.microsoft.com/default.aspx/kb/907262/en-us"&gt;http://support.microsoft.com/default.aspx/kb/907262/en-us&lt;/a&gt; (FIX: You receive an error message when you try to transfer data between an application that runs on the .NET Framework 2.0 and an application that runs on the .NET Framework 1.1)
&lt;/li&gt;&lt;li&gt;&lt;a href="http://support.microsoft.com/kb/841405/en-us"&gt;http://support.microsoft.com/kb/841405/en-us&lt;/a&gt; (BizTalk Server 2004 requires the .NET Framework 1.1)
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Excerpt from KB841405:
&lt;/p&gt;&lt;p style="margin-left: 36pt"&gt;&lt;em&gt;To run BizTalk Server 2004 on a computer that also has the .NET Framework 2.0 installed, upgrade the computer that is running BizTalk Server 2004 to BizTalk Server 2004 SP2. BizTalk Server 2004 is only supported on a computer that has the .NET Framework 2.0 installed if BizTalk Server 2004 SP2 is also installed.
&lt;/em&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4906313" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/BizTalk+Server+2004/default.aspx">BizTalk Server 2004</category><category domain="http://blogs.msdn.com/benjguin/archive/tags/KB/default.aspx">KB</category></item><item><title>How to HTTP POST a document to a BizTalk Receive Location</title><link>http://blogs.msdn.com/benjguin/archive/2007/08/29/how-to-http-post-a-document-to-a-biztalk-receive-location.aspx</link><pubDate>Thu, 30 Aug 2007 00:30:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4634334</guid><dc:creator>benjguin</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/4634334.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=4634334</wfw:commentRss><description>&lt;p&gt;I've been looking for this sample code on my hard drive again today.
&lt;/p&gt;&lt;p&gt;It will be easier to find it on my blog &lt;span style="font-family:Wingdings"&gt;J&lt;/span&gt;
	&lt;/p&gt;&lt;p&gt;Here it is:
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;        /// &amp;lt;summary&amp;gt;
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;        /// Sends a document via Http POST
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;        /// &amp;lt;/summary&amp;gt;
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;        /// &amp;lt;param name="url"&amp;gt;URL to send to&amp;lt;/param&amp;gt;
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;        /// &amp;lt;param name="body"&amp;gt;content to send&amp;lt;/param&amp;gt;
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;        public static string SendViaHttpPost(string url, string body)
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;        {
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;            StringBuilder response = new StringBuilder();
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;            WebResponse result = null;
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;
 &lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;            try 
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;            {
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                WebRequest req = WebRequest.Create(url);
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                req.Method = "POST";
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                req.ContentType = "text/xml; charset=utf-8";
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                req.Credentials = System.Net.CredentialCache.DefaultCredentials; // use current user credentials
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                byte[] someBytes = null;
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;
 &lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                someBytes = Encoding.UTF8.GetBytes(body);
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                req.ContentLength = someBytes.Length;
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                Stream newStream = req.GetRequestStream();
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                newStream.Write(someBytes, 0, someBytes.Length);
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                newStream.Close();
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;
 &lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                result = req.GetResponse();
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                Stream ReceiveStream = result.GetResponseStream();
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                Encoding encode = System.Text.Encoding.GetEncoding("utf-8");
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                StreamReader sr = new StreamReader( ReceiveStream, encode );
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                Char[] read = new Char[256];
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                int count = sr.Read( read, 0, 256 );
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                while (count &amp;gt; 0) 
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                {
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                    String str = new String(read, 0, count);
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                    response.Append(str);
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                    count = sr.Read(read, 0, 256);
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                }
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;            } 
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;            finally 
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;            {
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                if ( result != null ) 
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                {
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                    result.Close();
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;                }
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;            }
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;            return response.ToString();
&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;        }&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4634334" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/.NET+Framework+2.0+development/default.aspx">.NET Framework 2.0 development</category><category domain="http://blogs.msdn.com/benjguin/archive/tags/BizTalk+Server+2006+R2/default.aspx">BizTalk Server 2006 R2</category></item><item><title>BizTalk explained in 2 slides</title><link>http://blogs.msdn.com/benjguin/archive/2007/07/01/biztalk-explained-in-2-slides.aspx</link><pubDate>Sun, 01 Jul 2007 17:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3643016</guid><dc:creator>benjguin</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/3643016.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=3643016</wfw:commentRss><description>&lt;P&gt;&lt;IMG title="slide 1" style="WIDTH: 603px; HEIGHT: 441px" height=662 alt="slide 1" src="http://benjguin.members.winisp.net/blogimg/btsslide1.jpg" width=896 mce_src="http://benjguin.members.winisp.net/blogimg/btsslide1.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Different services inside a company work with their own applications. They need to exchange information several times a day. For instance, sales people send orders to production once a day. All this correspond to non formal business processes.&lt;BR&gt;Services applications must continue to be able to live their lives independently.&amp;nbsp; For instance, marketing application will be upgraded to Version 2.3 next month while other applications won't move for at least 6 months.&lt;BR&gt;For these reasons, no integration between applications is done and the business processes are remain implemented at human and e-mail level.&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG height=462 src="http://benjguin.members.winisp.net/blogimg/btsslide2.jpg" width=678 mce_src="http://benjguin.members.winisp.net/blogimg/btsslide2.jpg"&gt;&lt;/P&gt;
&lt;P&gt;BizTalk Server enables implementing business processes at application level. In fact, applications send and receive messages (which can be seen as machine readable e-mails). When changing or upgrading one of the applications from v2.2 to v2.3, in order to keep automated business processes working, v2.3 must just be able to send and receive messages meaning the same thing as previous version v2.2 did (format can change) to and from BizTalk Server.&lt;BR&gt;People in each service just have to work with their application; they do not need to send e-mails to other services anymore. Sales people enter orders in sales application which will send a message to BizTalk. BizTalk will send the message to all applications which subscribed to new order messages. Production application is one of them.&lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3643016" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/BizTalk+Server+2006/default.aspx">BizTalk Server 2006</category><category domain="http://blogs.msdn.com/benjguin/archive/tags/BizTalk+Server+2004/default.aspx">BizTalk Server 2004</category><category domain="http://blogs.msdn.com/benjguin/archive/tags/BizTalk+Server+2006+R2/default.aspx">BizTalk Server 2006 R2</category></item><item><title>BizTalk Server 2006 Documenter URL</title><link>http://blogs.msdn.com/benjguin/archive/2007/06/25/biztalk-server-2006-documenter-url.aspx</link><pubDate>Tue, 26 Jun 2007 00:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3529093</guid><dc:creator>benjguin</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/3529093.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=3529093</wfw:commentRss><description>&lt;P&gt;UK SDC BizTalk 2006 Documenter tool used to be on gotdotnet.&lt;/P&gt;
&lt;P&gt;It is now, as many gotdotnet projects on codeplex.&lt;/P&gt;
&lt;P&gt;Here is the updated URL:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.codeplex.com/BizTalkDocumenter"&gt;http://www.codeplex.com/BizTalkDocumenter&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The name became simpler too: BizTalk Server 2006 Documenter&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3529093" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/BizTalk+Server+2006/default.aspx">BizTalk Server 2006</category></item><item><title>Don't remember connection strings syntax? Use a .UDL file.</title><link>http://blogs.msdn.com/benjguin/archive/2007/04/19/don-t-remember-connection-strings-syntax-use-a-udl-file.aspx</link><pubDate>Fri, 20 Apr 2007 01:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2198249</guid><dc:creator>benjguin</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/2198249.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=2198249</wfw:commentRss><description>&lt;P&gt;Here is a tip&amp;nbsp;I shared yesterday with a customer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to create a connection string and don't remember the syntax, here is a simple way of achieving your goal.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In a file folder or your Windows desktop, create a text file and rename it myCN.udl (only .udl extension is important)&lt;/LI&gt;
&lt;LI&gt;double click the file&lt;/LI&gt;
&lt;LI&gt;Enter the parameters in the UI&lt;/LI&gt;
&lt;LI&gt;Close the UI&lt;/LI&gt;
&lt;LI&gt;Open myCN.udl with notepad: you get your connection string&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2198249" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/KB/default.aspx">KB</category></item><item><title>SAP .NET Connector must be installed for all users</title><link>http://blogs.msdn.com/benjguin/archive/2007/01/14/sap-net-connector-must-be-installed-for-all-users.aspx</link><pubDate>Sun, 14 Jan 2007 23:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1466452</guid><dc:creator>benjguin</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/1466452.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=1466452</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;BizTalk Server 2004 and BizTalk Server 2006 SAP Adapter requires and uses the SAP .NET Connector which is distributed by SAP.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;For BizTalk Server 2006, you need SAP .NET Connecter 1.0.3 Runtime.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;It looks like only the user who installed the SAP .NET Connecter 1.0.3 Runtime can use it, and thus use SAP Adapter.&lt;/SPAN&gt;&lt;SPAN style="mso-fareast-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;BR&gt;If user X installs SAP .NET Connector (thru setupruntime.msi) and user Y tries to generate a schema from Visual Studio 2005, Y gets an error:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;BR&gt;Add Adapter Wizard&lt;BR&gt;------------------------------------------------------&lt;BR&gt;Unable to display adapter user interface.&lt;BR&gt;SAP .Net connector is not installed&lt;BR&gt;------------------------------------------------------&lt;BR&gt;OK&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;In order to solve the problem, you have to install the SAP .NET Connector for all users. As option doesn’t show up in the GUI, you can do it that way&amp;nbsp;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;msiexec /i SetupRuntime.msi ALLUSERS=1&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1466452" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/BizTalk+Server+2006/default.aspx">BizTalk Server 2006</category><category domain="http://blogs.msdn.com/benjguin/archive/tags/BizTalk+Server+2004/default.aspx">BizTalk Server 2004</category><category domain="http://blogs.msdn.com/benjguin/archive/tags/KB/default.aspx">KB</category></item><item><title>Delete Old Files script</title><link>http://blogs.msdn.com/benjguin/archive/2006/12/01/delete-old-files-script.aspx</link><pubDate>Fri, 01 Dec 2006 20:52:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1185797</guid><dc:creator>benjguin</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/1185797.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=1185797</wfw:commentRss><description>&lt;P&gt;This sample script (WHICH IS PROVIDED AS IS) may help purging files older than n days in a folder&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Just copy the following code to a VBS file (DeleteOldFiles.vbs).&lt;/P&gt;
&lt;P&gt;Sample call: &lt;/P&gt;
&lt;P&gt;cscript DeleteOldFiles.vbs C:\Windows\Temp 90&lt;/P&gt;
&lt;P&gt;The code is:&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option explicit&lt;/P&gt;
&lt;P&gt;Call DoTheJob()&lt;BR&gt;WScript.Echo "--- end of script execution ---"&lt;/P&gt;
&lt;P&gt;Sub DoTheJob&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim limitDate&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim formattedLimitDate&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim folder&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim strComputer&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim objWMIService&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim colFileList&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim objFile&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim nbFiles&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim totalFiles&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim nbErrors&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim result&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim nbDays&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if WScript.Arguments.Count &amp;lt;&amp;gt; 2 then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Echo "usage : DeleteOldFiles.vbs &amp;lt;folder&amp;gt; &amp;lt;nb of days ago&amp;gt;"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Echo "sample: DeleteOldFiles.vbs C:\Windows\temp 90"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; folder = WScript.Arguments(0)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nbDays = WScript.Arguments(1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'calculate and format limit date&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; limitDate = DateAdd("d", -1 * nbDays , Date)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; formattedLimitDate = DatePart("yyyy", limitDate)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if DatePart("m", limitDate) &amp;lt; 10 then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formattedLimitDate = formattedLimitDate &amp;amp; "0"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; formattedLimitDate = formattedLimitDate &amp;amp; DatePart("m", limitDate)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if DatePart("d", limitDate) &amp;lt; 10 then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formattedLimitDate = formattedLimitDate &amp;amp; "0"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; formattedLimitDate = formattedLimitDate &amp;amp; DatePart("d", limitDate)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'show what will be done&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Echo "Will remove files from " &amp;amp; folder &amp;amp; " with a date older than " &amp;amp; formattedLimitDate &amp;amp; " (" &amp;amp; nbDays &amp;amp; " days ago)"&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Get the files and delete the old ones&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strComputer = "."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objWMIService = GetObject("winmgmts:" _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; "{impersonationLevel=impersonate}!\\" &amp;amp; strComputer &amp;amp; "\root\cimv2")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set colFileList = objWMIService.ExecQuery _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ("ASSOCIATORS OF {Win32_Directory.Name='" &amp;amp; folder &amp;amp; "'} Where " _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; "ResultClass = CIM_DataFile")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nbFiles = 0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; totalFiles = 0&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nbErrors = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each objFile In colFileList&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; totalFiles = totalFiles + 1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if objFile.CreationDate &amp;lt; formattedLimitDate then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = objFile.Delete()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Echo objFile.Name &amp;amp; " - " &amp;amp; objFile.CreationDate &amp;amp; ". Delete Result: " &amp;amp; result&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if result = 0 then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nbFiles = nbFiles + 1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nbErrors = nbErrors + 1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Show the result&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Echo "Total files in folder: " &amp;amp; totalFiles&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Echo "Deleted files:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;amp; nbFiles&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.echo "Errors:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;amp; nbErrors&lt;BR&gt;End Sub&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1185797" width="1" height="1"&gt;</description></item><item><title>Application Pool with a domain user account identity</title><link>http://blogs.msdn.com/benjguin/archive/2006/09/21/765231.aspx</link><pubDate>Fri, 22 Sep 2006 01:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:765231</guid><dc:creator>benjguin</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benjguin/comments/765231.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benjguin/commentrss.aspx?PostID=765231</wfw:commentRss><description>&lt;U&gt;Context&lt;BR&gt;&lt;BR&gt;&lt;/U&gt;Windows Server 2003 / IIS6&lt;BR&gt;- Virtual Directory running under an application pool with a domain user account identity&lt;BR&gt;- Virtual Directory security is set to Integrated authentication only&lt;BR&gt;- Trying to access this virtual directory from a domain user account (same domain as app pool identity account)&lt;BR&gt;&lt;BR&gt;&lt;SPAN style="TEXT-DECORATION: underline"&gt;Symptoms&lt;/SPAN&gt;&lt;BR&gt;From web server, no pb. &lt;BR&gt;From another machine, domain user is challenged for user name and password and fail in 401. HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials&lt;BR&gt;&lt;BR&gt;&lt;SPAN style="TEXT-DECORATION: underline"&gt;Resolution&lt;BR&gt;&lt;/SPAN&gt;Using NTLM only solves the issue&lt;BR&gt;This can be done with the following command (typically from C:\Inetpub\AdminScripts)&lt;BR&gt;&lt;PRE&gt;cscript adsutil.vbs w3svc/NtAuthenticationProviders "NTLM"&lt;/PRE&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=765231" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benjguin/archive/tags/Web+Infrastructure/default.aspx">Web Infrastructure</category><category domain="http://blogs.msdn.com/benjguin/archive/tags/KB/default.aspx">KB</category></item></channel></rss>