i created WINDOW user control (not web user control), that connect via
socket to server.
this WINDOW user control will be host in the IE .
when the page is run, the WINDOW user control is load, and show itself ,
but when i click on the button in it and attempt to connect via a socket,
IE locks up until times out - and i get a security exception.what i need to
do to allow this code to run in the web user IE ?
i know it about security issue .
even when i try to put the site in Trust Site, it wont works and still throw
execption.
the question:
what actions i need to do as web user, to allow this Window User Control run
in my IE ?
Nicole Calinoiu - 27 Jul 2005 19:55 GMT
Since your control successfully loads in IE, the problem is not related to
IE's limitations on hosted controls. Instead, it is most likely the result
of limited permissions under the .NET code access security system. If so,
the exception details (particularly its stack trace listing) should help in
identifying the missing permission. If you need help with this, please post
the exception details (as returned from the exception's ToString method).
If it is a code access security issue, approached for fixing the problem are
given at http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx
(general case) and
http://blogs.msdn.com/shawnfa/archive/2003/06/26/57026.aspx (extra info for
IE-hosted controls).
> i created WINDOW user control (not web user control), that connect via
> socket to server.
[quoted text clipped - 15 lines]
> run
> in my IE ?