C++ Camera Server Example issue

When using a built Version of the c++ example the raspberry pi image refuses to send a camera stream claiming that the site cannot be reached. I have not modified the code and the Pi allows me to view the image if i switch to the built in camera streaming. Has anyone encountered this problem and if so is there a solution. the consol out put displays the message
./runCamera: 5: exec: ./uploaded: Exec format error
Waiting 5 seconds…
on repeat