|
|
Rank: Newbie
Groups: Registered
Joined: 1/30/2008 Posts: 7
|
We've spent two weeks trying to get SlickUpload working well in our ASP.NET 2.0 environment. While we've worked through many challenges (with Chris' help) we have one very urgent issue to resolve.
The progress bar has stopped working. Actually it did not work at the start, then worked for just a short time and then stopped working again. We have no idea what caused it to work, nor any idea why it's stopped working.
All other aspects of the upload are working correctly.
Would someone please list some troubleshooting tips from their own experiences? We need to resolve this. Any and all ideas are greatly appreciated!
|
|
|
Rank: Administration

Groups:
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
Are you still having javascript issues, or are those resolved? If you're still having issues, please take snapshots of the error dialog so I can see if I can track them down.
If you're using the VS WebDev, try using IIS instead -- sometimes the webdev server has issues with multiple simultaneous requests.
Also, ensure that the SlickUpload.ashx file from the distro .zip is located at the root of your application (should be at "~/SlickUpload.ashx"). This is the handler that allows the SlickUpload client side controls to communicate with the server to retrieve upload progress.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/30/2008 Posts: 7
|
SETUP:
I believe our setup is standard: we have slickupload.ashx in the right place, and we are using IIS. We used the example projects as our starting point.
JS ISSUES:
We are absolutely having JS issues. Here's what we've tried in order to resolve these JS issues:
- Deleted all files in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files on the client PC. Apparently these temp files prevent downloading of AXD files. This seemed to work for a short time.
- Replaced the 2.0 Krystalware DLL with the 1.1 version. This also works for a while, then the problems return.
In all cases the problems return after a short time. It seems that the JS being created "on the fly" is quite problematic. I was hoping we could have a version of SlickUpload which has all JS hardcoded in a .JS file that we could reference using a <SCRIPT> tag in the <HEAD> section of the page. I think this might solve many of our JS related issues.
PROGRESSS BAR ISSUES:
The progress bar has worked for a very short time only. I saw it working for about 10 mins, then it stopped working altogether. It's very frustrating since it's a very nice feature for the end user.
We need immediate assistance with these issues if at all possible. Thanks in advance.
|
|
|
Rank: Administration

Groups:
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
Are you getting actual js errors? If so, can send me the error info you get from the error dialog? It's difficult to diagnose without the error info, etc. Both IE and Firefox should display an error dialog that identifies the line that causes the error.
Can you also send me the latest version of the page that's having the issues so I can debug it here?
I doubt the issue is with the .axd's, as that is a standard Microsoft supported technique for including javascript into a page. Microsoft uses it in their client integrated controls (validators, etc.)
I'm prepping a stripped build as we speak, and will email it to you in the next half hour or so. If you could send me the detailed information I requested above as well that would greatly aid with tracking down this issue.
|
|
|
Rank: Administration

Groups:
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
I just pmed you the new build. Let me know how it works. If you continue to have issues, send me the error information I requested above so I can track them down.
|
|
|
Rank: Administration

Groups:
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/30/2008 Posts: 7
|
I added the su.js to the root of the project and added this line in the <HEAD> section of the aspx:
<script type="text/javascript" src="su.js" runat="server"></script>
When I run the app I get a series of errors. The first error is fixed by initializing outB to ' ' (one space) although I'm not sure if this will break anything else
The second error I cannot fix.
1. Compiler Error Message: CS1011: Empty character literal
Source Error:
Line 259: var hex = new Array('0','1','2','3','4','5','6','7','8', '9','a','b','c','d','e','f');
Line 260:
Line 261: var outB = '';
Line 262:
Line 263: for (count = 0; count < 32; count++)
2. Compiler Error Message: CS1519: Invalid token '=' in class, struct, or interface member declaration
Source Error:
Line 2:
Line 3: var Krystalware = new Object();
Line 4: Krystalware.SlickUpload = new Object();
Line 5: Krystalware.SlickUpload.IsUploadInProcess = false;
Line 6:
Ideas?
|
|
|
Rank: Administration

Groups:
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
Marking the script tag runat="server" means you are asking ASP.NET to compile the script server side. In this case, the C# compiler is trying to compile the javascript, which isn't valid C# code. Try removing the runat="server" attribute from the script tag so it will be passed down to the browser as javascript.
|
|
|
|
Guest |