iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
My website uses a master page which has a WebMenuBar on it. When you first access the website you are taken to a log on page where the menu bar does not have any WebMenuItems added to it. At this point I am inconsistently receiving javascript errors. It does not stop you from logging in and once you do the javascript errors disappear but our customers keep reporting this to us as they think its bug with the website.
I have created a sample of the situation but as I said it happens inconsistently so please keep trying to reproduce it if it doesn't happen the first time. This is happening both on development and production environments and I am using WebDesktop 3 but it was also happening with WebDesktop 2.5.
Can you please test the sample and advise on how I can prevent these errors?
Hi Mark,
I just uploaded new file zip. the sample doesn't contain bin folder you need to add the Bin folder and also add the dlls needed manually.
Best Regards,
Dicky
Could you confirm if this issue only happens when you haven't login/authenticated your Form?I've checked your sample and it seems if the error only occurs when I haven't pressed button "Click to Login".I also checked it using Firebug and I found if some resources needed for WebMenu are redirected as it didn't pass the authentication. So you need to make exception for ISRes.axd file from your FormAuthentication. Please find attached screenshot for more detail infomation.
I can confirm this only happens when you have not logged in. Once you log in you no longer receive any javascript errors.
Can you please explain how i can make exception for ISRes.axd file from the FormAuthentication?
I tried to modify your web.config by adding it to your handler inside <system.webServer> and it works without error.
Here is the modified tag.
<system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </modules> <handlers> <remove name="WebServiceHandlerFactory-Integrated"/> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="IntersoftResource" path="ISRes.axd" verb="GET" preCondition="integratedMode" type="ISNet.WebUI.WebResourceHandler, ISNet.WebUI, Version=3.0.5000.1, Culture=neutral, PublicKeyToken=b1f2a8511635667a"/> <add name="ISCoverFlow.axd_GET" path="ISCoverFlow.axd" verb="GET" type="ISNet.WebUI.Silverlight.WebAqua.WebCoverFlowRequestHandler, ISNet.WebUI.Silverlight.WebAqua" preCondition="integratedMode,runtimeVersionv2.0" /> <add name="ISChart.axd_GET, POST" path="ISChart.axd" verb="GET, POST" type="ISNet.WebUI.WebGrid.Chart.ChartRequestHandler, ISNet.WebUI.WebGrid" preCondition="integratedMode,runtimeVersionv2.0" /> <add name="ISRes.axd_GET" path="ISRes.axd" verb="GET" type="ISNet.WebUI.WebResourceHandler, ISNet.WebUI, Version=3.0.5000.1, Culture=neutral, PublicKeyToken=b1f2a8511635667a" preCondition="integratedMode,runtimeVersionv2.0" /> </handlers> <validation validateIntegratedModeConfiguration="false" /> </system.webServer>
Hope this helps.
Regards,Handy
I have made the changes to the web.config that you suggested but I am still getting the javascript errors. I have uploaded my sample again with the changes. Have I missed something?
I have checked your sample again, and I found the easiest way to solve the issue, since you are redirect to directory "Secure" when authenticate process passed then you just need to authenticate directory "Secure". You can manage it by add this settings on your web.config:
<location path="Secure"><system.web><authorization><deny users="?"/></authorization></system.web></location> For more detail I have uploaded the modified web.config for you. Hope this helps.
[Edit attachment web_config.zip by Dicky]
Can you please re-upload the attachement from your previous post or email it to me as it is unaccessable. Thanks.
You can try it now. Dicky has been re-upload the file.
Thanks for re-uploading. I have applied the change to my web.config but I am still getting the javascript errors. Below are the errors:
Error: syntax errorSource File: http://localhost:3760/ScriptError/default.aspx?ReturnUrl=/ScriptError/ISRes.axd?F/IEMozBridge.js/305000703&F/IEMozBridge.js/305000703Line: 3Source Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Error: syntax errorSource File: http://localhost:3760/ScriptError/default.aspx?ReturnUrl=/ScriptError/ISRes.axd?F/ISCore.js/305000703&F/ISCore.js/305000703Line: 3Source Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Error: syntax errorSource File: http://localhost:3760/ScriptError/default.aspx?ReturnUrl=/ScriptError/ISRes.axd?D/WebUIControl.js/307200303&D/WebUIControl.js/307200303Line: 3Source Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Error: syntax errorSource File: http://localhost:3760/ScriptError/default.aspx?ReturnUrl=/ScriptError/ISRes.axd?D/WebMenuBar.js/307200303&D/WebMenuBar.js/307200303Line: 3Source Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Error: syntax errorSource File: http://localhost:3760/ScriptError/default.aspx?ReturnUrl=/ScriptError/ISRes.axd?D/WebMenu.js/307200303&D/WebMenu.js/307200303Line: 3Source Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Error: syntax errorSource File: http://localhost:3760/ScriptError/default.aspx?ReturnUrl=/ScriptError/ISRes.axd?D/WebAnimation.js/307200303&D/WebAnimation.js/307200303Line: 3Source Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Error: InitWebMenuBar is not definedSource File: http://localhost:3760/ScriptError/Line: 134
Error: ISControl_InitializeAtlas is not definedSource File: http://localhost:3760/ScriptError/Line: 180
Error: _dv.outerHTML is undefinedSource File: http://localhost:3760/ScriptError/Line: 180
Okay, since you said if you still experience the issue. I have attached full sample project that I have modified from yours. Hope this helps.
I am unable to open the zip file. Can you please re-upload it?
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname