Visual Studio 2010 - The type 'InTheHand.Net.Bluetooth.BluetoothRadio' has no constructors defined

Topics: Bluetooth - Microsoft
Jan 30, 2013 at 9:52 AM
Edited Jan 30, 2013 at 9:53 AM


This is probably something obvious but I cannot resolve the issue. The steps I followed were as follows:

- I installed 32feet.Net at the package manager console of Visual Studio 2010

- I added a reference to the DLL to a simple WPF project

- In the project, I wrote the following fragment

using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using InTheHand.Net.Bluetooth;

namespace AntBear
    /// Interaction logic for MainWindow.xaml
    public partial class MainWindow : Window
        public MainWindow()
            BluetoothRadio radio = new BluetoothRadio();

- The creation of the radio object gets flagged with an error

Error 1 The type 'InTheHand.Net.Bluetooth.BluetoothRadio' has no constructors defined

Any suggestions on resolving this would be appreciated.

Jan 30, 2013 at 11:38 AM

I think that BluetoothRadio is your device, you dont have to make and instance of that.

Use that line only for make it Discoverable :

 if (BluetoothRadio.IsSupported)
                BluetoothRadio.PrimaryRadio.Mode = RadioMode.Discoverable;

Jan 30, 2013 at 1:28 PM

Thanks for the quick response. I got misled by some of the suggestions I saw for the error code - I should have suspected a coding error!