<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>Configuration &amp; Scripting</title><link>http://forums.iis.net/1034.aspx</link><description>Use this forum to get assistance with understanding, editing, or using the IIS metabase including automating with ADSI or WMI</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Starting application pools with WMI\ADSI (C#) hangs immediately after reboot</title><link>http://forums.iis.net/thread/1925565.aspx</link><pubDate>Fri, 20 Nov 2009 10:51:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925565</guid><dc:creator>OmriSela</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1925565.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1925565</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Starting application pools with WMI\ADSI (C#) hangs immediately after reboot&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I have encountered a strange situation where starting an application pool from a windows service (written in C#, set to &amp;quot;Automatic&amp;quot; startup) using WMI or ADSI immediately after the server reboots hangs. &lt;/p&gt;
&lt;p&gt;I&amp;#39;ll describe the issue: &lt;/p&gt;
&lt;p&gt;We are developing a large application (Windows 2003 Server SP2, IIS 6.0) which contains the following main processes (these processes are invoked &amp;amp; initialized using a windows service startup procedure when the application is started): &lt;/p&gt;
&lt;p&gt;1) XServer1.exe, XServer2.exe - These processes are native COM-Exe servers, contains some logics, but mainly supplies COM objects to other processes via DCOM (mainly .NET2COM interOp calls &amp;amp; pure COM calls). For example, some of the classic ASP &amp;quot;Application Scope static objects&amp;quot; (w3wp.exe) are COM objects which &amp;quot;live&amp;quot; inside these processes.&lt;/p&gt;
&lt;p&gt;2) dllhost.exe - this is a COM+ application. Some of our DLLs are loaded into this process which acts as a &amp;quot;state server&amp;quot; (the same idea as the ASP.NET out-of-proc sessions server, but for classic ASP pages). &lt;/p&gt;
&lt;p&gt;3) 3 different IIS application pools (we&amp;#39;ll call them appPool1\2\3) - containers of our ASP pages, ASP.NET pages, WCF services etc. Code (native C++ COM dlls &amp;amp; C#) in these application pools (w3wp.exe&amp;#39;s) usually makes DCOM calls to the processes described in (1) &amp;amp; (2). Only appPool1 can be configured as a Web Garden. &lt;/p&gt;
&lt;p&gt;In order to Start\Stop our application we have written a windows Service (C#) which controls these procedures. Our service process is called XWinService.exe. The service depends on the following windows services (the list began with the first 4 services, ongoing tries made the list like this...): &lt;/p&gt;
&lt;p&gt;W3SVC &lt;br /&gt;aspnet_state &lt;br /&gt;COMSysApp &lt;br /&gt;DcomLaunch &lt;br /&gt;winmgmt &lt;br /&gt;lanmanserver &lt;br /&gt;lanmanworkstation &lt;br /&gt;seclogon &lt;br /&gt;Browser &lt;br /&gt;TermService &lt;/p&gt;
&lt;p&gt;The summary of the Stop procedure of the application (implemented by the service): &lt;/p&gt;
&lt;p&gt;1) Stop all 3 IIS application pools (appPool1\2\3) - This is done to prevent w3wp.exe processes to jump alive when the application is shut-down. This is implemented with WMI from C# (system.Management.dll) &lt;br /&gt;2) Stop XServer1\2.exe &lt;br /&gt;3) Stop the COM+ application (dllhost.exe). &lt;/p&gt;
&lt;p&gt;The summary of the Start procedure of the application (implemented by the service): &lt;/p&gt;
&lt;p&gt;1) Execute the Stop procedure - This ensures that no HTTP hits will wake a w3wp.exe process before it&amp;#39;s time. &lt;/p&gt;
&lt;p&gt;2) Invokes &amp;amp; Initializes the XServer1\2.exe COM-Exe servers - Initialization is required prior to any w3wp.exe invocation. Only after some object had been initialized, w3wp.exe&amp;#39;s can access these servers. This is implemented by .NET2COM InterOp (eventually DCOM). &lt;/p&gt;
&lt;p&gt;3) Invokes &amp;amp; initialized the dllhost.exe (COM+ application) process - This is implemented by the ComAdmin Catalog API (C#). &lt;/p&gt;
&lt;p&gt;4) Starts our 3 application pools - This allows incoming HTTP hits to wake w3wp.exe processes and start serving requests. &lt;/p&gt;
&lt;p&gt;This is the C# code which is responsible to start\stop application pools (WMI). This code runs in our service processes (XWinService.exe): &lt;/p&gt;
&lt;p&gt;ConnectionOptions co = new ConnectionOptions(); &lt;br /&gt;ManagementScope scope = new ManagementScope(@&amp;quot;\\localhost\root\MicrosoftIISV2&amp;quot;, co); &lt;br /&gt;foreach (string appPool in AppPools) &lt;br /&gt;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp; string objPath = string.Format(&amp;quot;IISApplicationPool.Name=&amp;#39;W3SVC/AppPools/{0}&amp;#39;&amp;quot;, appPool); &lt;br /&gt;&amp;nbsp;&amp;nbsp; using (ManagementObject mc = new ManagementObject(objPath)) &lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mc.Scope = scope; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Operation.ToLower() == &amp;quot;start&amp;quot;) &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;mc.InvokeMethod(&amp;quot;Start&amp;quot;, null, null); // ### The problematic line of code ### &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;} &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;else if (Operation.ToLower() == &amp;quot;stop&amp;quot;) &lt;br /&gt;&amp;nbsp; &amp;nbsp;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;mc.InvokeMethod(&amp;quot;Stop&amp;quot;, null, null); &lt;br /&gt;&amp;nbsp; &amp;nbsp;} &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;else if (Operation.ToLower() == &amp;quot;recycle&amp;quot;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;mc.InvokeMethod(&amp;quot;Recycle&amp;quot;, null, null); &lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;} &lt;br /&gt;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now the issue: &lt;/p&gt;
&lt;p&gt;Prior to rebooting the server, starting the service manually (from the services.msc tool) succeeds without any problems. also, stopping it is OK. We have set the service to start &amp;quot;Automatic&amp;quot;, that is, will start when the server (Win2K3 SP2) starts and rebooted the server. When the server started (the login screen appeared), our service was &amp;quot;stuck&amp;quot; (status = &amp;quot;Starting&amp;quot;) and will NEVER (it hang for 2 days!) start. &lt;/p&gt;
&lt;p&gt;Analyzing the processes reveled the following: &lt;/p&gt;
&lt;p&gt;1) The XWinService.exe process was stuck on the problematic line of code (### above ###). This hanged for 2 days until we killed the process. Please note: Shutting down the application pools (the Start procedure begins with a Stop procedure) did not hang! &lt;/p&gt;
&lt;p&gt;2) From a DUMP file taken (with DebugDiag tool) from XWinService.exe during this &amp;quot;hang&amp;quot; we can see the thread which is waiting. This is the (native) stack trace of it: &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Thread 6 - System ID 2784&lt;/b&gt;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0"&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Entry point&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;mscorwks!Thread::intermediateThreadProc&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Create time&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;11/19/2009 1:40:05 PM&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Time spent in user mode&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;0 Days 00:00:00.078&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Time spent in kernel mode&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;0 Days 00:00:00.781&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;This thread is making a COM call to &lt;b&gt;multi-threaded apartment (MTA)&lt;/b&gt; in &lt;b&gt;process 884&lt;/b&gt;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0"&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;p align="center"&gt;&lt;b&gt;Function&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p align="center"&gt;&lt;b&gt;Source&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ntdll!KiFastSystemCallRet&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ntdll!NtRequestWaitReplyPort+c&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!LRPC_CCALL::SendReceive+230&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!I_RpcSendReceive+24&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ole32!ThreadSendReceive+138&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ole32!CRpcChannelBuffer::SwitchAptAndDispatchCall+112&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ole32!CRpcChannelBuffer::SendReceive2+d3&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ole32!CAptRpcChnl::SendReceive+ab&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ole32!CCtxComChnl::SendReceive+1a9&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!NdrProxySendReceive+43&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!NdrClientCall2+206&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!ObjectStublessClient+8b&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!ObjectStubless+f&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;fastprox!CWbemSvcWrapper::XWbemServices::ExecMethod+85&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!CLRToCOMWorker+19a&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;0x006ab74e&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;System_Management_ni+79f54&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;0x03336ef4&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!MethodDesc::GetMethodEntryPoint+59&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!MethodDesc::DoPrestub+517&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;0x033361b8&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!PreStubWorker+139&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;0x03335c9f&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorlib_ni+216cf6&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorlib_ni+22019f&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorlib_ni+216c74&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!CallDescrWorker+33&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!CallDescrWorkerWithHandler+a3&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!MethodDesc::CallDescr+19c&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!MethodDesc::CallTargetWorker+1f&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!MethodDescCallSite::CallWithValueTypes+1a&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!ThreadNative::KickOffThread_Worker+192&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!Thread::DoADCallBack+32a&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!Thread::ShouldChangeAbortToUnload+e3&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!Thread::ShouldChangeAbortToUnload+30a&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!Thread::ShouldChangeAbortToUnload+33e&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!ManagedThreadBase::KickOff+13&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!ThreadNative::KickOffThread+269&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;mscorwks!Thread::intermediateThreadProc+49&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;kernel32!BaseThreadStart+34&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This thread is calling (via DCOM) a component in process 884, which is svchost.exe, running the following services: AeLookupSvc, AudioSrv, Browser, CryptSvc, dmserver, EventSystem, helpsvc, lanmanserver, lanmanworkstation, Schedule, seclogon, SENS, ShellHWDetection, TrkWks, winmgmt, wuauserv, WZCSVC. &lt;/p&gt;
&lt;p&gt;As you can see the &amp;quot;winmgmt&amp;quot; service (responsible for WMI) is running in this process and our service depends on it, so our service will start after winmgmt is started (the same for IIS W3SVC service).. &lt;/p&gt;
&lt;p&gt;The svchost.exe process (884) was dumped and we can see a thread (waiting for a DCOM call to end) accessing process&amp;nbsp;2880&amp;nbsp;which is - wmiprvse.exe (I guess this is the WMI server. Don&amp;#39;t know if it&amp;#39;s relevent, but there were 2 instances of this process). This is the native call stack of the thread (in svchost.exe):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a title="884:424Thread3816" name="884:424Thread3816"&gt;&lt;/a&gt;Thread 48 - System ID 3816&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0"&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Entry point&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;wbemcore!CCoreQueue::_ThreadEntry&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Create time&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;11/19/2009 1:40:56 PM&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Time spent in user mode&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;0 Days 00:00:00.00&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Time spent in kernel mode&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;0 Days 00:00:00.00&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;This thread is making a COM call to &lt;b&gt;multi-threaded apartment (MTA)&lt;/b&gt; in &lt;b&gt;process 2880&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0"&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;p align="center"&gt;&lt;b&gt;Function&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p align="center"&gt;&lt;b&gt;Source&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ntdll!KiFastSystemCallRet&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ntdll!NtRequestWaitReplyPort+c&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!LRPC_CCALL::SendReceive+230&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!I_RpcSendReceive+24&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ole32!ThreadSendReceive+138&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ole32!CRpcChannelBuffer::SwitchAptAndDispatchCall+112&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ole32!CRpcChannelBuffer::SendReceive2+d3&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ole32!CAptRpcChnl::SendReceive+ab&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ole32!CCtxComChnl::SendReceive+1a9&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!NdrProxySendReceive+43&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!NdrClientCall2+206&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!ObjectStublessClient+8b&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;rpcrt4!ObjectStubless+f&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;fastprox!CWbemSvcWrapper::XWbemServices::ExecMethodAsync+96&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;wmiprvsd!CInterceptor_IWbemProvider::ExecMethodAsync+1d7&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;wbemcore!CWbemNamespace::Exec_ExecMethod+5a1&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;wbemcore!CAsyncReq_ExecMethodAsync::Execute+3c&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;wbemcore!CCoreQueue::pExecute+3c&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;wbemcore!CCoreQueue::Execute+18&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;wbemcore!CWbemQueue::Execute+f6&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;wbemcore!CCoreQueue::ThreadMain+111&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;wbemcore!CCoreQueue::_ThreadEntry+45&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;kernel32!BaseThreadStart+34&lt;/p&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3) Setting our service to &amp;quot;Manual&amp;quot; and starting it (manually - after logging into the server or starting it remotely from a different server immediately after reboot) is OK - nothing hangs. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4) We deleted our service (from the registry!) and placed a batch file in the windows &amp;quot;startup&amp;quot; folder. This batch files calls the service&amp;#39;s code, but runs it as a normal C# executable. After server reboot, it also hang on the same problematic line of code (again... for 2 days until we killed it). &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;5) Using ADSI (System.DirectoryServices) instead of WMI had the same results (starting the application pools hanged!). &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have been digging into this for the past 2 weeks... &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My questions: &lt;/p&gt;
&lt;p&gt;========== &lt;/p&gt;
&lt;p&gt;1) Did anyone encounter the same issue? &lt;/p&gt;
&lt;p&gt;2) Does anyone know why it hangs? Is there any additional service dependency we should take in mind? &lt;/p&gt;
&lt;p&gt;3) Does anyone have a solution for this issue? &lt;/p&gt;
&lt;p&gt;4) Why is this happening after a reboot only when the service to set to &amp;quot;Automatic&amp;quot; startup? If we do it manually - everything is Ok!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advanced,&lt;/p&gt;
&lt;p&gt;Omri&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to Create Virtual Directory Programatically?</title><link>http://forums.iis.net/thread/1925555.aspx</link><pubDate>Fri, 20 Nov 2009 08:55:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925555</guid><dc:creator>maverickhyd</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1925555.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1925555</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can anyone post the code to create a virtual directory programatically?&lt;/p&gt;
&lt;p&gt;I have a Folder&amp;nbsp;&amp;quot;Projects&amp;quot; in c:\inetpub\wwwroot&lt;/p&gt;
&lt;p&gt;I need to create a Virutual directory under this folder&lt;/p&gt;
&lt;p&gt;Any Help&amp;nbsp;Would be Appritiated&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please Look at this Image for Ref&lt;/p&gt;
&lt;p&gt;&lt;img src="http://img194.imageshack.us/img194/3776/iisimage1.png" alt="" /&gt;&lt;/p&gt;</description></item><item><title>IIS 5.1 (Windows XP) - modify using vbscript??</title><link>http://forums.iis.net/thread/1924866.aspx</link><pubDate>Mon, 16 Nov 2009 05:15:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924866</guid><dc:creator>stephenmbell</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1924866.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1924866</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello all,&lt;br /&gt;&lt;br /&gt;I have roughly 650 windows xp machines running IIS 5.1 that I need to modify the home directory (among other things).&lt;br /&gt;&lt;br /&gt;I am wondering if there is a way to automate this process with a vbscript??&lt;br /&gt;&lt;br /&gt;I have been searching all of my scripting resources web sites and I cannot seem to find something that works.&amp;nbsp; I have found some things for IIS 6, but not 5.1.&lt;br /&gt;&lt;br /&gt;My ultimate goal is to write a vbscript that will run locally on all 650 machines that modifies the home directory, creates 2 virtual directories and sets the NTFS permissions using CACLS.&lt;br /&gt;&lt;br /&gt;Any help would be greatly apprectiated&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;sb&lt;/p&gt;</description></item><item><title>How to not show .config file when listing directory files</title><link>http://forums.iis.net/thread/1925005.aspx</link><pubDate>Tue, 17 Nov 2009 03:36:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925005</guid><dc:creator>erikkl2000</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1925005.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1925005</wfw:commentRss><description>I am using a site for info use only. there is no web pages only directory&amp;#39;s and PDF files. 

