Hi Guys,
I’m not sure if this project example is working correctly.
I’m trying to build and run the service, but I get an error in the console when it runs:
* Service started [02/05/2010 07:33:41][MyPC.antek.local:50000
/directory]
* Service started [02/05/2010 07:33:41][MyPC.antek.local:50000
/constructor]
* Service started [02/05/2010 07:33:42][MyPC.antek.local:50000
/console/output]
* Starting manifest load: file:///C:/Users/MyName/Microsoft Robotics Dev Studi
o 2008 R2/samples/Config/Lynxmotion.SSC32.manifest.xml [02/05/2010 07:33:42][htt
p://MyPC.antek.local:50000/manifestloaderclient]
Rebuilding contract directory cache. This will take a few moments ...
Contract directory cache refresh complete
** Error creating service. Service type:http://schemas.coroware.com/robotics/20
07/01/ssc32.html [02/05/2010 07:33:46][MyPC.antek.local:50000/co
nstructor]
*** Service creation failure most common reasons:
- Service contract identifier in manifest or Create request does not match C
ontract.Identifier
- Service references a different version of runtime assemblies
Additional information can be found in the system debugger log.
[02/05/2010 07:33:46][MyPC.antek.local:50000/manifestloader/22f
1d8ad-ebf2-4b01-b330-de869f206d76]
* Manifest load complete [02/05/2010 07:33:46][MyPC.antek.loca
l:50000/manifestloaderclient]
The project builds OK, after I had to change a couple of paths, and references to CSS and DSS (is Visual Studio 2008)
I also had to change the contract URL in the manifest, to match the URL in SSCTypes.
<?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"
>
<CreateServiceList>
<ServiceRecordType>
<dssp:Contract>http://schemas.coroware.com/robotics/2007/01/ssc32.html</dssp:Contract>
</ServiceRecordType>
</CreateServiceList>
</Manifest>
And changed _portName in SSC32State.cs to “COM1”
If I go to localhost:50000/ssc32 I get what appears to be the control panel “Microsoft Robotics Home”
At this stage I also do not have any hardware connected (SSC-32), hopefully that is arriving today depending on the snow LOL.
*Notes:
Visual Studio 2008 Pro
MSRS 2008 R2 Standard
Windows Vista
** UPDATE
Just reviewing this project again, and when looking at SSC32.cs there is a summary icon by the scroll bars that says “This document contains errors”.
This seems to point to the following line (56):
Arbiter.Receive<SendSSC32Command>(true, _mainPort, SSC32CommandHandler)
If I hover over “Receive” it says undeclared element, but the project compiles ???
What’s wrong? 