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: Scripts Not Found Error |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted December 26, 2007 1:22 PM General Troubleshooting for Scripts Not Found Error: In order to function properly, PowerWEB products require a client-side scripts library to be loaded from the server. This is done once when the web page is loaded. If you view the page source in your browser, you will see a script reference such as: <script language=”javascript” src=”http://myServer/myApp/Dart.PowerWEB.FileUpload.GetResource.aspx?Res=pw_productname_1.x.x.x.js”></script> This tells the browser to make a request for the script file, similar to how an image tag tells the browser to make a request for an image resource. If for any reason the server does not respond to that request, you will see the “scripts not found” message in your browser. Here are some questions to ask while troubleshooting the problem: 1. Use Firefox (not IE) to retrieve the url (see above) directly. When accessing a .js file, Firefox will display it inline, while IE will not. When you do this, what error is reported? 2. Is the web.config setup exactly as described on the "Deployment" page of the help file? 3. Does the app require login, or anything else that may prevent the retrieval of the GetResource.aspx file? In other words, is there anything that globally intercepts requests coming in? 4. If the resource URL is ignored for whatever happens in the Application_BeginRequest function, does it help? 5. If anonymous access is allowed to the scripts resource in the web.config, does it work? <location path="Dart.PowerWEB.FileUpload.GetResource.aspx"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> 6. If you are using IIS7, make sure the PowerWEB handler and modules are in the <system.webServer> web.config section, not <system.web>. You can use a command line utility to do this automatically if you wish. For example: %systemroot%\system32\inetsrv\APPCMD.EXE migrate config "Default Web Site/" |
csnm1 From: lincoln, United Kingdom Posts: 4 Member Since: 04/01/08 |
posted April 1, 2008 1:56 PM Hi, Thanks for the reply. I am confused as to the first part of the link regarding the GetResource.aspx - i don't have that file so where do I get it from in order to try to make my script work? thanks regards, craigw. |
John Talarico![]() From: Rome, NY USA Posts: 630 Member Since: 06/01/05 |
posted April 2, 2008 6:30 PM When you place a FileUpload control on your webform, your web.config file should be modified to contain an HttpHandler. This effectively tells your web application to send requests to the nonexistent GetResource.aspx file to a specialized class. This class handles the request and dynamically serves up the script resource. So, to answer your question more directly... You should not have that file in your project, but there should |
jasonabuck From: San Diego, CA USA Posts: 6 Member Since: 05/16/08 |
posted May 16, 2008 2:01 PM Hi, What do you do if you have verified that the Web.config file is correct. What path should the Resources be located at? I have verified the the .dll is in the bin folder. Dart.PowerWeb.FileUpload.dll Is there something else I should be checking? Respectfully, Jason |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 19, 2008 9:39 AM Hi Jason, As described above, the scripts resource is not a physical file, but the httpHandler should look like this: <httpHandlers> <add verb="*" path="Dart.PowerWEB.FileUpload.GetResource.aspx" type="Dart.PowerWEB.FileUpload.ResourceHttpHandler,Dart.PowerWEB.FileUpload" /> </httpHandlers> See the questions at the top of this thread for several more things to check. Hope it helps, -ken |
plsalvado From: London, United Kingdom Posts: 1 Member Since: 01/30/09 |
posted January 30, 2009 11:41 AM hi, We;re having a problem with PowerWEB and IIS7. We already have the handlers and the modules in system.webServer (as below) but it's still not working. When the page is called it just keeps loading and loading. On the server we get a message like: Thread information: Thread ID: 11 Thread account name: STRCONNECT-IIS1\networkShare Is impersonating: False Stack trace: at Dart.PowerWEB.FileUpload.FileUploadModule.context_BeginRequest(Object sender, EventArgs args) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Handlers <add name="FileUploadHandler" path="Dart.PowerWEB.FileUpload.GetResource.aspx" verb="*" type="Dart.PowerWEB.FileUpload.ResourceHttpHandler,Dart.PowerWEB.FileUpload" resourceType="Unspecified" requireAccess="Script" /> Modules <add name="CallbackManager" type="Dart.PowerWEB.FileUpload.CallbackManager,Dart.PowerWEB.FileUpload" /> <add name="FileUploadModule" type="Dart.PowerWEB.FileUpload.FileUploadModule" preCondition="managedHandler" /> Any help would be great. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted February 2, 2009 3:34 PM Hi, Did you use the utility to upgrade the web.config? Here is what my <system.webServer> tag looks like: <system.webServer> <modules> <add name="FileUploadModule" type="Dart.PowerWEB.FileUpload.FileUploadModule,Dart.PowerWEB.FileUpload" preCondition="managedHandler" /> <add name="CallbackManager" type="Dart.PowerWEB.FileUpload.CallbackManager,Dart.PowerWEB.FileUpload" preCondition="managedHandler" /> </modules> <handlers> <add name="Dart.PowerWEB.FileUpload.GetResource.aspx_*" path="Dart.PowerWEB.FileUpload.GetResource.aspx" verb="*" type="Dart.PowerWEB.FileUpload.ResourceHttpHandler,Dart.PowerWEB.FileUpload" preCondition="integratedMode,runtimeVersionv2.0" /> </handlers> <validation validateIntegratedModeConfiguration="false" /> </system.webServer> -ken |
singge yan 731646712@qq.com From: Dalian Posts: 1 Member Since: 10/24/19 |
posted October 24, 2019 3:29 AM Hi, I had already set the content you mentioned in the web.config,but still shows [PowerWeb Script Library missing or improperly initialized.] what else can i do to remove the erro message? |
Jamie Powell (Admin) From: Rome, NY USA Posts: 448 Member Since: 03/13/07 Extra Support Options Custom Application Development |
posted October 24, 2019 4:33 PM Thank you for your post. Please email your serial number to support@dart.com, referencing this post, and I will be happy to review your issue. All the best, Jamie |
Reply | PowerWEB File Upload for ASP.NET Topics | Forums |
This site is powered by
![]() |