File Uploading Problem in ASP.Net

Discussion in 'ASP.NET / ASP.NET Core' started by jesha, Aug 13, 2009.

  1. [FONT=&quot]when I try to upload any file(In KB's most of the time) in my asp.Net form,from my hosting server it gives me this error :
    [/FONT]
    [FONT=&quot]"Cannot find server or DNS Error
    [/FONT]
    [FONT=&quot] Internet Explorer"
    [/FONT]


    [FONT=&quot]and the uploading used to fail..but this is not the same case when we try to upload files from our local server. It works perfectly OK there.[/FONT]


    [FONT=&quot]Can anyone help me for this ??
    [/FONT]
    [FONT=&quot]Please note that I have wrote,[/FONT]
    [FONT=&quot]<httpRuntime maxRequestLength="102400" executionTimeout="3600"/>[/FONT]
    [FONT=&quot]in my web.config file.[/FONT]
     
  2. DNS errors is typically a network connectivity issue. Make sure your computer is able to get on the Internet. You may want to perform a ping test on your domain name. If you are getting time out errors then it shows network problems. May want to check your router.
     
  3. FileUpload1.SaveAs(Server.MapPath(@"fileName")); works 4 me.
    Try your code with processing time less than 3600;

    To be sure there's nothing wrong with the DNS, check the settings on your server.
     

Share This Page