我一直在处理与IIS服务的问题。 时不时地,我停止工作,它总是相同的问题:IIS服务和应用程序池将无法启动,由于WAS服务不启动。 而由于奇怪的错误,WAS失败: Windows could not start the Windows Process Activation Service service on Local Computer. Error 13: The data is invalid. Windows could not start the Windows Process Activation Service service on Local Computer. Error 13: The data is invalid.
互联网上有很多关于这个的噪音,但没有为我工作:
C:\Windows\System32\inetsrv\Config目录中的C:\Windows\System32\inetsrv\Config文件只会导致完全匹配有效的XML文件 C:\inetpub\temp\apppools都在那里 对我来说,解决scheme是完全删除IIS和WAS,然后重新启动以重新安装。 我做了很多次 但是,两天之后,问题又回来了,我无法通过重新安装来解决问题。
我一直在网上阅读和尝试不同的东西,但现在我已经耐心地解决了这个问题。
以下是我尝试启动IIS时按照升序发生的一系列事件:
这里是一个警告,发生在上述之后:
我还想补充一点,就在昨天这个问题开始之前,我看到了一系列的错误:
现在,来源: SMSvcHost 4.0.0.0有一点有趣,因为它有这个细节:
A request to start the service failed. Error Code: System.Configuration.ConfigurationErrorsException: The type 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior, Microsoft.VisualStudio.Diagnostics.ServiceModelSink, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' registered for extension 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior' could not be loaded. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config line 247) at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult) at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Configuration.ConfigurationManager.GetSection(String sectionName) at System.ServiceModel.Activation.AspNetEnvironment.UnsafeGetSectionFromConfigurationManager(String sectionPath) at System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetAssociatedSection(ContextInformation evalContext, String sectionPath) at System.ServiceModel.Description.ConfigLoader.LookupCommonBehaviors(ContextInformation context) at System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress, Boolean skipHost) at System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) at System.ServiceModel.ServiceHostBase.ApplyConfiguration() at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) at System.ServiceModel.Activation.SharingService.StartControlService() at System.ServiceModel.Activation.SharingService.Start() at System.ServiceModel.Activation.TcpPortSharing.OnStart(String[] args) Process Name: SMSvcHost Process ID: 3348
它指向machine.config,但我不明白为什么它抱怨。 我以为是在寻找SMB服务相关的,我没有安装在Windows组件。
我现在坚持这个。