WebSocket4Net in SilverLight

I am trying to create a WebSocket client using WebSocket4Net with port 4503. However, I could only see the status of WebSocket as โ€œConnectionโ€ since it does not raise any exceptions and does not go further. I was able to throw an Exception OnError event, which says that "An attempt was made to access a socket that is denied access permissions"

Am I missing something? Any suggestions or links would be very helpful. Thanks in advance.

ws = new WebSocket("ws://localhost:4503/WSServer"); ws.Opened += new EventHandler<EventArgs>(ws_Opened); ws.Open(); 
+4
source share
1 answer

Today I get this error using another socket library. It might be a Silverlight access permissions issue, but on the server side I found that I had to shut down Visual Studio and then run it with administrator privileges to start the service. It will be something similar. If this is a permission property for Silverlight access, you might want to try launching it from a browser and enabling increased trust.

0
source

Source: https://habr.com/ru/post/1481698/


All Articles