我已經下載了recaptcha.dll兩1.0.1.0和1.0.4.0當.NET安全異常。 當試圖呈現控件,我得到以下異常:試圖呈現的reCAPTCHA控制
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.
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.
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
解決這個,作爲一個快速谷歌搜索提供的,就是用的Caspol.exe到完全信任添加到recaptcha.dll組裝。
C:\%路徑%\ caspol -af C:\的Inetpub \ wwwroot的\%路徑%\ BIN \ recaptcha.dll
在這一點上,我得到以下錯誤:
ERROR: This assembly is not strong name signed
缺少下載源代碼並在本地重新編譯它,是否有任何其他方式來實現它的工作?
在一個共享的軟管,我們不能使用‘的Caspol.exe’工具mentiond在以前的答案。我沒有修改AssemblyInfo.cs文件。我只是改變了代理網址的ReCaptcha和它的工作對1and1.com共同主辦。您的解決方案幫助了我。 – Rahatur 2014-05-29 10:47:36