SocketPermissions

Android

Active member
Joined
Mar 6, 2007
Messages
35
Programming Experience
1-3
I have written a program that uses sockets. It works fine when I run it on my own computer but when I try to use it on another computer an error shows that mentions SocketPermissions. I sent the project into college to try it here and it works fine here as well.

I looked up SocketPermissions and added a permission then called the Demand() function but this didn't work.

I'm at college at the minute so I don't have a screenshot of the error but the computer that it doesn't work on doesn't have Visual Studio installed, only the .Net framework.

Although my profile says .Net 2 I'm using VS 2003 for this project.

Another project that I am making in 2005 has a similar error when I use it at college, they don't have VS2005 but .Net 2 is installed. The error attached but it is about FileIOPermissions not SocketPermissions.

Can anyone help?

Thanks
 

Attachments

  • pong.JPG
    pong.JPG
    25.5 KB · Views: 36
Last edited:
The problem is running the .Net app from a network drive, .Net Framework does not allow it unless you configure the security setting from Framework Configuration utility of Control Panel or CasPol.exe command-line utility.
 
Ok, I'll try that when I get home but why would it work here at college then because I'm running it from our U drive on the network. would it have anything to do with VS being installed?
 
The admin trusted it perhaps?
 
Back
Top