
June 24th, 2009, 08:17 AM
|
|
Registered User
|
|
Join Date: Jun 2009
Posts: 1
Time spent in forums: 5 m 40 sec
Reputation Power: 0
|
|
|
Troubleshooting - IIs Console displays wrong web-sites' states after metabase import.
Hello,
I have 2 identical machines, of windows server 2003 with IIS 6.0 installed.
The web-sites on both machine are the same, and all are started.
I have a jscript script that uses the WMI API in order to export the key of "/LM/W3SVC" from one machine (machine A) and import it to the Metabase key of "/LM/W3SVC" on the other machine (machine B).
After the import, I open IIS console to machine B, and I see that all web-sites appear to be stopped.
However, the following facts exist on machine B after the import:
1. A WMI query returns that all web-sites are stopped.
2. The IIS Console shows the web-sites as stopped. Refresh/reopen iis console does not change it.
3. You can browse to the web-site properly.
4. You cannot create a new web-site on machine B with the same server-bindings as an existing web-site and start it. It will say that there is another web-site already started with the same server bindings.
5. In the Metabase.xml file the ServerAutoStart property of all web-sites is TRUE.
6. After IIS restart - all web-sites are showed as started.
I.e. - seems like the "truth" is that all web-sites are started, but for some reason the wmi and the iis console report them as stopped.
Does someone know how can I make the iis console to show the "real" state of the web-sites (i.e. started and not stopped) without manually restarting the web-site or the IIS-Service? Is there a programmatic way to do that?
Best Regards,
Maya.
|