This is a migrated thread and some comments may be shown as answers.

Got JavaScript "Permission denied" error when trying to remove an invalid entry

7 Answers 162 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Channa Leang
Top achievements
Rank 1
Channa Leang asked on 17 Mar 2010, 03:42 PM
Hi, another issue I'm facing is, when user selects an invalid file to upload such as size over limit, wrong file type...etc. An exclamation mark displays (see attached) as it supposes to. Then, user tries to remove that error entry by clicking on remove button, they got a JavaScript error "Permission denied" (see attached).

Please help!
 

7 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 18 Mar 2010, 09:25 AM
Hello Channa Leang,

The reason for this error is that you have't allowed in your web.config for large file uploads. The default ASP.NET limit is 4mb. If you want to upload larger files you need to set the allowed max request length into the web.config. Detailed instructions on how to do this can be found here.

Kind regards,
Genady Sergeev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Channa Leang
Top achievements
Rank 1
answered on 18 Mar 2010, 01:47 PM
This should not be the case because I have set the following code in web.config.

<

 

httpRuntime maxRequestLength="512000" executionTimeout="3600" />

 


Any other possible things that would produce this error?
0
Genady Sergeev
Telerik team
answered on 18 Mar 2010, 04:49 PM
Hello Channa Leang,

Up to now this is the only reason for the mentioned error that we are aware of. The value that you have declared in the maxRequestLength fields estimates to 500megabytes. As far as I can see from your screenshot, you are trying to upload Visual Studio ISO file that is typically bigger that 500megabytes. Or perhaps I am missing something?

Could you please give it a tray with a larger value, for example 1024000 kbytes. If the problem persist could you please open a support ticket and send us a sample project that replicates the issue. This will greatly ease us in finding out what is going wrong.

Thank you for your cooperation.

Sincerely yours,
Genady Sergeev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Channa Leang
Top achievements
Rank 1
answered on 18 Mar 2010, 07:34 PM
The exclamation mark error didn't show up when I increase the value of maxRequestLength to 1024000 kbs in web.config file. And, right after I select the over-sized file (from dialog box) to upload, error didn't show anymore and the upload process started accordingly without doing any validation. That's NOT what I want.

I would like to limit a single upload file to 500MB. The maximum files selection per upload is 4. User can select a bigger file (>500MB) from the dialog box. But as soon as they select that file, it should display an error message and let them remove that invalid entry.

In my orginal code, which is maxRequestLength="512000", the validation seems working. What it doesn't working is, when user tries to remove the error entry, the javascript error "Permission denied" pops.

Any suggestion to achive this?

0
Genady Sergeev
Telerik team
answered on 23 Mar 2010, 02:49 PM
Hi Channa Leang,

The access denied error will appear only under Cassini, i.e. when you develop your web-site using Visual Studio. Once the site is hosted under IIS the error will disappear. This is annoying a limitation of the Visual Studio integrated server.  We will fix the issue for the next week's internal build. You can find more information on what is latest internal build and how to obtain it here.

So, to sum up, you can bring back your old maxRequestLength and ignore the error that you receive. Once you host your site under IIS, the error will disappear.

All the best,
Genady Sergeev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Aamir Shah
Top achievements
Rank 2
answered on 28 Mar 2010, 07:22 PM
Hi Channa Leang,

I was facing same problem but after spending a day i found that i missing to add

 <httpHandlers>
 <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
 </httpHandlers>

in WebConfig file.


And issue has been resolve. It may help you .


Regards

Aamir


0
Genady Sergeev
Telerik team
answered on 30 Mar 2010, 10:45 AM
Hi Aamir Shah,

The WebResoruce handler not being registered will result in failed upload but not in access denied exception. At least we are not aware of such scenario nor I was able to reproduce the access denied error with lacking handler. Did you receive the permission denied error or just the  upload process failed?


Regards,
Genady Sergeev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
AsyncUpload
Asked by
Channa Leang
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Channa Leang
Top achievements
Rank 1
Aamir Shah
Top achievements
Rank 2
Share this question
or