Give permision for ActiveX control
-
Hi, In my application i am using ActiveX control(creted by .net2.0) to capture PrintScreen image. when i am using it through http://localhost it gives error Request for the permission of type ‘System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed But when i run same page by using computer name its work i.e. http://computername/Applicationname/xyz.aspx How to give permission for activeX. Thanks in advance.
-
Hi, In my application i am using ActiveX control(creted by .net2.0) to capture PrintScreen image. when i am using it through http://localhost it gives error Request for the permission of type ‘System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed But when i run same page by using computer name its work i.e. http://computername/Applicationname/xyz.aspx How to give permission for activeX. Thanks in advance.
Hi hemant.kaushal, Go to Control Pannel --> Administrative Tools --> Microsoft .NET Framework 2.0 Configuration. Open My Computer-->Runtime security policy-->Machine-->Code Groups-->All codes. Go to All_Code-->Right click and select New-->Check new code group and give some name in it. Hit Next button. Choose Condition type to SITE and give site name to localhost/system name.Hit Next and Choose Full Trust and hit Next button and then run ur site. Regards, Dilip. Dilip