Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / July 2005

Tip: Looking for answers? Try searching our database.

problem to run WINDOW user control in IE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
roni - 27 Jul 2005 19:17 GMT
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 ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.