none
Windows Server Devices Provider Service not working!

    问题

  • Hi

    I've had the problem of the Windows Server Devices Provider service not starting for the past few weeks. If I try to repair the issue on the Dashboard it just comes back with the same error.

    If I got to Services and try to start it manually, it gives me the following error:

    "Windows could not start the Windows Server Devices Provider service on Local Computer.

    Error 1067: The process terminated unexpectedly."

    As a result of this error I cannot see the computers on the dashboard or on the Remote Web Access. Now I can't see whether the computers are being backed up or not.

     

    In Event Log I see the following error:

    Application: SharedServiceHost.exe

    Framework Version: v4.0.30319

    Description: The application requested process termination through System.Environment.FailFast(string message).

    Message: Unhandled exception in OnStart: System.ArgumentNullException: The empty string '' is not a valid local name.

    Parameter name: name

       at System.Xml.XmlConvert.VerifyNCName(String name, ExceptionType exceptionType)

       at System.Xml.XmlUTF8TextReader.VerifyNCName(String s)

       at System.Xml.XmlUTF8TextReader.ReadQualifiedName(PrefixHandle prefix, StringHandle localName)

       at System.Xml.XmlUTF8TextReader.ReadStartElement()

       at System.Xml.XmlUTF8TextReader.Read()

       at System.Xml.XmlBaseReader.MoveToContent()

       at System.Xml.XmlBaseReader.IsStartElement()

       at System.Xml.XmlBaseReader.IsStartElement(XmlDictionaryString localName, XmlDictionaryString namespaceUri)

       at ReadArrayOfDevicePropertyFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString , CollectionDataContract )

       at System.Runtime.Serialization.CollectionDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)

       at ReadKeyValueOfstringArrayOfDevicePropertyoy2JKP7OFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )

       at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

       at ReadArrayOfKeyValueOfstringArrayOfDevicePropertyoy2JKP7OFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString , CollectionDataContract )

       at System.Runtime.Serialization.CollectionDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)

       at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)

       at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)

       at System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader reader)

       at Microsoft.WindowsServerSolutions.Common.Devices.DataContractObjectStore`1.Load(String path, IEnumerable`1 knownTypes)

       at Microsoft.WindowsServerSolutions.Common.Devices.DataContractObjectStore`1.Load()

       at Microsoft.WindowsServerSolutions.Common.Devices.DevicesXmlDataStore.Read()

       at Microsoft.WindowsServerSolutions.Common.Devices.DevicesProviderDataManager.ReadFromDataStore()

       at Microsoft.WindowsServerSolutions.Common.Devices.DevicesProviderDataManager.DoLoadDeviceData()

       at Microsoft.WindowsServerSolutions.Common.Devices.DevicesProviderSvcHost.CreateProviderHosts()

       at Microsoft.WindowsServerSolutions.Common.ProviderFramework.ProviderServiceBase._OpenHosts()

       at Microsoft.WindowsServerSolutions.Common.ProviderFramework.ProviderServiceBase.OnStart(String[] args)

    Stack:

       at System.Environment.FailFast(System.String, System.Exception)

       at Microsoft.WindowsServerSolutions.Common.ProviderFramework.ProviderServiceBase.OnStart(System.String[])

       at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(System.Object)

       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

       at System.Threading.ThreadPoolWorkQueue.Dispatch()

       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

    As well as
    Faulting application name: SharedServiceHost.exe, version: 6.1.1839.0, time stamp: 0x4d38a956
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0x80131623
    Fault offset: 0x000007ff0016c941
    Faulting process id: 0x2498
    Faulting application start time: 0x01ccc6986046ac74
    Faulting application path: C:\Program Files\Windows Server\Bin\SharedServiceHost.exe
    Faulting module path: unknown
    Report Id: 9ec24f4c-328b-11e1-abec-00270e01fdf3
    Could someone please help out?
    Thanks,
    Jonno

     

    2011年12月30日 2:16

答案

  • Can you paste C:\ProgramData\Microsoft\Windows Server\Data\DevicesInfo.xml here (Before doing this make sure it contains no sensitive info). The xml file may be bad formated.

    Also you can have a try, Rename DevicesInfo.xml and DevicesInfo.xml.back to DevicesInfo.xml_back DevicesInfo.xml.back_back2 and restart the service.

    • 已标记为答案 Tadimsky 2011年12月31日 5:22
    2011年12月30日 6:37

全部回复

  • Can you paste C:\ProgramData\Microsoft\Windows Server\Data\DevicesInfo.xml here (Before doing this make sure it contains no sensitive info). The xml file may be bad formated.

    Also you can have a try, Rename DevicesInfo.xml and DevicesInfo.xml.back to DevicesInfo.xml_back DevicesInfo.xml.back_back2 and restart the service.

    • 已标记为答案 Tadimsky 2011年12月31日 5:22
    2011年12月30日 6:37
  • Hi Qing, thanks very much for the response!

    This is it here: Seems to only list two devices?

    <?xml version="1.0" encoding="utf-8"?>

    <ArrayOfKeyValueOfstringArrayOfDevicePropertyoy2JKP7O xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">

      <KeyValueOfstringArrayOfDevicePropertyoy2JKP7O>

        <Key>S-1-5-21-3326965620-3024686093-977339497-1010</Key>

        <Value xmlns:d3p1="http://schemas.datacontract.org/2004/07/Microsoft.WindowsServerSolutions.Common.Devices">

          <d3p1:DeviceProperty i:type="d3p1:IdentityStatusProperty">

            <d3p1:PropertyName>IdentityStatus</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-06T08:12:40.8207853Z</d3p1:Timestamp>

            <d3p1:AdditionalInformation>610369E9000000000003</d3p1:AdditionalInformation>

            <d3p1:DeviceType>682732d2-6c77-4047-b78e-041a44dc7409</d3p1:DeviceType>

            <d3p1:Status>Active</d3p1:Status>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:StringProperty">

            <d3p1:PropertyName>Name</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:57:12.0282759Z</d3p1:Timestamp>

            <d3p1:PropertyValue>GLaDOS</d3p1:PropertyValue>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:OnlineStatusProperty">

            <d3p1:PropertyName>Online</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-06T08:12:02.5851181Z</d3p1:Timestamp>

            <d3p1:Status>Online</d3p1:Status>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:AlertsProperty">

            <d3p1:PropertyName>Alerts</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:57:12.0282759Z</d3p1:Timestamp>

            <d3p1:CriticalAlertCount>1</d3p1:CriticalAlertCount>

            <d3p1:InformationAlertCount>1</d3p1:InformationAlertCount>

            <d3p1:WarningAlertCount>0</d3p1:WarningAlertCount>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:RDPStatusProperty">

            <d3p1:PropertyName>RDPStatus</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:57:12.0282759Z</d3p1:Timestamp>

            <d3p1:BlockedByFirewall>false</d3p1:BlockedByFirewall>

            <d3p1:Status>Available</d3p1:Status>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:StringProperty">

            <d3p1:PropertyName>Description</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:57:12.0282759Z</d3p1:Timestamp>

            <d3p1:PropertyValue>My home server</d3p1:PropertyValue>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:OperatingSystemProperty">

            <d3p1:PropertyName>OperatingSystem</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:57:12.0282759Z</d3p1:Timestamp>

            <d3p1:Family>05d07de0-97fd-4aa1-835f-b0ef9d963d0c</d3p1:Family>

            <d3p1:OSName>Windows Home Server 2011</d3p1:OSName>

            <d3p1:ServicePackMajorVersion>1</d3p1:ServicePackMajorVersion>

            <d3p1:SystemType>AMD64</d3p1:SystemType>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:BackupStatusProperty">

            <d3p1:PropertyName>BackupStatus</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-06T08:12:29.838366Z</d3p1:Timestamp>

            <d3p1:ExpireLimit>P1D</d3p1:ExpireLimit>

            <d3p1:HasBackups>true</d3p1:HasBackups>

            <d3p1:Progress>0</d3p1:Progress>

            <d3p1:m_status>NotConfigured</d3p1:m_status>

          </d3p1:DeviceProperty>

        </Value>

      </KeyValueOfstringArrayOfDevicePropertyoy2JKP7O>

      <KeyValueOfstringArrayOfDevicePropertyoy2JKP7O>

        <Key>S-1-5-21-3326965620-3024686093-977339497-1015</Key>

        <Value xmlns:d3p1="http://schemas.datacontract.org/2004/07/Microsoft.WindowsServerSolutions.Common.Devices">

          <d3p1:DeviceProperty i:type="d3p1:IdentityStatusProperty">

            <d3p1:PropertyName>IdentityStatus</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-06T08:12:40.8207853Z</d3p1:Timestamp>

            <d3p1:AdditionalInformation>11FCF244000000000004</d3p1:AdditionalInformation>

            <d3p1:DeviceType>35d561ce-45a3-4462-bdad-519dbd8293c5</d3p1:DeviceType>

            <d3p1:Status>Active</d3p1:Status>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:StringProperty">

            <d3p1:PropertyName>Name</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:16:29.3952511Z</d3p1:Timestamp>

            <d3p1:PropertyValue>Jacqui-Dell</d3p1:PropertyValue>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:OnlineStatusProperty">

            <d3p1:PropertyName>Online</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:43:11.1757892Z</d3p1:Timestamp>

            <d3p1:Status>Offline</d3p1:Status>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:BackupStatusProperty">

            <d3p1:PropertyName>BackupStatus</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:11:22.6464229Z</d3p1:Timestamp>

            <d3p1:ExpireLimit>PT8H</d3p1:ExpireLimit>

            <d3p1:HasBackups>true</d3p1:HasBackups>

            <d3p1:Progress>0</d3p1:Progress>

            <d3p1:m_status>Successful</d3p1:m_status>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:StringProperty">

            <d3p1:PropertyName>Description</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:16:29.3952511Z</d3p1:Timestamp>

            <d3p1:PropertyValue>Jacqui's Laptop</d3p1:PropertyValue>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:OperatingSystemProperty">

            <d3p1:PropertyName>OperatingSystem</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:16:29.3952511Z</d3p1:Timestamp>

            <d3p1:Family>05d07de0-97fd-4aa1-835f-b0ef9d963d0c</d3p1:Family>

            <d3p1:OSName>Windows 7 Ultimate</d3p1:OSName>

            <d3p1:ServicePackMajorVersion>1</d3p1:ServicePackMajorVersion>

            <d3p1:SystemType>AMD64</d3p1:SystemType>

          </d3p1:DeviceProperty>

          <d3p1:DeviceProperty i:type="d3p1:RDPStatusProperty">

            <d3p1:PropertyName>RDPStatus</d3p1:PropertyName>

            <d3p1:Timestamp>2011-07-07T11:16:29.3952511Z</d3p1:Timestamp>

            <d3p1:BlockedByFirewall>false</d3p1:BlockedByFirewall>

            <d3p1:Status>Available</d3p1:Status>

          </d3p1:DeviceProperty>

          <d3p1:

     

     

    Renamed the files and restarted the server and now it starts!!!

    Thanks very much for the help

    Why do you think this problem would have occurred?

    2011年12月31日 5:22
  • I hope all your devices are now listed, and It should be. From your post, seems the data files are corrupted, And I don’t know why it happen. May be WHS developers should use more reliable method for example database to keep the data.

    2011年12月31日 7:04