Ogiltig sökväg

Microsoft.Windows.InternetInformationServices.10.0.WebSite.RootApplicationDefined.Monitor (UnitMonitor)

Knowledge Base article:

Sammanfattning

Internet Information Services (IIS) Websajter som använder HTTP är mycket beroende av IIS komponenter för dess tillgänglighet. Windows Process Activation Service (WAS), the World Wide Publishing Service (W3SVC), HTTP service, måste alla köras korrekt. Dessutom måste programpoolen köras korrekt för att vra tillgänglig för webbsajtens program. Om någon av dessa komponenter inte fungerar, kommer inte webbsajten att vara tillgänglig.

Lösningar

Välja programsökväg för en webbplats

En webbplats måste ha en giltig programsökväg. Om programsökvägen är felaktig kommer platsen inte att starta. Ange en giltig programsökväg för webbplatsen och starta sedan om den.

Ange en giltig programsökväg för webbplatsen:

Så här anger du en giltig programsökväg för webbplatsen:

<application path=”/”>

<virtualDirectory path=”/” physicalPath=”%SystemDrive%\inetpub\wwwroot” />

</application>

Starta om webbplatsen

Så här startar du om webbplatsen:

Du kan också göra detta med hjälp av länkarna nedan:

Stoppa webbsida

Starta webbsida

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.WebSite
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.InternetInformationServices.10.0.WebSite.EventLogManualReset2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Ogiltig sökväg
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.10.0.WebSite.RootApplicationDefined.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.WebSite" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.InternetInformationServices.10.0.WebSite.EventLogManualReset2StateMonitorType" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.10.0.WebSite.RootApplicationDefined.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
<OperationalState ID="ErrorEventRaised" MonitorTypeStateID="ErrorEventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(5056|5161)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>