by robo1000 » Thu Apr 07, 2011 10:13 am
by robo1000
Thu Apr 07, 2011 10:13 am
Hi
Been struggling with the same error.
My setup (Installed in this order):
Robo110
RM144 sensor via I2C
WinXP on class4 8Gb Kingston (going to upgrade to class 10 soon for more speed)
SP2 (looks to have installed ok, but had error on restart - hard restart)
VC2008 Redistr
VC2008 SP1 Redistr
.Net 2.0 Framework
I am a c# dev so naturally I want to code in .net. After installing the above i get a basic hello world c# console app running. Yay
I then add RoboIO_DotNet 1.7 reference as per 1.7 docs. Builds fine. Copy to roboard via network and rdp to execute the exe.
The directory structure where the EXE lives looks like this:
Directory of C:\SensorApps\Debug
04/07/2011 10:19 AM <DIR> .
04/07/2011 10:19 AM <DIR> ..
04/07/2011 10:19 AM <DIR> Lib
04/07/2011 10:20 AM 6,656 RM144Sensor.exe
04/06/2011 10:38 AM 117 RM144Sensor.exe.config
04/07/2011 10:20 AM 13,824 RM144Sensor.pdb
03/23/2011 03:18 AM 90,112 RoBoIO.dll
03/24/2011 10:46 PM 49,152 RoBoIO_DotNet.dll
04/07/2011 10:19 AM <DIR> Winio
08/31/2010 04:52 AM 49,152 WinIo.dll
08/31/2010 04:52 AM 4,944 WinIo.sys
08/31/2010 04:52 AM 5,174 WINIO.VXD
You will see I added Lib and WinIO as directories as well. I have even take all 4 dlls (WinIO.dll and its siblings + RoboIO.dll and RoboIO_DotNet.dll and dumped them in Windows\System32)
I get this error:
C:\SensorApps\Debug>rm144sensor.exe
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'RoBoIO.dll
': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
at RoBoIO_DotNet.RoBoIO.roboio_SetRBVer(Int32 ver)
at i2c_srf.Program.Main(String[] args) in D:\..\Projects\UGV\Dev\RM144Sensor\i2c_srf.cs:line 24
Thats the sample code. (It is giving debug info pointing to a development pc path - sure thats ok since it should be coming from the pdb file).
Also running this as Administrator.
Things I am going to try while waiting for help or bright sparks (not real ones hopefully):
Install VC2005+ SP1 redistributables then test
Uninstall VC2008 + SP1.
Uninstall .Net2 then reinstall
VC++2005 + SP1 and .net 2
I am confused as to why it is not seeing RoboIO.dll?
Any help will be much appreciated.
PS: Also installed Dev- C++ on the roboard itself to try to get some roboio.dll calls. Pretty much get the same error when trying to link - unable to initialize the RoboIO.dll. Don't feel knowledgeable enough in C++ to debug this further. So want to stick to the .net problem.
Hi
Been struggling with the same error.
My setup (Installed in this order):
Robo110
RM144 sensor via I2C
WinXP on class4 8Gb Kingston (going to upgrade to class 10 soon for more speed)
SP2 (looks to have installed ok, but had error on restart - hard restart)
VC2008 Redistr
VC2008 SP1 Redistr
.Net 2.0 Framework
I am a c# dev so naturally I want to code in .net. After installing the above i get a basic hello world c# console app running. Yay
I then add RoboIO_DotNet 1.7 reference as per 1.7 docs. Builds fine. Copy to roboard via network and rdp to execute the exe.
The directory structure where the EXE lives looks like this:
Directory of C:\SensorApps\Debug
04/07/2011 10:19 AM <DIR> .
04/07/2011 10:19 AM <DIR> ..
04/07/2011 10:19 AM <DIR> Lib
04/07/2011 10:20 AM 6,656 RM144Sensor.exe
04/06/2011 10:38 AM 117 RM144Sensor.exe.config
04/07/2011 10:20 AM 13,824 RM144Sensor.pdb
03/23/2011 03:18 AM 90,112 RoBoIO.dll
03/24/2011 10:46 PM 49,152 RoBoIO_DotNet.dll
04/07/2011 10:19 AM <DIR> Winio
08/31/2010 04:52 AM 49,152 WinIo.dll
08/31/2010 04:52 AM 4,944 WinIo.sys
08/31/2010 04:52 AM 5,174 WINIO.VXD
You will see I added Lib and WinIO as directories as well. I have even take all 4 dlls (WinIO.dll and its siblings + RoboIO.dll and RoboIO_DotNet.dll and dumped them in Windows\System32)
I get this error:
C:\SensorApps\Debug>rm144sensor.exe
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'RoBoIO.dll
': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
at RoBoIO_DotNet.RoBoIO.roboio_SetRBVer(Int32 ver)
at i2c_srf.Program.Main(String[] args) in D:\..\Projects\UGV\Dev\RM144Sensor\i2c_srf.cs:line 24
Thats the sample code. (It is giving debug info pointing to a development pc path - sure thats ok since it should be coming from the pdb file).
Also running this as Administrator.
Things I am going to try while waiting for help or bright sparks (not real ones hopefully):
Install VC2005+ SP1 redistributables then test
Uninstall VC2008 + SP1.
Uninstall .Net2 then reinstall
VC++2005 + SP1 and .net 2
I am confused as to why it is not seeing RoboIO.dll?
Any help will be much appreciated.
PS: Also installed Dev- C++ on the roboard itself to try to get some roboio.dll calls. Pretty much get the same error when trying to link - unable to initialize the RoboIO.dll. Don't feel knowledgeable enough in C++ to debug this further. So want to stick to the .net problem.