Facing problem with file upload
-
probabaly my question is not directly related to ASP.NET but to ASP, and IIS 5.0. I have developed code for file uploading, and its working fine. But the problem , I am facing is, on some maching (let say A) when I place the code, other terminals on the same network fail to uplaod file size greater than 100K (after they press upload button they get a blank page (in case if page opened as dialog window)...or they got message Can find server/ Page can not be displayed) while at the same time if the same page is accessed from host machine (A), one can upload any larger file I tested upto 10MB. Now, if the same code is shifted to some else machine (let say B) on the same network with same configuration, now every one could uplaod file of any size. What the problem with previous machine? My problem is that I can not simple move the code on any other machine as there are many other depended objects on machine A. Can anybody tell me, what coudl be the problem with the ISS on machine A. Adnan
-
probabaly my question is not directly related to ASP.NET but to ASP, and IIS 5.0. I have developed code for file uploading, and its working fine. But the problem , I am facing is, on some maching (let say A) when I place the code, other terminals on the same network fail to uplaod file size greater than 100K (after they press upload button they get a blank page (in case if page opened as dialog window)...or they got message Can find server/ Page can not be displayed) while at the same time if the same page is accessed from host machine (A), one can upload any larger file I tested upto 10MB. Now, if the same code is shifted to some else machine (let say B) on the same network with same configuration, now every one could uplaod file of any size. What the problem with previous machine? My problem is that I can not simple move the code on any other machine as there are many other depended objects on machine A. Can anybody tell me, what coudl be the problem with the ISS on machine A. Adnan
Adnan, It sounds like the script is timing out. You can set the timeout period in the ASP script to prevent this from happening. Just use the following code: Server.ScriptTimeout = 6000 The value you set is in seconds. Set this value prior to initiating the upload and you can override the default timeout period set in IIS. Cheers, Will
-
Adnan, It sounds like the script is timing out. You can set the timeout period in the ASP script to prevent this from happening. Just use the following code: Server.ScriptTimeout = 6000 The value you set is in seconds. Set this value prior to initiating the upload and you can override the default timeout period set in IIS. Cheers, Will
I have already considered the script time out, but what I feel is that on posting a large file, even the page is not located, as I said, it give the message page can not be displayed/can not find server. Even I tried to empty all logic for saving the file, just a blank asp page, but still same problem. This means the page is not called. And this happens on some machines while on others it works, although I checked they are of same configuration on same network Adnan