There is a user control Which has functionalities of open any image file from user machine and allow user to apply effects and filters on it. This control is working fine if I place it on windows forms application. I am getting
"file ,System.Security.Permissions.FileIOPermission,mscorlib,version ,PublicKeyToken=b77ka323adgf2e23 failed"
exception if I placed same on a Html page and tried to open a picture .How to solve it

System.Security.Permissions.FileIOPermission Exception
Martin_Saucier
If the user control is signed, you could grant permissions to the signer of the control (also covered in the link).
The safest method is to just grant full-trust to the assembly that contains the user control. You can do this by running mmc.exe, and opening the mscorcfg.msc in your \windows\microsoft.net\framework\<version>\ directory. Choose the Configure Code Access Security link. Click Increase Assembly Trust, and follow the wizard to grant your assembly full-trust.
Bri