What can i do to make the web.config file to NOT show up in the list of directory&amp;#39;s. ?

here&amp;#39;s the site, i will break it up so no one will think i am trying to get some rankage.


details.  bla bla storefrontsystems.net


just remove the bla bla and push the details. to the right.

thanks..</description></item><item><title>How to delete an app pool c#</title><link>http://forums.iis.net/thread/1925091.aspx</link><pubDate>Tue, 17 Nov 2009 18:03:35 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925091</guid><dc:creator>amintaheri</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1925091.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1925091</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I need assistance in deleting an application pool programatically using C# in IIS 7&lt;/p&gt;
&lt;p&gt;I have tried looking through all the docs and all I can find is a WMI for vbs which unfortunately doesnt work in c#.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>IUSR_Machinename</title><link>http://forums.iis.net/thread/1925018.aspx</link><pubDate>Tue, 17 Nov 2009 08:45:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925018</guid><dc:creator>tilak1980</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1925018.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1925018</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please tell me, how would i know the &lt;strong&gt;IUSR_Machinename&lt;/strong&gt; account password, please tell me, i have tried with script which i got from google but i am not sure whether it is correct password or not?,&amp;nbsp; In my iis 6.0 is working fine till morning. after restarting the server the sites and applications are asking authentication while accessing the site, what should i do instead of adding the new account: please suggest what should i do and tell me the steps&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Tom Edward&lt;/p&gt;</description></item><item><title>Find a directory entry in IIS metabase programmatically</title><link>http://forums.iis.net/thread/1919818.aspx</link><pubDate>Wed, 07 Oct 2009 14:58:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1919818</guid><dc:creator>CRajkumar.ece</dc:creator><slash:comments>9</slash:comments><comments>http://forums.iis.net/thread/1919818.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1919818</wfw:commentRss><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;How to find a specific folder(directory entry) in IIS Metabase programmatically?&lt;/p&gt;
&lt;p&gt;I have a Website that is hosted in IIS 6 and that has a folder named &amp;quot;Portal&amp;quot;. I have to search for that folder in IIS metabase and edit the properties such as &amp;quot;IPSecurity&amp;quot; and assign a value.&lt;/p&gt;
&lt;p&gt;This folder may be in the top root folder or inside any sub folder etc. I have no clue where the folder path reside. If there are two folders with same name then i have to apply the settings to both the folder.&lt;/p&gt;
&lt;p&gt;Any Ideas Please?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Script to add site to intranet zone</title><link>http://forums.iis.net/thread/1924799.aspx</link><pubDate>Sun, 15 Nov 2009 03:24:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924799</guid><dc:creator>altjx</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1924799.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1924799</wfw:commentRss><description>&lt;p&gt;i just finally got integrated windows authentication set up. i found out that the internal website had to be added to the intranet zone in order for the integrated windows authentication to work.&lt;/p&gt;
&lt;p&gt;is there a script out there that i can send all my clients so i don&amp;#39;t have to go around doing all of this manually?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>IIS 6 one-to-one mapping Programmatically</title><link>http://forums.iis.net/thread/1923912.aspx</link><pubDate>Mon, 09 Nov 2009 15:18:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923912</guid><dc:creator>mcguffin</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1923912.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1923912</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am trying to programmatically map client certificates one-to-one in IIS 6 from a cer file.&amp;nbsp; We capture the client certificate via web page then manually do the one-to-one mapping after confirming the user&amp;#39;s identity and their need to have access to the site.&amp;nbsp; I have seen scripts for mapping client certs via web page but I need to find one that will read from the cer file then create the mapping.&amp;nbsp; Has anyone written or seen code that will do this?&amp;nbsp; I know the IISCertMapper tool exists and I have tried to get it to read from a Cer file but haven&amp;#39;t had any success.&amp;nbsp; Any help would be greatly appreciated.&lt;/p&gt;&lt;p&gt;Mike &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Windows Home Server - move ALL of IIS to D: drive?</title><link>http://forums.iis.net/thread/1924008.aspx</link><pubDate>Tue, 10 Nov 2009 03:31:34 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924008</guid><dc:creator>Gunner_Don</dc:creator><slash:comments>5</slash:comments><comments>http://forums.iis.net/thread/1924008.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1924008</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I consider myself a computer expert - except for this IIS stuff!! Anyway, WHS only allows for a 20GB C: drive. I have a 1.5TB D: drive now and I managed to manually move the IIS websites to drive D:\inetpub\wwwroot. My websites work fine. My PROBLEM is I want to install Windows Home Server Connect on my workstations mainly for the image backup capability (I sure love the idea of block-level backup). But WHS&amp;#39;s ftp server doesn&amp;#39;t work properly (that&amp;#39;s okay, I have filezilla running fine) and there are some other small annoyances.&lt;/p&gt;&lt;p&gt;Obviously I did it wrong, but now that I have my Wordpress blog, websites, email, ftp, MySQL, and even PHP working properly from the D: drive I don&amp;#39;t want to start over to fix it &amp;quot;properly.&amp;quot; Is there a way to fix it so the WHS Connect software can &amp;quot;see&amp;quot; the server? I can see it from Network Places, but WHS Connect times out every time.&lt;/p&gt;&lt;p&gt;Man, I wish I knew what I was doing!! lol.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Don &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Custom HTTP Headers configured in IIS6</title><link>http://forums.iis.net/thread/1923321.aspx</link><pubDate>Wed, 04 Nov 2009 07:20:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923321</guid><dc:creator>kgu</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1923321.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1923321</wfw:commentRss><description>&lt;p&gt;I found that&amp;nbsp;all the websites in&amp;nbsp;one of the domains are configured with custom p3p headers. Is this done by Group Policy? If so, when item forces this configuration?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;And actually we provide a p3p header in our code. Therefore there will be two p3p headers in the response and only the first is effective. Is it possible to overwrite the preconfigured p3p header in IIS6? I think IIS7 is able to so this, right?&lt;/p&gt;</description></item><item><title>The best Settings to IIS 7 or IIS 6</title><link>http://forums.iis.net/thread/1923952.aspx</link><pubDate>Mon, 09 Nov 2009 19:24:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923952</guid><dc:creator>brunom_26</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1923952.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1923952</wfw:commentRss><description>&lt;p&gt;I need to know how is the best settings to configure our server, this server contains a windows server 2003 with IIS 6 and a server with windows 2008 with IIS 7.&lt;/p&gt;
&lt;p&gt;Our application woks on this servers but it&amp;#39;s so slow and it stopped work in few times and we are thinking that is a IIS settings that we can reconfigure to work better.&lt;/p&gt;
&lt;p&gt;If somebody have a guide or experience to give some help.&lt;/p&gt;</description></item><item><title>Default webSite</title><link>http://forums.iis.net/thread/1923917.aspx</link><pubDate>Mon, 09 Nov 2009 15:46:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923917</guid><dc:creator>Davide85.r</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1923917.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1923917</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;br /&gt;I have installed &lt;strong&gt;Internet Printing&lt;/strong&gt; on IIS. I contact website with &lt;a href="http://nameserver/printers"&gt;http://nameserver/printers&lt;/a&gt;.&amp;nbsp; I would like to reach the site through &lt;a href="http://nameserver/"&gt;http://nameserver&lt;/a&gt;&amp;nbsp;but I could not, can you help?&lt;/p&gt;
&lt;p&gt;Bye&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>The request has been aborted.</title><link>http://forums.iis.net/thread/1923716.aspx</link><pubDate>Fri, 06 Nov 2009 21:58:14 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923716</guid><dc:creator>Alex23984</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1923716.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1923716</wfw:commentRss><description>Hi,
    Below event message. How to configure IIS 6 on Win 2003 Server in order to download big files? File sizes are bigger than 120 MB.

