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
Hi,
I'd like to turn SmartWebResources off. I've removed everything related from web.config and copied the files from CommonLibrary onto the server. Now I need to configure the path to it, because we can't use the default CommonLibrary path in the root of the webserver.
We're using WebGrid 6.0.7200.220.
I've already configured everything I could think of in web.config:
<add key="ISNet.WebUI.WebGrid.v6_0_7200.ScriptDirectory" value="~/Intersoft/WebGrid/V6_0_7200/"/> <add key="ISNet.WebUI.WebGrid.v6_0_7200.ImagesDirectory" value="~/Intersoft/Images/"/> <add key="ISNet.WebUI.WebGrid.v6_0_7200.SharedScriptDirectory" value="~/Intersoft/Shared/"/> <add key="ISNet.WebUI.WebGrid.v6_0_7200.LocalizationDirectory" value="~/Intersoft/WebGrid/V6_0_7200/Localization/"/> <add key="ISNet.WebUI.WebDesktop.V2_5_2007.ScriptDirectory" value="~/Intersoft/WebDesktop/V2_5_2007/"/> <add key="ISNet.WebUI.WebDesktop.V2_5_2007.ImagesDirectory" value="~/Intersoft/Images/"/> <add key="ISNet.WebUI.WebDesktop.V2_5_2007.SharedScriptDirectory" value="~/Intersoft/Shared/"/>
We don't use WebDesktop (no runtime license configured), but there seems to be some internal reference. With SmartWebResources, we also needed to include the dll for WebDesktop.Resources.dll, otherwise we received the error message "Context menu feature is disabled because menu runtime system can't be loaded. Ensure you have registered SmartWebResources in this web application."
Now that we don't use SmartWebResources anymore, this problem reappears, because it cannot find the resources for WebDesktop. The browser log shows 404 errors requesting the following two files:
/CommonLibrary/WebDesktop/V2_5_2007/WebMenu.js/CommonLibrary/WebDesktop/V2_5_2007/WebAnimation.js
Note the wrong path - it's still referencing CommonLibrary.
It looks like I am missing some kind of configuration for the WebDesktop resources. What do I have to configure so that this works?
Hi Yudi,
Yes, this helped me find the solution. To summarize your answer:
But even after fixing this, it didn't work. Reason was a typo in your code above. The value for the WebDesktopScriptDirectory should've been "~/Intersoft/WebDesktop/V2_5_2007/" (note the 2007, not 7200).
So yes, this fixed the problem. One important thing to mention: The included help for WebGrid (see page "Application Wide Configurations") doesn't list this WebDesktopScriptDirectory key. That's why I missed it. Actually this key is not mentioned anywhere in your documentation (only the class property with the same name is mentioned). If this is still missing in your latest version of the documentation for WebGrid, please update.
Thanks
WebGrid requires WebDesktop’s resources since the context menu and pop menu available in WebGrid utilize the WebDesktop script.
WebGrid has WebDesktopScriptDirectory property. This property gets or sets the IIS path to locate WebDesktop's script directory. This property is only applicable when SmartWebResources is not enabled.
Please try to add following key into the web.config file of your project which will set the WebDesktopScriptDirectory property globally.
<appSettings> <add key="ISNet.WebUI.WebGrid.v6_0_7200.RunTimeLicenseKey" value="ABCDE-FGHI-JKLMN" /> <add key="ISNet.WebUI.WebGrid.v6_0_7200.ScriptDirectory" value="~/Intersoft/WebGrid/V6_0_7200/" /> <add key="ISNet.WebUI.WebGrid.v6_0_7200.SharedScriptDirectory" value="~/Intersoft/Shared/" /> <add key="ISNet.WebUI.WebGrid.v6_0_7200.ImagesDirectory" value="~/Intersoft/Images/" /> <add key="ISNet.WebUI.WebGrid.v6_0_7200.LocalizationDirectory" value="~/Intersoft/WebGrid/V6_0_7200/Localization/" /> <add key="ISNet.WebUI.WebGrid.v6_0_7200.WebDesktopScriptDirectory" value="~/Intersoft/WebDesktop/V2_5_7200/" /> </appSettings>
Please let us know whether this helps or not.
Follow-up question: After everything seems working, now I get a 404 error in one special case: When the WebGrid displays its error box ("Unhandled exception"). What happens: The client side script requests an AJAX part and gets an empty answer from the server. This is interpreted as an error and the popup (div) with the error message is being displayed. The client script does all this and requests the following files (or the browser does when interpreting the genereated HTML):
For me this looks like two bugs in WebGrid and I'll ignore that. Are these known bugs?
I tried to find out where this comes from. I found a CSS with style name TD.WG5E-Caption which has a background-image: url(ISRes.axd?G/wg5_header_bg.gif); This CSS comes from a request via WebResource.axd, so it was dynamically generated. On our generated page I see such a request created via a <link href="xxx/WebResource.axd?xxx". For me this sounds like the SmartWebResources are not fully turned off. There is no handler for WebResource.axd in web.config and there is no setting for ISRes_Registered in web.config. So maybe this is just standard behaviour (somehow wrongly implemented). Any infos on this?
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