locked
DssDeploy on CE gets nullReferenceException RRS feed

  • Question

  • I'm trying to deploy a simple (basically a "hello world") manifest to a ICOP Vortex86-6082 CE device.  When I run the executable on the CE device I get a nullrefereceexception.  I can't tell from the output what is missing.

    This is my manifest:

    Code Snippet

    <?xml version="1.0" ?>

    <Manifest

    xmlns="http://schemas.microsoft.com/xw/2004/10/manifest.html"

    xmlns:dssp="http://schemas.microsoft.com/xw/2004/10/dssp.html"

    xmlns:skeets="http://schemas.tempuri.org/2007/04/skeets.html"

    >

    <CreateServiceList>

    <ServiceRecordType>

    <dssp:Contract>http://schemas.tempuri.org/2007/08/skeets.html</dssp:Contract>

    <dssp:PartnerList>

    <dssp:Partner>

    <dssp:Name>skeets:irobotlite</dssp:Name>

    </dssp:Partner>

    </dssp:PartnerList>

    </ServiceRecordType>

    <ServiceRecordType>

    <dssp:Contract>http://schemas.microsoft.com/robotics/2007/02/irobotlite.html</dssp:Contract>

    <dssp:Service>http://localhost:0/irobotlite</dssp:Service>

    <dssp:PartnerList>

    <!--Initialize Roomba config file -->

    <dssp:Partner>

    <dssp:Service>irobot.ce.config.xml</dssp:Service>

    <dssp:Name>dssp:StateService</dssp:Name>

    </dssp:Partner>

    </dssp:PartnerList>

    <Name>skeets:irobotlite</Name>

    </ServiceRecordType>

    </CreateServiceList>

    </Manifest>

     

     

     

    And this is the output:

    Code Snippet

     Pocket CMD v 6.00
    \> "\Program Files\msrs\bin\cf.DssHost.exe" /p:50000 /m:..\Projects\Skeets\Skeet
    s.Manifest.xml
    *   Service uri:  [08/20/2007 22:25:40][http://windowsce:50000/directory]
    *   Service uri:  [08/20/2007 22:25:45][http://windowsce:50000/constructor/f1cec
    5bd-a0fe-4858-801b-eae770b26e35]
    *   Starting manifest load: file:///Program%20Files/msrs/Projects/Skeets/Skeets.
    Manifest.xml [08/20/2007 22:25:52][http://windowsce:50000/manifestloaderclient]
    *** System.NullReferenceException: NullReferenceException
    at System.Xml.Serialization.XmlSerializationReflector.FindMemberInDeclaringTypes
    Members()
    at System.Xml.Serialization.XmlSerializationReflector.AddMemberUsingDeclaringTyp
    e()
    at System.Xml.Serialization.XmlSerializationReflector.AddComplexType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.ReflectXmlArrayItemAttribu
    te()
    at System.Xml.Serialization.XmlSerializationReflector.ReflectLiteralMemberValue(
    )
    at System.Xml.Serialization.XmlSerializationReflector.ReflectMemberValue()
    at System.Xml.Serialization.XmlSerializationReflector.AddComplexType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.AddMemberUsingDeclaringTyp
    e()
    at System.Xml.Serialization.XmlSerializationReflector.AddComplexType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.ReflectXmlArrayItemAttribu
    te()
    at System.Xml.Serialization.XmlSerializationReflector.ReflectLiteralMemberValue(
    )
    at System.Xml.Serialization.XmlSerializationReflector.ReflectMemberValue()
    at System.Xml.Serialization.XmlSerializationReflector.AddComplexType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializer.FindTypeByType()
    at System.Xml.Serialization.XmlSerializer..ctor()
    at System.Xml.Serialization.XmlSerializer..ctor()
    at Microsoft.Dss.Services.Serializer.XmlSerializationHelper.CreateXmlSerializer(
    )
    at Microsoft.Dss.Services.Serializer.DataCache.SerializerFromQualifiedName()
    at Microsoft.Dss.Services.Serializer.SerializerService.Deserialize()
    at Microsoft.Ccr.Core.Task`1.Execute()
    at Microsoft.Ccr.Core.TaskExecutionWorker.ExecuteTaskHelper()
    at Microsoft.Ccr.Core.TaskExecutionWorker.ExecuteTask()
    at Microsoft.Ccr.Core.TaskExecutionWorker.ExecutionLoop()
     [08/20/2007 22:25:54][http://windowsce:50000/manifestloaderclient]
    *** ManifestLoaderClient: Initial manifest failed: System.NullReferenceException
    : NullReferenceException
    at System.Xml.Serialization.XmlSerializationReflector.FindMemberInDeclaringTypes
    Members()
    at System.Xml.Serialization.XmlSerializationReflector.AddMemberUsingDeclaringTyp
    e()
    at System.Xml.Serialization.XmlSerializationReflector.AddComplexType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.ReflectXmlArrayItemAttribu
    te()
    at System.Xml.Serialization.XmlSerializationReflector.ReflectLiteralMemberValue(
    )
    at System.Xml.Serialization.XmlSerializationReflector.ReflectMemberValue()
    at System.Xml.Serialization.XmlSerializationReflector.AddComplexType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.AddMemberUsingDeclaringTyp
    e()
    at System.Xml.Serialization.XmlSerializationReflector.AddComplexType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializationReflector.ReflectXmlArrayItemAttribu
    te()
    at System.Xml.Serialization.XmlSerializationReflector.ReflectLiteralMemberValue(
    )
    at System.Xml.Serialization.XmlSerializationReflector.ReflectMemberValue()
    at System.Xml.Serialization.XmlSerializationReflector.AddComplexType()
    at System.Xml.Serialization.XmlSerializationReflector.AddType()
    at System.Xml.Serialization.XmlSerializationReflector.FindType()
    at System.Xml.Serialization.XmlSerializer.FindTypeByType()
    at System.Xml.Serialization.XmlSerializer..ctor()
    at System.Xml.Serialization.XmlSerializer..ctor()
    at Microsoft.Dss.Services.Serializer.XmlSerializationHelper.CreateXmlSerializer(
    )
    at Microsoft.Dss.Services.Serializer.DataCache.SerializerFromQualifiedName()
    at Microsoft.Dss.Services.Serializer.SerializerService.Deserialize()
    at Microsoft.Ccr.Core.Task`1.Execute()
    at Microsoft.Ccr.Core.TaskExecutionWorker.ExecuteTaskHelper()
    at Microsoft.Ccr.Core.TaskExecutionWorker.ExecuteTask()
    at Microsoft.Ccr.Core.TaskExecutionWorker.ExecutionLoop()
    : http://www.w3.org/2003/05/soap-envelope:Receiver -> Fault [08/20/2007 22:25:56
    ][http://windowsce:50000/manifestloaderclient]


     

     

     

    Monday, August 20, 2007 3:32 PM

Answers

All replies

  • this looks like a serialization bug in CompactFramework, that was fixed in CF 2.0 SP2. Are you sure CF SP2 is deployed/installed on the icop device?

     

    thanx

    g

     

    Monday, August 20, 2007 3:42 PM
  • Thanks George,

     

    I suspected as much, but I'm getting a little confused.  Is the Compact Framework in the Windows CE installation?  Is it separate?  If it is a separate installation, where can I download it, (I can't find it in MSDN)?  How can I tell what version of CF is on my CE box?

     

    Dogulas

    Monday, August 20, 2007 4:15 PM
  • Ok, I found the download at:

     

     

     

    What was throwing my off was that install files for CF 2.0 SP1 and CF 2.0 SP2 have exactly the same name:

     

    NETCFSetupv2.msi

     

    Microsoft ought to slap a "Sp1" and "Sp2" on the end of those names. 

     

    Monday, August 20, 2007 7:11 PM