Thanks.
Alex.

---------------------------------------------------------------------------------------------------------------------------------------------
Event code: 3001 
Event message: The request has been aborted. 
Event time: 11/6/2009 4:32:23 PM 
Event time (UTC): 11/6/2009 9:32:23 PM 
Event ID: 856f7a5323d348318a6588fb98a6d21d 
Event sequence: 26 
Event occurrence: 4 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/Root/
    Trust level: Full 
    Application Virtual Path: 
    Application Path: 
    Machine name: WEBSERVER1 
 
Process information: 
    Process ID: 2896 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 
 
Exception information: 
    Exception type: HttpException 
    Exception message: Request timed out. 
 
Request information: 
    Request URL: https://www.WebSite.com/Dir1/File1.zip?Key=345 
    Request path: /Dir1/File1.zip 
    User host address: 127.1.1.0
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
 
Thread information: 
    Thread ID: 1 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace: 
 
.</description></item><item><title>running SQL code from form or page</title><link>http://forums.iis.net/thread/1923662.aspx</link><pubDate>Fri, 06 Nov 2009 15:22:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923662</guid><dc:creator>davidiusk</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1923662.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1923662</wfw:commentRss><description>&lt;p style="MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;I’d like to setup a simple page to run database scripts on internal web servers. Ideally there’d be a box to paste the sql into or a browse button to find a *.sql file. It would be great if it would work for SLQ Server and Oracle. Any suggestions on simple code samples or web based applications to do this?&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>configure Wild card SSL for subdomain programatically in web application</title><link>http://forums.iis.net/thread/1885899.aspx</link><pubDate>Tue, 25 Nov 2008 13:40:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1885899</guid><dc:creator>gomathimajestic</dc:creator><slash:comments>6</slash:comments><comments>http://forums.iis.net/thread/1885899.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1885899</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;My web application creates subdomains(sites) under a the main domain say &lt;a href="http://www.mydomain.com/"&gt;www.mydomain.com&lt;/a&gt;. Web server is installed with IIS 6.0.&amp;nbsp;I have installed wildcard SSL for &lt;a href="http://www.mydomain.com/"&gt;www.mydomain.com&lt;/a&gt;. When my app creates a sudomain say &lt;a href="http://www.in.mydomain.com/"&gt;www.in.mydomain.com&lt;/a&gt; the SSL should be applied automatically in the port 443.&amp;nbsp;But it is not happening when the subsite starts running.So I ran&amp;nbsp;the adminscript(adsutil.vbs) using csript.exe in cmd prompt manually for each sub domain.&amp;nbsp;, &amp;nbsp;since it si a metabase property.&lt;/p&gt;&lt;font color="#a31515" size="2"&gt;cscript.exe adsutil.vbs set /w3svc/2063634474/SecureBindings &amp;quot;:&lt;font color="#a31515" size="2"&gt;443:testsgs.cme.edu&amp;quot;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt; 
&lt;p&gt;where 2063634474 is site ID in IIS&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;Only then the SSL gets ebnabled which doesn&amp;#39;t fulfil the requirement. so please let me know if u got solution for this.ie ebnabling ssl for subdomains should be automated from the web application itself while&amp;nbsp;the site is created itself. &lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;gomathi&lt;/p&gt;</description></item><item><title>Hiding Server Path in the URL</title><link>http://forums.iis.net/thread/1923315.aspx</link><pubDate>Wed, 04 Nov 2009 06:30:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923315</guid><dc:creator>ravindranath_kct</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1923315.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1923315</wfw:commentRss><description>&lt;p&gt;We have developed a website for our client.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The website has been deployed on the client’s intranet. &lt;/p&gt;
&lt;p&gt;The URL for the application is like this &lt;a href="http://servername/applicationname/"&gt;http://servername/applicationname/&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;The client prefers a URL of the following type &lt;a href="http://applicationname/"&gt;http://applicationname&lt;/a&gt;, &lt;/p&gt;
&lt;p&gt;so that they just have to type the application name in the URL textbox . They want to avoid typing the entire application share path to access the site. Are there settings which need to be added in the web application (The web application is developed in Microsoft ASP .NET)? &lt;/p&gt;
&lt;p&gt;Are there settings which need to be added in the web application( Microsoft ASP .NET)?&lt;/p&gt;
&lt;p&gt;Please advise me how we can configure this and implement.&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;</description></item><item><title>Adding Custom HTTP Header to sub directory</title><link>http://forums.iis.net/thread/1922517.aspx</link><pubDate>Wed, 28 Oct 2009 18:29:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922517</guid><dc:creator>gerardflynn</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1922517.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1922517</wfw:commentRss><description>here is my code
i am trying to add a custom http header to the sub directory of my web site
is it possible to do this

