• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reflection of indicators properties problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Reflection of indicators properties problem

    We have customers that have an old installation of our software. When we replace the DLLs via an external installer, and:
    1. delete related reflection cache files in the NinjaTrader/cache directory
    2. delete temporary DLLs in the custom/Tmp directory
    3. programmatically force a recompile on the next open
    4. 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)
    Jeremytang
    NinjaTrader Ecosystem Vendor - Shark Indicators

    #2
    There may be an indicator template which the user had set as default from the indicator parameters menu.

    If this is the case, this information is saved in Documents\NinjaTrader 7\templates\indicators

    You should find an xml file with the indicator name which contains these old parameters that are no longer part of your assembly. You may delete this file and that should remove from the system.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Balage0922, Today, 07:16 AM
    0 responses
    3 views
    0 likes
    Last Post Balage0922  
    Started by frankduc, Today, 07:10 AM
    0 responses
    4 views
    0 likes
    Last Post frankduc  
    Started by mbesha, Today, 07:00 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by faustf, Today, 06:28 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by svadukia, Today, 05:41 AM
    3 responses
    4 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X