Solved

Access Permissions reading Sockets from a C# application

Posted on 2011-09-12
5
337 Views
Last Modified: 2012-06-27
I've written a threaded GPRS receiver in C# (at the moment as a Windows Forms application, for debugging purposes).

When I run it on the server (Windows Vista), through either VS or just running the .exe, I get the error:

"An attempt was made to access a socket in a way forbidden by its access permissions".

The application is residing in C:\Program files\GPRSReceiver\
I've tried right clicking and tried "Running as Administrator"

Any ideas what else do I need to do?

Cheers
0
Comment
Question by:Spike_66
  • 3
  • 2
5 Comments
 
LVL 22

Expert Comment

by:Ivo Stoykov
ID: 36522611
move it to your profile or another disk. C: has lots of restrictions

HTH

Ivo Stoykov
0
 

Author Comment

by:Spike_66
ID: 36522702
Thanks for that- but moving it to suggested locations hasn't helped.

0
 

Author Comment

by:Spike_66
ID: 36522795
I've just found out that there is a web site running on the server.
The server is accessed via IP addrress rather than Domain name.

I'm assuming that there is going to be a conflict between the web site and thie GPRS monitor both listening on port 80. Am I right?

Cheers
0
 
LVL 22

Accepted Solution

by:
Ivo Stoykov earned 500 total points
ID: 36524252
perhaps. principle is one service - one port
0
 

Author Comment

by:Spike_66
ID: 36528266
I have tested with other ports on this server, and although they aren't receiving anything, there wasn't any permissions error.

Thanks anyway.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now