- delete related reflection cache files in the NinjaTrader/cache directory
- delete temporary DLLs in the custom/Tmp directory
- programmatically force a recompile on the next open
- manually recompile on the next open
We still get NT trying to load properties of the older indicator, properties that use classes that no longer exist. Is there a cache somewhere we can wipe, that NT/windows system is keeping of the reflection property information for an indicator?
Oddly enough performing a uninstall, reboot, reinstall consistently fixes the issue.
==== Exception Details ====
System.TypeLoadException: Could not load type 'SharkIndicators.Indicators.Utils.IndicatorPriceUn it' from assembly 'SharkIndicators.Common, Version=1.103.4910.38006, Culture=neutral, PublicKeyToken=null'.
at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Reflection.RuntimeMethodInfo.get_Signature( )
at System.Reflection.RuntimeMethodInfo.FetchNonReturn Parameters()
at System.Reflection.RuntimeMethodInfo.GetParameters( )
at NinjaTrader.Indicator.IndicatorBase.EnsureLifeTime Status(LifeTimeStatus status)
at NinjaTrader.Indicator.IndicatorBase.Update(Int32 index)
Comment