Home Home
  login

Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Security exception when accessing Gemini web services

add-ons

Hello,

I am trying to call Gemini services (http://api.countersoft.com/Default.aspx) from asp.net page using provided client .NET library.
I was able to get issue priorities list successfully just couple of times, but then suddenly has started to get security next exception.
---
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.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
--
(please see screenshot with stack trace there - http://uploadpad.com/files/ScreenHunter01Aug.0916.08.jpg).

I noticed that there is special security settings for sample Windows application. Web applications run in Full Trust, but maybe it requires some special settings?
Does anybody know how to fix this?

slava.boyko
· 1
slava.boyko
Replies (3)
helpful
0
not helpful

Have you installed Gemini webapp on shared hosting environment?

Are you running Windows Authentication with Gemini?

Run this and tell me what you see:

http://www.countersoft.com/downloads/v37/CounterSoft.Gemini.Api.Test.zip


Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful


Test Gemini webapp is hosted on one of our web servers in Amazon EC2.

No, we don't use Windows Authentication with Gemini.

I have run the utility, got an error, but seems like GET and POST tests successfully passed. Please see the screenshot there - http://uploadpad.com/files/ScreenHunter02Aug.0916.34.jpg

As I see from stack trace - exception is raised when accessing Credentials property of CredentialCache in ServiceManager, and this requires certain security permissions (it is visible from Reflector).
But I have no clue what happened, because as I mentioned I was able to fill drop-down on web page with issue proprieties list, then during further development I has started to constantly get this exception, though I didn't change anything neither in Gemini  nor in custom web appliucation hosting web page that communicates with gemini.

I appreciate any help.


slava.boyko
· 1
slava.boyko
helpful
0
not helpful

I found the problem. I pressed Unblock on each of related dlls (in file Properties window), and it works now.


slava.boyko
· 1
slava.boyko