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

Uploading file progress bar never goes away

12 Answers 192 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Mike Causi
Top achievements
Rank 1
Mike Causi asked on 19 Aug 2010, 07:10 PM
Here is my code;

 

<rada:RadAsyncUpload ID="RadUpload1" runat="server" OnFileUploaded="RadAsyncUpload1_FileUploaded" OnClientFileUploadFailed="onUploadFailed"

 

 

ReadOnlyFileInputs="true" OnClientFileSelected="onFileSelected" OnClientFileUploaded="onFileUploaded" OnClientFileUploading="onFileUploading" TemporaryFolder="c:\temp" />


 

 

<script type="text/javascript">

 

 

 

 

 

var $ = $telerik.$;

 

 

var uploadsInProgress = 0;

 

 

function onFileSelected(sender, args) {

 

alert(

'4');

 

 

if (!uploadsInProgress)

 

$(

"#newupload").attr("disabled", "disabled");

 

uploadsInProgress++;

}

 

function onFileUploaded(sender, args) {

 

alert(

'3');

 

decrementUploadsInProgress();

}

 

function onUploadFailed(sender, args) {

 

alert(

'2');

 

decrementUploadsInProgress();

 

}

 

function decrementUploadsInProgress() {

 

alert(

'1');

 

uploadsInProgress--;

 

if (!uploadsInProgress)

 

$(

"#newupload").removeAttr("disabled");

 

}

 

function onFileUploading() {

 

alert(

'5');

 

}

 

 

</script>

 




The problem I'm having is that it never seems to properly be creating the temporary file.  I see a file called "RadUploadTestFile" created, but with 0KB.  And the progress bar never goes away.  I don't get why it won't create the temporary file for me to upload to the final location later?

See attached image.

12 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 24 Aug 2010, 12:21 PM
Hello Mike Causi,

We will need some details regarding your scenario in order to troubleshoot the problem that you experience. Could you please answer the following:

1) What is the size of the file that you are trying to upload?
2) Which version of IIS do you use?
3) Do you use authentication/authorization enabled for your web-site?
4) Do you have the Telerik.Web.UI.WebResource.axd handler registered into your web.config?

Thank you.

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
Mike Causi
Top achievements
Rank 1
answered on 24 Aug 2010, 01:17 PM
Here are some answers:
1. Filesize is a 149kb pdf
2. I am using IIS 7 in windows 7
3. I am using forms authentication on the website
4.   I have the handler registered as follows in the web.config

<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>

under system.webserver
modules
 <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />

handlers
  <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />

0
Genady Sergeev
Telerik team
answered on 27 Aug 2010, 11:56 AM
Hi Mike Causi,

How about the registration of the Telerik.Web.UI.WebResource.axd handler in the handlers section, is it present? Just a side note, we have just release Q2 Service Pack 1. In Service Pack 1, RadAsyncUpload is equipped with new, more robust error handling. Now it will throw error codes in the console showing what is the exact error. I think that will greatly ease us in troubleshooting your problem. So, could you please try the latest service pack, open the FireBug (in FireFox) console and try to upload a file. An error code will appear if the upload process fail. Then paste the error code here. This will allow us to easily track your problem.

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
Deanna Terry
Top achievements
Rank 1
answered on 13 Sep 2010, 05:34 PM
I'm having the same problem as Mike: "Uploading file progress bar never goes away", which is why I decided to read this thread for answers.  When I tried following your most recent instructions, I discovered a new clue.

Here are the answers to your first set of questions:

1) What is the size of the file that you are trying to upload? 18 KB
2) Which version of IIS do you use? IIS 6.0
3) Do you use authentication/authorization enabled for your web-site?  I'm using integrated authentication for various pages in my site (including the form that contains the RadAsyncUpload control), but I've checked and double-checked again that I have anonymous access enabled on my root directory and my App_Code directory.
4) Do you have the Telerik.Web.UI.WebResource.axd handler registered into your web.config? Yes.  Again, I've checked and double-checked that the web.config is setup correctly.

My control is very basic and is setup as follows:
<telerik:RadAsyncUpload runat="server" ID="rauAttachment" Skin="Web20" ReadOnlyFileInputs="True">
</telerik:RadAsyncUpload>


So following you instructions, I downloaded, installed, and am using the most recent version of the controls (Version=2010.2.826.35).  I then opened up my form in FireFox so I could see the errors in FireBug... and, wouldn't you know it, the async upload worked perfectly in FireFox!  Therefore, I have no errors to paste and show you.  When using IE, I only receive a vague "unspecified error."  I've attached a screenshot of the error message.

Any help you could provide would be greatly appreciated!!

Thank you,
Deanna
0
Genady Sergeev
Telerik team
answered on 17 Sep 2010, 08:07 AM
Hello Deanna Terry,

Can you try the following, open the IE Developer Toolbar and open the page that produced error. When the error happen you should be prompted whether do you want to debug. Click yes and paste and make a screenshot of the failing code. Then link the screenshot to here. Also, try adding Location tag in the web.config allowing for anonymous access to the Telerik.Web.UI.WebResource.axd handler. Please check this article for further reference.

Greetings,
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
chris
Top achievements
Rank 1
answered on 20 Oct 2011, 06:02 PM
Hello Everyone,

 I seem to be having an related error. When I opened the Console in FireFox nothing appeared but it is still broken. I opening it in Google Chrome and I got this error "Uncaught SyntaxError: Unexpected token < ScriptResource.axd:16" I have attached a screen shot of the error.

Thank you,
Chris 

0
David
Top achievements
Rank 1
answered on 21 Jan 2013, 04:05 PM
I got exactly the same error. Have anyone solved this?
0
Plamen
Telerik team
answered on 24 Jan 2013, 07:31 AM
Hello,

 
I tried to reproduce the issue once again but to no avail. I am attaching my test project. Would you please review it and let me know what else should be added to it in order to observe the described error and be more helpful?

Please have in mind that I have done my tested with latest version of RadControls please clarify the version you are using as well.

Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jody
Top achievements
Rank 1
answered on 15 May 2013, 03:18 PM
Is there any resolution to this issue?  Anything anyone can pass along to help resolve this problem?

In our environment, the upload works fine on one server, but hangs, as described above, with the "SyntaxError: Unexpected token <" error in a different environment.  Any suggestions or ideas would be appreciated!

Thanks!
0
Plamen
Telerik team
answered on 20 May 2013, 10:33 AM
Hi Mike,

 
Would you please let us know if you can reproduce the error with the sample web page I attached in my previous reply and what exactly file are you uploading to observe the error or it happens with all the files?

Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
David
Top achievements
Rank 1
answered on 19 Aug 2014, 08:55 PM
Hi Mike, 
We had the same issue in one of our application environments.
The root cause was the misconfiguration of the app pool account not having write access to the app folder. As you're setting the temporary folder to c:\temp I would double check the app pool user has the appropriate privilege in that folder.

Hope it helps, 
0
David
Top achievements
Rank 1
answered on 19 Aug 2014, 08:57 PM
Hi Mike,
We had the same issue in one of our application environments. 
The root cause was a mis-configuration of the folder security in Windows. Since you're setting the temp folder for the RAD upload to "c:\temp" I would suggest checking the application pool account has the appropriate write access in that folder.

Hope it helps,
Tags
AsyncUpload
Asked by
Mike Causi
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Mike Causi
Top achievements
Rank 1
Deanna Terry
Top achievements
Rank 1
chris
Top achievements
Rank 1
David
Top achievements
Rank 1
Plamen
Telerik team
Jody
Top achievements
Rank 1
David
Top achievements
Rank 1
Share this question
or