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

FileNotFound exception

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

    FileNotFound exception

    I write indicator which read text file.
    On 32bit OS windows 7 - work fine, but on 64bit win7 - catch exception:



    I trying 32 and 64bit version of NT 7, but results are same...
    Anybody know how i can resolve this problem?
    ____
    PS - file exist - path write correctly - access to file is full for all windows users
    Last edited by s21462; 08-16-2011, 08:26 AM.

    #2
    Hi s21462, where is the file you're trying to access? The Program Files folder has a different name on 64 bit versions of Windows, and I'm thinking that could be it because there should be no other differences between 64 and 32 bit versions of Windows.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Austin View Post
      Hi s21462, where is the file you're trying to access? The Program Files folder has a different name on 64 bit versions of Windows, and I'm thinking that could be it because there should be no other differences between 64 and 32 bit versions of Windows.
      Hi, thank for ur answer. File location: drive C:\ticks\partgc.txt - i think Nt indicator must access to this path without problems...

      Comment


        #4
        Hi again, this is more of a general C# issue than NinjaScript issue, and as such, we are unable to provide support here. A quick google search didn't reveal much about this issue. Do you have full read/write permissions to that folder?
        AustinNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Austin View Post
          Hi again, this is more of a general C# issue than NinjaScript issue, and as such, we are unable to provide support here. A quick google search didn't reveal much about this issue. Do you have full read/write permissions to that folder?
          Yes, permissions is full. I start NT under administrator.
          On 32bit on other computer work fine, but on 64bit - dont work (IO problem)

          Comment


            #6
            s21462, I would give a fresh installed .NET a try here including the 'extented profile' if you choose to run .NET 4.0
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Bertrand View Post
              s21462, I would give a fresh installed .NET a try here including the 'extented profile' if you choose to run .NET 4.0
              .net 4/0 allready installed.


              i try this code:

              string file_path ="C:\\123.txt";
              StreamReader sr = new StreamReader(file_path);

              -> result: System.IO.FileNotFoundException

              I try windows 7 32 bit - and i take same results.
              Other programs writen on .net - work fine and read files without problems.
              Thanks.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Rapine Heihei, Today, 08:25 PM
              0 responses
              2 views
              0 likes
              Last Post Rapine Heihei  
              Started by Rapine Heihei, Today, 08:19 PM
              0 responses
              1 view
              0 likes
              Last Post Rapine Heihei  
              Started by f.saeidi, Today, 08:01 PM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by Rapine Heihei, Today, 07:51 PM
              0 responses
              5 views
              0 likes
              Last Post Rapine Heihei  
              Started by frslvr, 04-11-2024, 07:26 AM
              5 responses
              96 views
              1 like
              Last Post caryc123  
              Working...
              X