SL4 application is generating the error "10013: An attempt was made to access socket in a way forbidden by its access permissions" when intranet website is browsing from a computer that is not registered in Active Directory.
- Web site on IIS 7.0 using asp.net 3.5 and forms authentication. Windows Server 2008
- Silverlight 4.0 release on net.tcp
- Services in a self-hosting, developed as a Windows Services, listening port 4520
Registered in active directory domain with the same domain user computers are working properly, but if you enter a guest computer (not registered in Active Directory) to the network, generates the following error:
“Message: Unhandled Error in Silverlight Application Could not connect to net.tcp://pruebasserver:4520/Cnt.Panacea.Wcf.Parametrizacion.SeguridadServicio. The connection attempt lasted for a time span of 00:00:14.4608272. TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions.. This could be due to attempting to access a service in a cross-domain way while the service is not configured for cross-domain access. You may need to contact the owner of the service to expose a sockets cross-domain policy over HTTP and host the service in the allowed sockets port range 4502-4534. en Cnt.Std.Xap.CntApplication.ctx_ListarTokenCompleted(Object sender, ListarTokenCompletedEventArgs arg)
en Cnt.Std.Xap.Parametros.SeguridadServicioClient.OnListarTokenCompleted(Object state)”
The clientaccesspolicy.xml file content:
<?xml version="1.0" encoding="utf-8"?>
<domain uri="*" />
<resource path="/" include-subpaths="true" />
<socket-resource port="4502-4530" protocol="tcp" />
We want to know if we should definitely discard the use of the net.tcp or it is a problem in the IIS configuration.