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

LogFile Upload

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

    LogFile Upload

    Hi Guys,

    I am trying to upload a logfile to my webserver. Is this the correct syntax?


    __________________________________________________ _______
    using System.Net
    using System.Web


    private string path2 = "c:\\documents\\logfile.txt";


    WebClient fileUploader= new WebClient();
    fileUploader.UploadFile("http://www.domain.com/files/", "POST", path2 );


    __________________________________________________ ______

    my webserver doesnt have any username or password.

    it doesnt seem to be working... any suggestions?
    Last edited by Oil_Trader; 09-16-2010, 06:44 PM.

    #2
    Since this is more general C# this is unfortunately outside of the scope we can support here - do you see any log errors in the Control Center?

    It would be helpful to add the 'response' for debug purposes - http://msdn.microsoft.com/en-us/libr...hs(VS.80).aspx
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jltarrau, Today, 05:57 AM
    3 responses
    6 views
    0 likes
    Last Post Jltarrau  
    Started by f.saeidi, Today, 05:56 AM
    2 responses
    8 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    36 views
    0 likes
    Last Post Pattontje  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    7 responses
    27 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Skifree, Today, 03:41 AM
    2 responses
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X