Dart Home | PowerWEB File Upload for ASP.NET | Custom Development | Reply | PowerWEB File Upload for ASP.NET Topics | Forums |
Author | Forum: PowerWEB File Upload for ASP.NET Topic: pw_scripts.js some times error |
gennaro From: Ercolano, Italy Posts: 6 Member Since: 04/09/10 |
posted April 28, 2010 8:03 AM On every page with upload i get an error, but only some times, in the most case all works fine. I receive first alert: Could not load resource 'pw_scripts.js': Value cannot be null. Parameter name: input When i click ok i receive second alert: Error! PowerWEB Script Library missing or improperly initialized. Possible causes for this are incorrect web.config settings, or missing script resources. For more information, please see the Deployment in ASP.NET page of the product documentation. In this case i read javascript error with firebug: pwGetScriptSources is not defined EditModello.aspx?id=1()EditMode...aspx?id=1 (riga 139) var pwArrSources = pwGetScriptSources();\r\n When i get this error the flash button show and ready, but when i try to upload, after i have selected file, the progress bar show without activity and i read js error with firebug: pwBeginCallback is not defined pwSendUploadCallback("ctl00_ContentPlaceHolder1_um_generic", "InternalProgress", "1")Dart.Pow....3.0.0.js (riga 99) anonymous()Dart.Pow....3.0.0.js (riga 366) pwRaiseManagerProgress()Dart.Pow....3.0.0.js (riga 353) pwBeginCallback(id,eventName,eventArg,'p...k','',false,null,null,null,null,true);\r\n It's really annoying.. |
K M Drake From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted April 28, 2010 8:46 AM Hi, Please see the following post, with information concerning the scripts not found error: http://support.dart.com/postings?topicid=7685 Hope it helps, -ken ------ |
gennaro From: Ercolano, Italy Posts: 6 Member Since: 04/09/10 |
posted June 9, 2010 6:18 AM I followed the suggestions mentioned in the post. Only point 4 does not know what to do. The strange thing is that many times it works, the error occurs only some times. In particular, the application does not require authentication, I still added to the web config part of Section 5, the application is on IIS6. It's possible to deactivate the javascript retrieve by GetResource.aspx and manually import js? |
K M Drake From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted June 10, 2010 1:22 PM Hi, You could try using the scripts externally. See the External Scripts section on the Deployment page of the help file for more info. -ken ------ |
gennaro From: Ercolano, Italy Posts: 6 Member Since: 04/09/10 |
posted June 28, 2010 5:18 AM I try to configure with external script. File upload now don't work, through firebug i see: http://xxx/js/ajaxupload/pw_fileupload.js http://xxx/js/ajaxupload/pw_scripts.js And this is ok but i see also: http://xxx/js/ajaxupload/js/ajaxupload/pwUploadDlg.swf?rnd=xxxETCETC With double "js/ajaxupload" :°( |
K M Drake From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted June 30, 2010 9:28 AM Hi, Thanks for reporting this. It works if the UploadType is IFrame, correct? For Flash mode, as a work-around, can you create the subfolders it is looking for, and place the swf files in there? In other words, place the scripts in "js/ajaxuploads" and the flash files in "js/ajaxuploads/js/ajaxuploads". This has been recorded as issue #5317. -ken ------ |
gennaro From: Ercolano, Italy Posts: 6 Member Since: 04/09/10 |
posted July 2, 2010 5:01 AM With this workaround it's ok, the error seems to have disappeared. It can be usefull for somebody: Relative url in webconfig appsetting is relative to page where we place the component, so if different pages are in different dir is a problem. Putting ~ not work I solved writing absolute path, to debug locally i must change the url Thankyou for all |
Reply | PowerWEB File Upload for ASP.NET Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |