मैं एक साधारण webmethod हैIIS7 - जब अनुरोध पैरामीटर के आकार से अधिक एक 404.13 साथ नाकाम रहने Webrequest 30MB
[WebMethod]
public int myWebMethod(string fileName, Byte[] fileContent)
बहरहाल, जब भी मैं एक बाइट सरणी जो 30MB से बड़ा है गुजरती हैं, मैं त्रुटि मिलती है:
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"> </compilation>
<authentication mode="Windows" />
<httpRuntime useFullyQualifiedRedirectUrl="true"
maxRequestLength="102400" requestLengthDiskThreshold="102400"
/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="104857600"/>
</requestFiltering>
</security>
</system.webServer>
</configuration>
मैं चारों ओर खोज की है, और वें का सबसे आम कारण:
HTTP Error 404.13 - Not Found The request filtering module is configured to deny a request that exceeds the request content length.
मेरे web.config इस प्रकार है समस्या maxAllowedContentLength
संपत्ति डिफ़ॉल्ट रूप से 30 एमबी है। हालांकि, मैंने इसे 0 एमके लिए 100 एमबी, साथ ही maxRequestLength
संपत्ति के रूप में सेट किया है।
मुझे कहीं भी समाधान नहीं मिल रहा है जो कि पहले से ऊपर की गई संपत्तियों में से एक को सेट नहीं कर रहा है। क्या मुझे कुछ याद आया है?
यह मेरे साथ भी 7.5 में हो रहा है: मुझे सच में विश्वास है कि यह कोई समाधान के साथ आईआईएस बग है। SO: http://stackoverflow.com/questions/16365483/iis-7-5-mercurial-setup-ignoring-maxallowedcontentlength आईआईएस मंच: http://forums.iis.net/post/set/1043/1197751/2049386 – jocull
मेरे लिए यहां विशेष समस्या वास्तव में एसएसएल के साथ है - सादा HTTP पर सब कुछ अपेक्षित प्रतिक्रिया देता है। हालांकि, एक बार जब एसएसएल चालू हो जाता है तो यह लटकना शुरू हो जाता है। – jocull
यह संभव है कि एसएसएल के साथ आईआईएस असंगतता यहां दस्तावेज के रूप में है: https://bitbucket.org/tortoisehg/thg/issue/2593/cant-push-over-30mb-to-iis-via-https - खोजने के लिए कितना दर्द !!! – jocull