Hi,
I am getting a number of javascript errors when uploading files large enough to trigger the UploadingProgressChanged event. I have added the httpHandler references to the web.config but I am still getting the problem. I have attached a sample project.
I am fairly sure its a configuration issue as I have been able to get the demo projects to work ok, but I have not been able to figure it out whats wrong with my code.
Can you have a look and tell me what I am doing wrong.
Thanks
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Phil,
As far as I can tell, you must set the uploading properties in web.config file (MaxRequestLength and ExecutionTimeout). Since the default values are rather low, the server will refuse to receive large files. To set these properties at design time, you can use the corresponding dialog in the ASPxUploadControl's task menu.
I've attached a modified project. Please let us know if this makes sense.
Thanks,
Michael.
Thanks,
problem solved
Hi,
although this issue went away by changing the MaxRequestLength in the web.config. The issue returns if a file larger than MaxRequestLength is uploaded.
When running in debug within Visual Studio a number of Javascript errors are generated as shown below:
Microsoft JScript runtime error: Permission denied
Access is denied.
Access is denied.
Microsoft JScript runtime error: 'attributes' is null or not an object
The error below is seen on the page if I click Ignore each time an error appears.
The total content length of the files selected for uploading exceeds the allowed maximum request length (29000 Kb) defined by the application.
I have set the ValaidationSettings MaxFileSize but this has no effect. Is there any way of stopping these javascript errors appearing to the end user. I have not run yet the code outside of the IDE. Will these errors disappear when I do?
Thanks
Hi Phil,
I'm afraid I can't reproduce this issue on my side using the project I posted in the previous message. If the uploaded file exceeds the MaxRequestLength limit the corresponding message is displayed below the control. If I also define the ValaidationSettings.MaxFileSize property, and upload a bigger file, an appropriate error message is displayed below the file input line after the file has been uploaded. No "Permission denied" or "Access denied" messages are popped on my side.
Note, the most recent DXperience 9.1 version is 9.1.5. We recommend that you update your installation. If this doesn't help, please post here a sample project reproducing this issue.
Thanks,
Michael.
Hi,
attached is a project that has the problem. I have upgraded it to 2009 v1.5 and the issue remains.
Hi!
We've reproduced this problem. It seems like a bug.
We'll investigate it, and try to fix it as soon as possible.
Thanks,
Andrew R
Hi Phil:
This issue is reproducible under WindowsXP with IIS5.1, and also under Cassini WebServer. The cause of this glitch is that when a request exceeds its maximum length, IIS ends this request, and we can't correctly get internal elements of a control (iframe) under IE.
The default maxRequestSize acceptable for IIS is 30Mb.
There is a workaround for the IIS that version is >5. You should execute the following command:
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/security/requestFiltering -requestLimits.maxAllowedContentLength:<new-request-length>
Unfortunately, it is impossible to change this property either for the IIS 5.1 or Cassini Web Server because there's no corresponding API.
Thanks
Kate.