[Mono-list] C# Applet and security question again ?...

Lloyd Dupont lloyd@galador.net
Sat, 08 Sep 2001 14:44:24 +0200

i try again (and a little) to improve my C# applet code today.
in fact OnClick method was never called (why ?...)
but, by subclassing ButtonBase instead of Control, OnClick method
were called.. (why, again ?...)

Anyway, so i try to add my few interop lines and i get the following
    :with the following text:
"The application attempted to perform an operation not allowed by the
security policy. The operation required the SecurityException. To grant
this application the required permission please contact your system
administrator, or use the .NET security policy administration tool."

hum,... my question is, if anyone knows, which tool use ? i look at
tools documentation but don't understand/find which one i need to use
and how ...
how could i set a policy so my dll-C#-interop-applet would execute with
IE on my machine ?

BTW for whose curious who don't know how to do it here is the
information i gather on C# applet.

there is 2 requirement:
the client must be, at least, IE6 (and could need the .Net framework to
be installed, but i am not sure)
the server must be IIS !! (this don't work locally or with apache !! if
anyone knows why ??) (http://www.brinkster.com make free .Net hosting)
after you just write a standart control in an assembly, put call it in
your web page like this:

<object id=anID
	height=300 width=300>

with the id you could call public method via javascript...

here is an example: