[Reposted] How do I compile CSharp Code.

3 posts / 0 new
Last post
bilalsaeed's picture
Offline
Last seen: 11 years 1 month ago
Joined: 09/27/2013
Posts: 2
[Reposted] How do I compile CSharp Code.

Hello Everyone,

Yesterday I install RTI DDS connext, but I'm facing a problem in compiling the CSharp example code of Publish subscriber.

The error which I'm getting is "Could not load file or assembly 'nddsdotnet, Version=1.0.3.0, Culture=neutral, PublicKeyToken=f319a9351e41fb68' or one of its dependencies. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. (Exception from HRESULT: 0x800736B1)".

Can anyone please let me know what I am missing? 

 

Thanks

rip
rip's picture
Offline
Last seen: 4 days 47 min ago
Joined: 04/06/2012
Posts: 324

Weird, thought I'd posted a response to this, may not have hit the final 'save'.

Anyway:  Find the redistributable library (from MS) for your version of the OS.  The downloader for that should be on the same downloads page that you got the RTI Connext installer from.  The "side-by-side" message is the key, it indicates that the versions of the DLLs expected by the DDS low-level libraries don't exist on your installation, the 'vcrdist_x##.exe' (x64 of x32) is what you are looking for.

Rip

Offline
Last seen: 10 years 11 months ago
Joined: 12/19/2013
Posts: 2

Well if you don't need to build the C++ project in Debug, you can just set the compilation rule for the C++ project to release.

You will avoid this problem