Problem with uploading files

Last post 05-10-2005, 4:17 PM by optik. 5 replies.
Sort Posts: Previous Next
  •  05-06-2005, 9:06 PM 6477

    Problem with uploading files

    I'm trying to upload a 17MB .pps file using the Insert Document dialog...I've already added the .pps extension to the Document Filters in the Default.config under Security...and I've set the MaxDocumentSize to 160000. However, when I click the Upload button, it gives me the Uploading text as normal, but then shortly after it sends me to a dead page...
     
    Action canceled
    Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable.

    Please try the following:
    • Click the refresh.gif (82 bytes)Refresh button, or try again later.
    • If you have visited this page previously and you want to view what has been stored on your computer, click File, and then click Work Offline.
    • For information about offline browsing with Internet Explorer, click the Help menu, and then click Contents and Index.

     
    Internet Explorer
     
    When I check the Properties on this page, I get the following:
     
    res://C:\WINDOWS\system32\shdoclc.dll/navcancl.htm#http://192.168.0.101/clients/dev/CuteSoft_Client/CuteEditor/Dialogs/InsertDocument.Frame.Aspx?settinghash=5de0db3d&{ResourceArguments}&DP=/clients/dev/Uploads&C_GP=/clients/dev/Uploads&Upload=True&UC=en-US&BG=%23efefef&MaxDocumentSize=100
     
     
    I don't understand why those parameters have the upload folders as being /Uploads ...I set them to be ~/docs in the Default.config ...I also don't understand why the MaxDocumentSize says 100...
     
    Any ideas Adam?
  •  05-07-2005, 4:04 PM 6490 in reply to 6477

    Re: Problem with uploading files

    This maybe is a server-related limitation.

    IIS6.0 prevent the upload of files more than +200Kb. So you need to make some changes in the default IIS settings first.

    The solution is here:

    IIS 6.0 (Windows 2003) has a file named metabase.xml which resides in the C:\Windows\system32\inetsrv folder. Navigate to that directory and edit the file. Search for an entry called AspMaxRequestEntityAllowed. This defaults to a value of 204800, which causes IIS 6.0 to limit allowed upload size to 204,800 bytes.

    Changing this value to a large number (such as 2000000000 for 2 gigabytes) will allow your Windows 2003 server to accept large uploads. 

    If your server does not allow the Metabase Edit-While-Running feature, you will need to stop the IIS service before you can save the metabase.xml file.
     
    Hope it helps. Let me know if you still have problems.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

    Filed under:
  •  05-07-2005, 4:55 PM 6495 in reply to 6490

    Re: Problem with uploading files

    Thanks for the informative reply Adam.
     
    Unofrtunately, I just followed your instructions and I still get the same error...
     
    You should also know that before I made the change to the metabase.xml file, I was able to successfully upload a 1.94MB file...so I'm not sure that the AspMaxRequestEntityAllowed is the problem.
     
    Any other suggestions?
  •  05-09-2005, 2:11 PM 6537 in reply to 6495

    Re: Problem with uploading files

    Adam? Terry? Anyone?
     
    Could really do with a helping hand right about now...
  •  05-10-2005, 9:03 AM 6548 in reply to 6537

    Re: Problem with uploading files

    try putting this in the web.config of your site:
     
    <httpRuntimemaxRequestLength="1000000000"/>
     
    make sure its is the <system.web>
     
    This is the request length which you can change to any size (in bytes) should solve your problem
     
    Colin
  •  05-10-2005, 4:17 PM 6568 in reply to 6548

    Re: Problem with uploading files

    Thanks Colin...that did the trick!
View as RSS news feed in XML