NorwegianClassic
Posts: 17
Joined: Mon Oct 19, 2015 8:33 am
Location: Bergen, Norway

C# MonoDevelop Problem

Mon Oct 19, 2015 8:50 am

Hi!

I just bought my first raspberry pi last week and I'm trying to use C# and the GPIOs. I have followed a tutorial on how to do this but when click "start debugging" in MonoDevelop, this message box pops up:

"Could not open port for debugger. Another process may be using the port."

I have tried searching the web for answers but can't find any help.
Does anyone have an idea what causing this?

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: C# MonoDevelop Problem

Mon Oct 19, 2015 9:06 am

What port number is defined in MonoDevelopProperties.xml?
What do you get from sudo netstat -tlnp? Is there another task using that MonoDevelop port?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

NorwegianClassic
Posts: 17
Joined: Mon Oct 19, 2015 8:33 am
Location: Bergen, Norway

Re: C# MonoDevelop Problem

Tue Oct 20, 2015 7:21 pm

All this is very new for me, but this is the xml file:

Code: Select all

<?xml version="1.0"?>
<SharpDevelopProperties fileversion="2.0">
  <Properties>
    <Property key="MonoDevelop.Core.FirstRun" value="True" />
    <Property key="MonoDevelop.Core.Gui.Dialog.TipOfTheDayView.ShowTipsAtStartup" value="False" />
    <Property key="MonoDevelop.Gui.SdiWorkbenchLayout.MonoDevelop.Gui.WorkbenchContext" value="Default" />
    <Property key="MonoDevelop.Gui.SdiWorkbenchLayout.Edit" value="Default" />
  </Properties>
</SharpDevelopProperties>
And this is from the sudo you gave me:

Code: Select all

Active Internet connections (only servers)
Porto Recv-Q Send-Q Local Address           Foreign Address   State       PID/Program name
tcp        0            0          0.0.0.0:22                  0.0.0.0:*             LISTEN                2071/sshd
I couldn't find out how to check the tasks and ports.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: C# MonoDevelop Problem

Tue Oct 20, 2015 7:35 pm

Your going to need to post your question on a MonoDevelop forum. There's nothing exciting running on your RPi.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

NorwegianClassic
Posts: 17
Joined: Mon Oct 19, 2015 8:33 am
Location: Bergen, Norway

Re: C# MonoDevelop Problem

Tue Oct 20, 2015 7:43 pm

Ok! Thank you! ;)

Return to “C/C++”