Announcement

Collapse
No announcement yet.

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    129 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    106 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    86 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X