thiagocavaloti / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

recaptcha-dotnet-1.0.5.0 Does not work with partially trusted callers #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
In the web.config -> 

...
<system.web>
    <trust level="Medium" />
...

2. Use Version 1.0.5 instead of 1.0.1
3. Run your page

What is the expected output? What do you see instead?

Expecting page to run.
Instead we get the error message...
"That assembly does not allow partially trusted callers."

What version of the product are you using? On what operating system?
Version 1.0.5 instead of 1.0.1.
Windows XP SP3.  .Net 3.5.

Please provide any additional information below.

I can use the older version for now, but you need to add attributes that will 
allow for partially trusted callers in the new version.

Original issue reported on code.google.com by carter.m...@gmail.com on 11 Feb 2011 at 9:46

GoogleCodeExporter commented 9 years ago
I had the same issue on godaddy, if you checkout the code from SVN and add 
[assembly: AllowPartiallyTrustedCallers]  (requires System.Security reference 
import) to the assemblyinfo.cs file and rebuild you will be good to go. I've 
attached the recompiled dll for anyone that needs it :)

Original comment by sdigirol...@gmail.com on 12 Feb 2011 at 7:30

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks - same issue with Rackspace Cloud, but you fixed it for me.

Original comment by philip.w...@gmail.com on 25 Mar 2011 at 4:45

GoogleCodeExporter commented 9 years ago
Great that did it. Thanks,

Original comment by chasgl2...@gmail.com on 1 May 2011 at 6:02

GoogleCodeExporter commented 9 years ago
That removed the error message for me too, recaptcha is showing again.

Not sure if it's just my site, but it's not validating anymore tho...

Any one else getting this? Thanks for the help!

Original comment by joe.spri...@gmail.com on 2 May 2011 at 2:46

GoogleCodeExporter commented 9 years ago
It appears the non-validation may be part of another listed issue: 
http://code.google.com/p/recaptcha/issues/detail?id=92

Again, this could be my personal setup; can any one else confirm/debunk this?

Original comment by joe.spri...@gmail.com on 2 May 2011 at 2:54

GoogleCodeExporter commented 9 years ago
Thanks dude!

Original comment by julio.ur...@gmail.com on 28 Jun 2011 at 9:53

GoogleCodeExporter commented 9 years ago
hey, i am using captcha for sending email. when button click then check captcha 
right or not?
If right then email sent to predefined email add. When I use this locally then 
email sent successfully.

But when I upload this then following exception occured

An error occured loading a configuration file: Request for the permission type 
'System.Security.Permissions.FileIOPermission, mscorlib, version=2.0.0.0, 
culture=neutral, publickeytoken=b77a5c561934e089' failed. (machine.config)

Original comment by pari...@it-allyservices.in on 5 Sep 2011 at 5:58

GoogleCodeExporter commented 9 years ago

Original comment by adrian.g...@gmail.com on 20 Oct 2011 at 2:36

GoogleCodeExporter commented 9 years ago
Thank you.. At least 2 hours researching this issue. Godaddy kills me sometimes.

Original comment by jspad...@gmail.com on 10 Nov 2011 at 5:43

GoogleCodeExporter commented 9 years ago
I have also the same issue on godaddy.... i am new to web developement..

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: That assembly does not 
allow partially trusted callers.

Source Error: 

An unhandled exception was generated during the execution of the current web 
request. Information regarding the origin and location of the exception can be 
identified using the exception stack trace below.

Original comment by harry.dh...@gmail.com on 30 Dec 2011 at 2:53

GoogleCodeExporter commented 9 years ago
Thanks -it works for me. great job.

Original comment by subhanka...@gmail.com on 14 Mar 2012 at 9:08

GoogleCodeExporter commented 9 years ago
Fixed on r208.

Original comment by adrian.g...@gmail.com on 30 Mar 2012 at 6:08

GoogleCodeExporter commented 9 years ago
Hi, I have one issue for recaptcha, i included google recaptcha in my form,
but i have one error (System.Security.SecurityException: That assembly does not 
allow partially trusted callers.).
my coding:
<recaptcha:RecaptchaControl ID="recaptcha" runat="server" Theme="red" 
PublicKey="mypublickey" PrivateKey="myprivatekey" />

my server: Godaddy
.net version: 3.5

Please help me.

Original comment by gash...@gmail.com on 15 Mar 2013 at 5:20

GoogleCodeExporter commented 9 years ago
MVC4 C# hosted on GoDaddy, I had to the web.config I added <trust 
level="Medium" /> and in GoDaddy IIS console I changed Pipline to CLASSIC. 

Original comment by DSpeigh...@gmail.com on 11 Aug 2013 at 1:51