1. My hoster has denied access to the file system and now almost all my plugins give out this error. Technical support recommended me to contact the developers of plugins. The developer of one of the plug-ins wrote:
    Code:
    "Until Oxide changes are made (making the variables that are being accessed via reflection public instead), this plugin will not work in it's current state on your server host. You can get it to compile by removing all references of things that use Reflection, but it will break a few things."
    I do not understand anything about this. I just learned how to configure plug-ins. Can I do something or can not I use some plug-ins?
    Code:
    [Error] Failed to call hook 'OnEntitySpawned' on plugin 'HeliControl v1.2.8' (UnauthorizedAccessException: System access is restricted, you are not allowed to use System.Reflection.FieldInfo)
    at Oxide.Plugins.HeliControl.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.HeliControl.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    Code:
    Unable to load ZoneManager. System.TypeInitializationException: An exception was thrown by the type initializer for Oxide.Plugins.ZoneManager ---> System.UnauthorizedAccessException: System access is restricted, you are not allowed to use System.Reflection.FieldInfo
    at Oxide.Plugins.ZoneManager..cctor () [0x00000] in :0
    --- End of inner exception stack trace ---
    at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&)
    at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
    Code:
    Failed to call hook 'OnServerInitialized' on plugin 'HammerTime v1.0.18' (UnauthorizedAccessException: System access is restricted, you are not allowed to use System.Reflection.FieldInfo)
    at Oxide.Plugins.HammerTime.get_InvokeList () [0x00000] in :0
    at Oxide.Plugins.HammerTime.IsInvoking (System.String methodName, System.Object obj) [0x00000] in :0
    at Oxide.Plugins.HammerTime.CancelInvoke (System.String methodName, System.Object obj) [0x00000] in :0
    at Oxide.Plugins.HammerTime.DoInvokes (.BuildingBlock block, Boolean demo, Boolean rotate) [0x00000] in :0
    at Oxide.Plugins.HammerTime.OnServerInitialized () [0x00000] in :0
    at Oxide.Plugins.HammerTime.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in :0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0
    Code:
    Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (UnauthorizedAccessException: System access is restricted, you are not allowed to use System.Reflection.MemberInfo)
    at Oxide.Plugins.TruePVE.AllowDamage (.BaseEntity entity, .HitInfo hitinfo) [0x00000] in :0
    at Oxide.Plugins.TruePVE.HandleDamage (.BaseCombatEntity entity, .HitInfo hitinfo) [0x00000] in :0
    at Oxide.Plugins.TruePVE.OnEntityTakeDamage (.BaseCombatEntity entity, .HitInfo hitinfo) [0x00000] in :0
    at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in :0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0
    etc.

    P.S. It was Google Translate.
     
  2. Wulf

    Wulf Community Admin

    I'd suggest either switching hosts else requesting in those plugin threads that they remove the reflection usage. Not really anything that can be done otherwise.
     
  3. I gave your answer to the technical support and they just turned on the access back. Thanks for the help.