Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

NT7 Cannot load WinBase.dll

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

    NT7 Cannot load WinBase.dll

    exception System.IO.FileNotFoundException: Could not load file or assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    File name: 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
    at FormsMessageBox.Show(String caption, String text, MessageBoxButton button, String market, String limit, String cancel, String ok, Int32 interval)
    at NinjaTrader.Indicator.Buttonstotrade.btnFullauto_C lick(Object sender, EventArgs e)

    === Pre-bind state information ===
    LOG: User = DESKTOP-KS51DLN\Igor
    LOG: DisplayName = WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    (Fully-specified)
    LOG: Appbase = file:///C:/Program Files (x86)/NinjaTrader 7/bin64/
    LOG: Initial PrivatePath = NULL
    Calling assembly : 36b5bb4e307c46c0a23488af8db9fa0b, Version=7.0.1000.40, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in LoadFrom load context.
    WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
    LOG: Using application configuration file: C:\Program Files (x86)\NinjaTrader 7\bin64\NinjaTrader.exe.Config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\co nfig\machine.config.
    LOG: Post-policy reference: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.


    --------------------------------------
    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Windows Base\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dl l

    i need it for DispatcherFrame function

    #2
    Hello buildorbust, thanks for your post and welcome to the NinjaTrader forum.

    Please first add a reference to the DLL by right-clicking the code>References.

    After that, you must add "using System.Windows.Threading;" then you can instantiate a DispatcherFrame object.

    Kind regards.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by stantenlee, Today, 04:32 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_JustinD  
    Started by jbmiguel, 08-11-2022, 08:48 AM
    6 responses
    52 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by ezrollin, Yesterday, 08:58 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by futureszone, Yesterday, 04:01 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by flybuzz, Today, 09:05 AM
    0 responses
    5 views
    0 likes
    Last Post flybuzz
    by flybuzz
     
    Working...
    X