Note that there are some explanatory texts on larger screens.

plurals
  1. PO.Net Security Exception when trying to render a reCaptcha control
    primarykey
    data
    text
    <p>I've downloaded the recaptcha.dll in both 1.0.1.0 and 1.0.4.0. When trying to render the control, I get the following exception:</p> <blockquote> <p>Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.</p> <p>Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.</p> <p>Stack Trace:[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0 System.Web.UI.NamespaceTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean throwOnError) +209</p> </blockquote> <p>The solution to this, as provided by a quick Googling, is to use caspol.exe to add full trust to the recaptcha.dll assembly. </p> <p>C:\%path%\caspol -af C:\inetpub\wwwroot\%path%\bin\recaptcha.dll</p> <p>At this point, I get the following error:</p> <blockquote> <p>ERROR: This assembly is not strong name signed</p> </blockquote> <p>Short of downloading the source code and recompiling it locally, is there any other way to get this working?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload