Announcement

Collapse
No announcement yet.

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

            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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              601 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              347 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              559 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              558 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X