bcsf10m011 / google-api-for-dotnet

Automatically exported from code.google.com/p/google-api-for-dotnet
0 stars 0 forks source link

Doesn't work with medium trust #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call Google.API.Translate.Translator.Translate from code within medium
trust environment.
2.
3.

What is the expected output? What do you see instead?
I hoped it would work bust instead I get:

Exception Details: System.Security.SecurityException: That assembly does
not allow partially trusted callers.

My DLL calling the translate DLL is strong named and marked with APTCA

What version of the product are you using? On what operating system?

I'm using 0.2 running on IIS6 windows 2003 with medium trust.

Please provide any additional information below.

Original issue reported on code.google.com by JacquesW...@gmail.com on 20 Jul 2009 at 5:19

GoogleCodeExporter commented 9 years ago
I fixed this by re-building the solution from the source files after adding the 
allow
partially trusted callers attribute.

Original comment by JacquesW...@gmail.com on 22 Jul 2009 at 1:56

GoogleCodeExporter commented 9 years ago
Can you show me your fixed code. Thanks.

Original comment by iron9li...@gmail.com on 23 Jul 2009 at 5:09

GoogleCodeExporter commented 9 years ago
Add [assembly:AllowPartiallyTrustedCallers] in the next version.

Original comment by iron9li...@gmail.com on 20 Nov 2009 at 8:38

GoogleCodeExporter commented 9 years ago
Sorry I didn't see your first comment, but yes thats the answer. I have a 
working
solution if you need it.

Original comment by JacquesW...@gmail.com on 20 Nov 2009 at 8:46

GoogleCodeExporter commented 9 years ago
No thanks.
If you have a working test case, I want it :-)

Original comment by iron9li...@gmail.com on 20 Nov 2009 at 8:57

GoogleCodeExporter commented 9 years ago
here's a working rar

Original comment by JacquesW...@gmail.com on 20 Nov 2009 at 12:23

Attachments:

GoogleCodeExporter commented 9 years ago
Can you make a release of this so I can use this also?
I can't build the solution you attached..

Original comment by kneppe...@gmail.com on 23 Feb 2010 at 6:19

GoogleCodeExporter commented 9 years ago

Original comment by iron9li...@gmail.com on 21 Mar 2010 at 4:25