Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Hosting UserControl in IE

$
0
0

Hi,

I've an ASP site that delivers html code. One of the delivered html pages host a UserControl inside an OBJECT tag

The UserControl (UC) is supposed to display an image. However, the UC is drawn, but no image is displayed despite I'm invokating a method that perfom that action. And when I right-click over the UC to display a menu, it throws a security exception:

Application attempted to perform an operation not allowed by the security police...

Request for the permission of type ' System.Security.Permissions.UIPermission, mscorlib Version 2.0.0.0., Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

The HTML code tag embedding the UC looks like:

<OBJECT ID=UC1 WIDTH=800 HEIGHT=400 classid="http:UC.dll#Viewer.UCView"></OBJECT>

If I try this code in a single asp page in a new website it works fine. But, when it's integrated into an existent ASP website it throws the exception.

Am I missing something in web.config file?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>