Simulation Tutorials Compilation Error
Hi,
I am getting error(s) whenever I try to compile a simulation tutorial. I get the following errors:
Error 1 The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration='Debug' Platform='MCD' SimulationTutorial1
Error 2 The command ""C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\DssProxy.exe" /dll:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\SimulationTutorial1.Y2006.M06.dll" /proxyprojectpath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\SimulationTutorials\Tutorial1\Proxy " /keyfile:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\samples\mrisamples.snk" /binpath:". " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ " /referencepath:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\ " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ " /referencepath:"C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\bin\ " /referencepath:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\ " /referencepath:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\ "" exited with code 20. SimulationTutorial1
I am getting these errors whenever I try to build/re-build any of the simulation tutorials. I'm using Windows Vista Home Premium and Visual Studio C# 2005 Express Edition (Service Pack 1 and Update for Windows Vista). Please help me with this.
Regards,
Mohsin.
We've seen an error like this on a few people's machines. Usually, it is because they have used Microsoft Platform Builder in the past and there is a global environment variable set up which defines the cpu platform to be "MCD". When you are in the MSRS Command Window, use the set command to see what all of your environment variables are set to and find the one which sets the cpu platform to be MCD and get rid of it.
-Kyle
Thank you Kyle, that solution of yours solved my problem, now I can compile all the simulation samples without any error. But... now I get the following errors when I try to run them:
* Service uri: [06/22/2007 15:12:30][http://mohsinmirza-pc:50000/directory]
* Service uri: [06/22/2007 15:12:31][http://mohsinmirza-pc:50000/constructor/
248c348b-7599-4db3-a2ae-86e4d3650511]
* Starting manifest load: file:///C:/Microsoft%20Robotics%20Studio%201.5%20(CT
P%20May%202007)/samples/config/SimulationTutorial2.manifest.xml [06/22/2007 15:1
2:32][http://mohsinmirza-pc:50000/manifestloaderclient]
*** Error creating service type http://schemas.tempuri.org/2006/06/simulationtut
orial2.html. Fault
ervice not found: http://schemas.tempuri.org/2006/06/simulat
iontutorial2.html [06/22/2007 15:12:34][http://mohsinmirza-pc:50000/constructor/
248c348b-7599-4db3-a2ae-86e4d3650511]
*** Manifest Loader: Creating service failed: http://schemas.tempuri.org/2006/06
/simulationtutorial2.html.
Reason: Service not found: http://schemas.tempuri.org/2006/06/simulationtutorial
2.html [06/22/2007 15:12:34][http://mohsinmirza-pc:50000/manifestloader/4c63d269
-56f5-427c-bbb2-d6e7313acf58]
*** Manifest Loader: Creating service failed: http://schemas.microsoft.com/robot
ics/2006/01/simpledashboard.html.
Reason: Exception has been thrown by the target of an invocation.
InnerException: Could not load file or assembly 'SickLRF.Y2005.M12.Proxy, Versio
n=1.0.446.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dep
endencies. The located assembly's manifest definition does not match the assembl
y reference. (Exception from HRESULT: 0x80131040) [06/22/2007 15:12:34][http://m
ohsinmirza-pc:50000/manifestloader/4c63d269-56f5-427c-bbb2-d6e7313acf58]
* Manifest load complete [06/22/2007 15:12:34][http://mohsinmirza-pc:50000/man
ifestloaderclient]
:/, what's wrong?
Thank in advance.
Mohsin.
Its complaining that it can't find the services that you have built. Look in the bin directory for the following three files:
SimulationTutorial2.Y2006.M06.dll
SimulationTutorial2.Y2006.M06.proxy.dll
SimulationTutorial2.Y2006.M06.transform.dll
If they are not there, that would explain the error and you'll have to figure out where they got copied when they were built. Is it possible that Platform builder has also defined an output directory that is different than bin and you have another environment variable to delete?
-Kyle
I've checked the files and they are in the bin directory along with there respective .pdf files, there are similar files of tutorial 1, 4 and 5. Also I'd like to mention that I have never installed the Platform Builder before, this is on my windows vista home premium laptop on which I've installed Visual C# 2005 Express Edition (fully updated) and MSRS 1.5 May CTP, so now what?
Mohsin.
Alright, looks like I've solved the problem, but not completely. What I did was while I was going through the tutorials I created a new project in Visual C# and run it. In the window it said something like re-constructing something and it will take a few moments, of course nothing happened as the project (service) was just empty. So I opened tutorial 2 compiled it and run it, this time it showed me the simulation environment but not the dashboard :/ here it's what it says:
* Service uri: [06/23/2007 21:23:55][http://mohsinmirza-pc:50000/directory]
* Service uri: [06/23/2007 21:23:55][http://mohsinmirza-pc:50000/constructor/395f4357-3f53-4c97-8712-b6ff5fe23726]
* Starting manifest load: file:///C:/Microsoft%20Robotics%20Studio%201.5%20(CTP%20May%202007)/samples/config/SimulationTutorial2.manifest.xml [06/23/2007 21:23:56][http://mohsinmirza-pc:50000/manifestloaderclient]
*** Manifest Loader: Creating service failed: http://schemas.microsoft.com/robotics/2006/01/simpledashboard.html.
Reason: Exception has been thrown by the target of an invocation.
InnerException: Could not load file or assembly 'SickLRF.Y2005.M12.Proxy, Version=1.0.446.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) [06/23/2007 21:23:58][http://mohsinmirza-pc:50000/manifestloader/053b7f3f-a3a2-4c98-9977-c42223f4291c]
* Manifest load complete [06/23/2007 21:23:58][http://mohsinmirza-pc:50000/manifestloaderclient]
* Service uri: [06/23/2007 21:24:03][http://mohsinmirza-pc:50000/simulationtutorial2]
* Starting loading of BOS file:C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\media\OmniLight.bos
* Finished loading BOS file:C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\media\OmniLight.bos
* Starting loading of BOS file:C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\media\Arrow.bos
* Finished loading BOS file:C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\media\Arrow.bos
* Starting loading of BOS file:C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\media\table_01.bos
* Finished loading BOS file:C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\media\table_01.bos
* Starting loading of BOS file:C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\media\Pioneer3dx.bos
* Finished loading BOS file:C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\media\Pioneer3dx.bos
* Starting loading of BOS file:C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\media\LegoNXTTribot.bos
* Finished loading BOS file:C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\media\LegoNXTTribot.bos
* Service uri: [06/23/2007 21:24:05][http://mohsinmirza-pc:50000/simulateddifferentialdrive/cbc9c1e9-a345-457e-8ff9-fa777df32373]
* Service uri: [06/23/2007 21:24:05][http://mohsinmirza-pc:50000/simulatedbumper/423b34c0-77c6-4f61-9a79-16ef0b201e84]
* Service uri: [06/23/2007 21:24:05][http://mohsinmirza-pc:50000/simulatedlrf/aaef27e0-66a4-4336-b750-09cf33725c71]
* Service uri: [06/23/2007 21:24:05][http://mohsinmirza-pc:50000/simulateddifferentialdrive/8485476f-1dc0-4ff5-8cc2-b29ffaf0c7a0]
* Service uri: [06/23/2007 21:24:05][http://mohsinmirza-pc:50000/simulatedbumper/9174aeac-5970-4ea1-8425-f783e680d19e]
* Service uri: [06/23/2007 21:24:05][http://mohsinmirza-pc:50000/simulatedwebcam/1ec01c56-8172-4e3a-ab15-48ec618fcf1e]
so... now what? :/
Thanks in advance,
Regards
Mohsin.