ta 
Gerard


Dim IISOBJ, CustomHeaders, Parts, HeaderName, HeaderValue

  &amp;#39;Get the mimemap object. 
  Set IISOBJ = GetObject(&amp;quot;IIS://LocalHost/W3SVC/1/root/test/css&amp;quot;) 

  CustomHeaders = IISOBJ.HttpCustomHeaders
  if (ubound(CustomHeaders) = -1) then
          Redim CustomHeaders(0)
          Index  = 0
  else
         Redim Preserve CustomHeaders(UBOund(CustomHeaders)+1)
         Index = UBOund(CustomHeaders)
  end if 

  HeaderName = &amp;quot;Testing&amp;quot;
  HeaderValue = &amp;quot;123456&amp;quot;

  &amp;#39; Note: I beleive the space after the : is required!
  CustomHeaders(Index) = headerName &amp;amp; &amp;quot;: &amp;quot; &amp;amp; HeaderValue

  IISOBJ.HttpCustomHeaders = CustomHeaders
  IISOBJ.SetInfo   

  WScript.Echo &amp;quot;Header               Value&amp;quot; 
  WScript.Echo &amp;quot;==========================&amp;quot; 
  
  &amp;#39;Display the mappings
  if (ubound(CustomHeaders) = -1) then
        WScript.Echo &amp;quot;No custom headers defined for this web site&amp;quot;
 else
        for pos = lbound(CustomHeaders) to uBound(CustomHeaders)
             Parts = Split(CustomHeaders(Pos), &amp;quot;:&amp;quot;)
             WScript.Echo Parts(0) &amp;amp; space(20-len(Parts(0))) &amp;amp; Parts(1)
       next
end if </description></item><item><title>Strange IIS Log Behaviour</title><link>http://forums.iis.net/thread/1922767.aspx</link><pubDate>Fri, 30 Oct 2009 10:24:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922767</guid><dc:creator>raajesh</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1922767.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1922767</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi ,&lt;/p&gt;&lt;p&gt;&amp;nbsp; I am using IIS 5.1 , as a part of my application I had to read IIS&amp;nbsp; FTP logs from my application which needs to be updated, but when I start the application using this &amp;quot;&lt;i&gt;http://www.codeproject.com/KB/files/LogMonitor.aspx&lt;/i&gt;&amp;quot;&amp;nbsp; I found it reads the log messages as long as connection is not made, once any client makes connection , the log size automatically increases to 64k and once the IIS FTP is disconnected , the file size comes to its actual size&amp;nbsp; by which this application is not able to read logs in real time!&lt;/p&gt;&lt;p&gt;&amp;nbsp;I wrote my own application before testing with this application,It was same behavior as of this application . I found out the when IIS FTP is connected , the log size increses to 64k and when open in a notepad it shows huge &amp;quot;NULL&amp;quot;&amp;nbsp; charaters appended at end of the file, once the IIS is stopped and if the log file is opened the &amp;quot;NULL&amp;quot; charaters are not visible!.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I think something is going wrong when a client connects to IIS server. The time which is logged is also different from system time! &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I would like to know if there is any pointers to this problem which I am facing in reading the&amp;nbsp; logs, I found the application link which I have sent is used by many users who have mentioned it as excellent application , but some how I am not able use the application on my system. &lt;/p&gt;&lt;p&gt;I uninstalled IIS and re-installed it , It was all same,I appriciate if anyone in the form give me some pointers in this issue.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>OpenRemote() Microsoft.Web.Administration</title><link>http://forums.iis.net/thread/1893708.aspx</link><pubDate>Tue, 17 Feb 2009 17:12:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1893708</guid><dc:creator>ceMo_</dc:creator><slash:comments>3</slash:comments><comments>http://forums.iis.net/thread/1893708.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1893708</wfw:commentRss><description>&lt;p&gt;Hey guy&amp;#39;s,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve a problem to connect to another remoter computers by using different user credentials. I&amp;#39;ve already read the other threads...it doesn&amp;#39;t help me.&lt;br /&gt;&lt;br /&gt;Do you know any possibilities to connect with different credentials?&lt;br /&gt;I&amp;#39;ve already written a class (in vb.net) to impersonate user, but I&amp;#39;m getting still the same error.&lt;/p&gt;
&lt;p&gt;Acces is denied&amp;nbsp;-&amp;gt; 80070005&lt;/p&gt;
&lt;p&gt;Please help me....&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;ceMo_&lt;/p&gt;</description></item><item><title>VBScript for changing Application Pool on existing site...</title><link>http://forums.iis.net/thread/1922451.aspx</link><pubDate>Wed, 28 Oct 2009 07:13:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922451</guid><dc:creator>macronfactor</dc:creator><slash:comments>2</slash:comments><comments>http://forums.iis.net/thread/1922451.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1922451</wfw:commentRss><description>&lt;p&gt;Both the IIS site and the Application Pool currently exist. I get the site identifier first, and then proceed to get the WMI object and assign an existing App Pool to the site.&lt;/p&gt;
&lt;p&gt;I am getting an error on the &amp;quot;set objSite...&amp;quot; line that an object is required for objWMIService. I am sure I am missing something, just not obvious to me.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the code:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;strAppPool = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;WebAppPool&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Set&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; objAppPool = GetObject(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;IIS://localhost/w3svc/AppPools/&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; strAppPool)&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Set&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; IISOBJ = getObject(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;IIS://LocalHost/W3SVC&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;For&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;each&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Object &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; IISOBJ&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (Object.Class = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;IIsWebServer&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;then&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (Object.ServerComment = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;MyWeb&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;then&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;strSiteID = Object.Name&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;end&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;end&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;next&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;strSitePath = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;IIS://localhost/W3SVC/&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; strSiteID&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Set&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; objSite = objWMIService.Get(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;IIsWebServerSetting=&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; strSitePath &amp;amp; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Set&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; objVirtualDirectory = objWMIService.Get(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;IIsWebVirtualDirSetting=&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; strSitePath &amp;amp; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/ROOT&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;
&lt;p&gt;&amp;#39; Assign the Pool to the Site&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;objVirtualDirectory.AppPoolID = strAppPool&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;objVirtualDirectory.Put_()&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Create Website on D:\ drive</title><link>http://forums.iis.net/thread/1870145.aspx</link><pubDate>Fri, 23 May 2008 16:34:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1870145</guid><dc:creator>ChristianHowell</dc:creator><slash:comments>14</slash:comments><comments>http://forums.iis.net/thread/1870145.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1870145</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have an application that was deployed to the D: drive on a server. Because IIS doen&amp;#39;t point there, we can&amp;#39;t use Visual Studio to deploy it. When we use Xcopy and create the website, th elocal path is not displayed properly and our LDAP redirect is not working properly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With no difference in the deployment, a staging site properly installed the folder to IIS - when removing from IIS the folder was also deleted. How can I force IIS to install the folder?&lt;/p&gt;</description></item><item><title>creating new iis site with powershell. strange behaviour</title><link>http://forums.iis.net/thread/1922647.aspx</link><pubDate>Thu, 29 Oct 2009 12:05:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922647</guid><dc:creator>ish13</dc:creator><slash:comments>1</slash:comments><comments>http://forums.iis.net/thread/1922647.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1922647</wfw:commentRss><description>&lt;p&gt;hello, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;i&amp;#39;m writing script in powershell 2 for site creation . found strange behavious in the following code&lt;/p&gt;
&lt;p&gt;# Start-WebCommitDelay&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; New-WebAppPool $domain&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; New-Website -Name $domain -HostHeader $domain -IPAddress $ipaddr -PhysicalPath $domainroot -ApplicationPool $domain&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; New-WebFtpSite -Name $user -HostHeader ($user+&amp;quot;.vserver.ru&amp;quot; ) -IPAddress $ipaddr -PhysicalPath $userroot -Port 21&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;#&amp;nbsp; Stop-WebCommitDelay&lt;/p&gt;
&lt;p&gt;if start and stop webcommitdelay commented , then this code works as expected , but if i uncomment them, then web site and ftp site builds incorrect. at least they do not have physical pass assigned .&lt;/p&gt;
&lt;p&gt;&amp;nbsp;there is no information in help for start/stop web commit delay but i expected that they act like begin transaction and commit transaction &lt;/p&gt;
&lt;p&gt;any ideas why they broke sites creation ( or point me where i may read about this ) .&lt;/p&gt;
&lt;p&gt;also. second question . if using WebAdministration snaping for powershell , is there is any commit method .. i am trying to put logfiles to different directories by script ,&lt;/p&gt;
&lt;p&gt;like this&lt;/p&gt;
&lt;p&gt;PS IIS:\sites&amp;gt; $log = (get-item v127 | Select-Object log* )&lt;/p&gt;
&lt;p&gt;PS IIS:\sites&amp;gt; $log.logFile.directory=&amp;quot;C:\inetpub\wwwroot\v127\logs&amp;quot;&lt;/p&gt;
&lt;p&gt;in powershell i see that changes accepted&lt;/p&gt;
&lt;p&gt;PS IIS:\sites&amp;gt; $log.logFile&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;logExtFileFlags&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Date,Time,ClientIP,UserName,ServerIP,Method,UriStem,UriQuery,HttpStatus,Win32Status,BytesSent,By&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tesRecv,TimeTaken,ServerPort,UserAgent,Referer,HttpSubStatus&lt;br /&gt;customLogPluginClsid :&lt;br /&gt;logFormat&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : W3C&lt;br /&gt;directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : C:\inetpub\wwwroot\v127\logs&lt;br /&gt;period&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; : Daily&lt;br /&gt;truncateSize&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 20971520&lt;br /&gt;localTimeRollover&amp;nbsp;&amp;nbsp;&amp;nbsp; : False&lt;br /&gt;enabled&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; : True&lt;br /&gt;Attributes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : {logExtFileFlags, customLogPluginClsid, logFormat, directory...}&lt;br /&gt;ChildElements&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : {}&lt;br /&gt;ElementTagName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : logFile&lt;br /&gt;Methods&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; :&lt;br /&gt;Schema&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; : Microsoft.IIs.PowerShell.Framework.ConfigurationElementSchema&lt;/p&gt;
&lt;p&gt;but in iis manager log file still points to different place . &lt;/p&gt;
&lt;p&gt;so i assume there may be some commit method to update configuration . &lt;/p&gt;
&lt;p&gt;tia &lt;/p&gt;
&lt;p&gt;ish&lt;/p&gt;</description></item><item><title>Assign SSL Certificate through WMI</title><link>http://forums.iis.net/thread/1875781.aspx</link><pubDate>Mon, 04 Aug 2008 06:18:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1875781</guid><dc:creator>Dustin Venegas</dc:creator><slash:comments>5</slash:comments><comments>http://forums.iis.net/thread/1875781.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1875781</wfw:commentRss><description>&lt;p&gt;I have been unable to find a way to progromatically assign a SSL certificate to a website through WMI. Has anyone been able to do this through WMI? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Signon Banner</title><link>http://forums.iis.net/thread/1922182.aspx</link><pubDate>Mon, 26 Oct 2009 16:22:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922182</guid><dc:creator>David McKenzie</dc:creator><slash:comments>4</slash:comments><comments>http://forums.iis.net/thread/1922182.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1922182</wfw:commentRss><description>&lt;p&gt;Is thare a way to effect a Signon banner when logging on to an IIS application.&lt;/p&gt;
&lt;p&gt;Ideally this banner would front-end the logon dialog similar to front-ending Windows login in MSGINA&lt;/p&gt;</description></item></channel></rss>