{"id":59,"date":"2008-11-05T13:46:24","date_gmt":"2008-11-05T05:46:24","guid":{"rendered":""},"modified":"2014-02-27T22:53:32","modified_gmt":"2014-02-27T14:53:32","slug":"windows2003%e4%b8%adiis6-0%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0%e5%a4%a7%e5%b0%8f%e9%99%90%e5%88%b6%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2008\/11\/05\/59.htm","title":{"rendered":"Windows2003\u4e2dIIS6.0\u6587\u4ef6\u4e0a\u4f20\u5927\u5c0f\u9650\u5236\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>Question \u95ee\u9898\u63cf\u8ff0:<\/p>\n<p>Does Pure ASP Upload support uploading large files on Windows 2003 server? I&#8217;m getting the following error: <br \/>\nRequest object error &#8216;ASP 0104 : 80004005&#8217; <br \/>\nOperation not Allowed <br \/>\n\/ScriptLibrary\/incPureUpload.asp, line 40<\/p>\n<p>\u4e0a\u4f20\u5927\u6587\u4ef6\u5230 Windows 2003 server + IIS 6.0 \u670d\u52a1\u5668\u7684\u65f6\u5019\u9047\u5230\u4e0b\u5217\u9519\u8bef: <br \/>\n\u8bf7\u6c42\u5bf9\u8c61\u9519\u8bef &#8216;ASP 0104 : 80004005&#8217; <br \/>\n\u64cd\u4f5c\u88ab\u7981\u6b62 <br \/>\n\/ScriptLibrary\/incPureUpload.asp, \u884c 40<\/p>\n<p>Answer \u539f\u56e0:<\/p>\n<p>Yes, Pure ASP Upload supports uploading large files on the Windows 2003 server. However:<br \/>\nIIS6.0 prevent the upload of files more than +200Kb. So you need to make some changes in the default IIS settings first.<\/p>\n<p>\u91c7\u7528\u7eafASP\u6280\u672f\u4e0a\u4f20\u5927\u6587\u4ef6\u5230Windows2003\u670d\u52a1\u5668,\u65e0\u8bba\u5982\u4f55IIS6.0 \u7981\u6b62\u4e0a\u4f20\u8d85\u8fc7 200kB \u7684\u6587\u4ef6. \u56e0\u6b64\u4f60\u9700\u8981\u4fee\u6539 IIS \u7684\u9ed8\u8ba4\u8bbe\u7f6e.<\/p>\n<p>Background \u6280\u672f\u80cc\u666f:<\/p>\n<p>For IIS6.0 users, the AspMaxRequestEntityAllowed property specifies the maximum number of bytes allowed in the entity body of an ASP request. If a Content-Length header is present and specifies an amount of data <br \/>\ngreater than the value of AspMaxRequestEntityAllowed, IIS returns a 403 error response.<\/p>\n<p>This property is related in function to MaxRequestEntityAllowed, but is specific to ASP request. Whereas you&nbsp; <br \/>\nmight set the MaxRequestEntityAllowed property to 1 MB at the general World Wide Web Publishing Service <br \/>\n(WWW Service) level, you may choose to set AspMaxRequestEntityAllowed to a lower value, if you know that <br \/>\nyour specific ASP applications handle a smaller amount of data.<\/p>\n<p>\u3000\u3000\u5728 IIS 6.0 \u4e2d, AspMaxRequestEntityAllowed \u5c5e\u6027\u6307\u5b9a\u4e86\u4e00\u4e2a ASP \u8bf7\u6c42(Request)\u53ef\u4ee5\u4f7f\u7528\u7684\u6700\u5927\u5b57\u8282\u6570. \u5982\u679c Content-Length \u5934\u4fe1\u606f\u4e2d\u5305\u542b\u7684\u8bf7\u6c42\u957f\u5ea6\u8d85\u8fc7\u4e86 AspMaxRequestEntityAllowed \u7684\u503c, IIS \u5c06\u8fd4\u56de\u4e00\u4e2a 403 \u9519\u8bef\u4fe1\u606f. <br \/>\n\u3000\u3000\u8fd9\u4e2a\u5c5e\u6027\u503c\u4e0e MaxRequestEntityAllowed \u76f8\u4f3c, \u4f46\u662f\u662f\u9488\u5bf9 ASP \u8bf7\u6c42\u7684. \u5047\u5982\u4f60\u77e5\u9053\u81ea\u5df1\u7684 ASP \u5e94\u7528\u53ea\u9700\u8981\u5904\u7406\u5f88\u5c11\u7684\u8bf7\u6c42\u6570\u636e, \u4f60\u53ef\u4ee5\u5728 World Wide Web Publishing Service (WWW \u53d1\u5e03\u670d\u52a1)\u5c42\u7ea7\u8bbe\u5b9a\u5168\u5c40\u7684 MaxRequestEntityAllowed \u5c5e\u6027\u4e3a 1MB, \u5e76\u5355\u72ec\u8bbe\u5b9a AspMaxRequestEntityAllowed \u4e3a\u4e00\u4e2a\u8f83\u5c0f\u7684\u503c.&nbsp;<\/p>\n<p>Solution \u89e3\u51b3\u65b9\u6848<\/p>\n<p>Open your metabase.XML which is located in c:\\Windows\\System32\\Inetsrv find the line &quot;AspMaxRequestEntityAllowed&quot; and change it to &quot;1073741824&quot;. This is 1GB &#8211; of course you can enter another value to suite your needs.<\/p>\n<p>\u3000\u3000\u6253\u5f00\u4f4d\u4e8e C:\\Windows\\System32\\Inetsrv \u4e2d\u7684 metabase.XML, \u5e76\u4fee\u6539 AspMaxRequestEntityAllowed\u884c\u4e3a\u4f60\u9700\u8981\u7684\u503c\u5355\u4f4d:Byte(\u4f8b\u5982 &quot;1073741824&quot;, 1GB)\u9ed8\u8ba4\u4e3a204800Byte.<\/p>\n<p>NOTE: Before you edit the file, be sure to stop the IIS service first or else you won&#8217;t be able to save the file.<br \/>\n\u63d0\u793a:\u5728\u7f16\u8f91\u6587\u4ef6\u524d\u8bf7\u505c\u6b62 IIS \u670d\u52a1, \u5426\u5219\u65e0\u6cd5\u4fdd\u5b58\u4fee\u6539\u540e\u7684\u6587\u4ef6.<\/p>\n<p>\u505c\u6b62\u65b9\u6cd5\u4e4b\u4e00:\u547d\u4ee4\u884c\u65b9\u5f0f<br \/>\n\u505c\u6b62:\u8fd0\u884ciisreset \/stop<br \/>\n\u542f\u52a8:\u8fd0\u884ciisreset \/start<\/p>\n<p>\u53c2\u8003\u8d44\u6599<br \/>\nUpload large files on Windows 2003 server<\/p>\n<p>\u9644\u5f55\uff1aIISRESET\u53c2\u6570<\/p>\n<p>IISRESET.EXE (C) Microsoft Corp. 1998-1999<br \/>\n\u7528\u6cd5:<br \/>\niisreset [computername]<\/p>\n<p>\/RESTART&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u505c\u6b62\u7136\u540e\u91cd\u65b0\u542f\u52a8\u6240\u6709 Internet \u670d\u52a1\u3002<br \/>\n\/START&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u542f\u52a8\u6240\u6709 Internet \u670d\u52a1\u3002<br \/>\n\/STOP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u505c\u6b62\u6240\u6709 Internet \u670d\u52a1\u3002<br \/>\n\/REBOOT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u91cd\u65b0\u542f\u52a8\u8ba1\u7b97\u673a\u3002<br \/>\n\/REBOOTONERROR&nbsp;&nbsp;&nbsp; \u5982\u679c\u5728\u542f\u52a8\u3001\u505c\u6b62\u6216\u91cd\u65b0\u542f\u52a8 Internet \u670d\u52a1\u65f6\u51fa\u9519\uff0c\u5219\u91cd\u65b0\u542f\u52a8\u8ba1\u7b97\u673a\u3002<br \/>\n\/NOFORCE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5982\u679c\u8bd5\u56fe\u6b63\u5e38\u505c\u6b62\u670d\u52a1\u5931\u8d25\uff0c\u4e0d\u5f3a\u5236\u7ec8\u6b62 Internet \u670d\u52a1\u3002<br \/>\n\/TIMEOUT:val&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u6307\u5b9a\u7b49\u5f85 Internet \u670d\u52a1\u7684\u6210\u529f\u505c\u6b62\u7684\u8d85\u65f6\u503c(\u4ee5\u79d2\u4e3a\u5355\u4f4d)\u3002\u5982\u679c\u5df2\u6307\u5b9a REBOOTONERROR \u53c2\u6570\uff0c\u8d85\u65f6\u540e\u53ef\u4ee5\u91cd\u65b0\u542f\u52a8\u8ba1\u7b97\u673a\u3002\u670d\u52a1\u91cd\u65b0\u542f\u52a8\u7684\u9ed8\u8ba4\u503c\u4e3a 20 \u79d2\uff0c\u505c\u6b62\u4e3a 60 \u79d2\uff0c\u8ba1\u7b97\u673a\u91cd\u65b0\u542f\u52a8\u4e3a 0 \u79d2\u3002<br \/>\n\/STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u663e\u793a\u6240\u6709 Internet \u670d\u52a1\u7684\u72b6\u6001\u3002<br \/>\n\/ENABLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u542f\u7528\u672c\u5730\u7cfb\u7edf\u4e0a Internet \u670d\u52a1\u7684\u91cd\u65b0\u542f\u52a8\u3002<br \/>\n\/DISABLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u7981\u7528\u672c\u5730\u7cfb\u7edf\u4e0a Internet \u670d\u52a1\u7684\u91cd\u65b0\u542f\u52a8\u3002<\/p>\n<p>\n&nbsp;#######################################<\/p>\n<p>IIS 6 \u51fa\u4e8e\u5b89\u5168\u8003\u8651, \u9ed8\u8ba4\u6700\u5927\u8bf7\u6c42200K(\u4e5f\u5373\u6700\u5927\u63d0\u4ea4\u6570\u636e\u9650\u989d\u4e3a200KByte, 204800Byte).<br \/>\n\u89e3\u51b3\u529e\u6cd5:<br \/>\n\u8fd0\u884ccmd,\u505c\u6b62net stop iisadmin \/y<br \/>\n\u627e\u5230system32\\inesrv\u4e0b\u7684metabase.xml,<br \/>\n\u6253\u5f00\uff0c\u627e\u5230\u7ea6592\u884c\uff1aASPMaxRequestEntityAllowed\uff0c\u4fee\u6539\u4e3a\u9700\u8981\u7684\u503c\uff0c<br \/>\n\u9ed8\u8ba4\u4e3a204800\uff0c\u5373200K\uff0c\u628a\u5b83\u4fee\u6539\u4e3a20480000\uff08\u7ea620M\uff09\uff0c\u5982\u679c\u4f60\u60f3\u4f20\u5927\u70b9\uff0c\u5c31\u7d2f\u52a0\u5427\u3002<br \/>\n\u7136\u540e\u91cd\u542fnet start iisadmin\u670d\u52a1.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question \u95ee\u9898\u63cf\u8ff0: Does Pure ASP Upload support uploading large files on Windows 2003 server? I&#8217;m getting the followin&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":65921,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/59\/revisions\/65921"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=59"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}