Runtime Security error on Reflection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • david.kao@opco.com

    Runtime Security error on Reflection

    Hi All:
    I am releasing a Win Client .Net program with Web Service in strong name
    though a shared network driver, and on each user’s desktop I am giving a
    machine level full trust with my win program’s strong name key. Everybody
    seem working fine, except one user, his machine has no trouble to launch my
    app. But when my app starts talk to Web service, his machine gives him a
    permission error on Reflection. Here is the error message: “The state of the
    failed permission was: <IPermission
    class="System.S ecurity.Permiss ions.Reflection Permission, mscorlib,
    Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"
    version="1" Flags="TypeInfo rmation"/>”.
    I tried to reset his machine’s run time security back to default by using
    CASPOL tool, and manually modified his machine level run time security to
    full trust with strong name, and it did not work. I tried to reinstall his
    framework, and it did not work. At the end, in order to make his machine
    working I gave his machine a full trust on Zone in local intranet, and my app
    works properly now on his machine. My questions here is: why does strong name
    full trust give him reflection permission error ? and in my situation I do
    not see difference between the full trust on local intranet and the full
    trust on strong name?

    Thanks in Advance
    David
Working...