I have a couple of issues here.
1. As I understand it windows form user controls embedded in a web page cannot be signed. If they are signed then they cannot be displayed. I can validate this from my experience and others experiences posted on the web. Does anybody know why this is the case and can offer a workaround
UPDATE TO ISSUE 1. I CAN NOW GET THIS TO WORK BY ADDING THE FOLLOWING LINE OF CODE INTO MY USER CONTROL ASSEMBLY:
[assembly: System.Security.
AllowPartiallyTrustedCallers]
ISSUE 2 IS STILL OUTSTANDING. THANKS.
2. I can unsign my dlls and the user control displays fine, embedded in it's web page. However I now need to switch of security via 'caspol -s off' to enable trust for the socket connections and listener that I have embedded within my user control. This is not acceptable for deployment. Does anybody know how I can get around this issue
Basically I need to deploy a trusted user control using sockets, embedded within a web page, running in IE, on multiple PCs. The issue is with trust only.
Any help is greatly appreciated.
Thanks in advance. ![]()

Unable to Use Sockets In A Windows Form Control Embedded In Internet Explorer
Sinno
You need to set the security policy for your assembly such that it's permitted socket access. By default, assemblies running from Internet contexts are not permitted base socket access because this would be a significant security hole (enabling, among other things, cross-site attacks).
Your best bet for learning how to set security policy for a signed assembly is to ask in a .NET newsgroup.