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
I've been playing around with deploying a clientUI sample applcation to a public web server. I'm finding that when i make changes to a few pages and re-deploy, the client browser does not pick up the changes. Below is my config:
Server:
Client:
Any suggestion?
You can append the source url in the object tag with the last-write date of the XAP file. Replace the object tag in your aspx page with the following:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <% string orgSourceValue = @"ClientBin/Your.xap"; string param; if (System.Diagnostics.Debugger.IsAttached) param = "<param name=\"source\" value=\"" + orgSourceValue + "\" />"; else { string xappath = HttpContext.Current.Server.MapPath(@"") + @"\" + orgSourceValue; DateTime xapCreationDate = System.IO.File.GetLastWriteTime(xappath); param = "<param name=\"source\" value=\"" + orgSourceValue + "?ignore=" + xapCreationDate.ToString() + "\" />"; } Response.Write(param); %> <param name="onError" value="onSilverlightError" /> <param name="background" value="white" /> <param name="minRuntimeVersion" value="4.0.50401.0" /> <param name="autoUpgrade" value="true" /> <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration: none"> <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style: none" /> </a> </object>
Append XAP created data to the value on the Source parameter, this way when you have a newer version of XAP, the new XAP will get downloaded to replace the one in the cache.
Please ensure that you have regenerated the license identity and update it to licenses.islicx file as if you made any changes to the Silverlight assembly.
It is recommended that you perform the licensing process at the time when your Silverlight application is ready to deploy.
Hi Yudi!
Thank you for the quick response. I'm currently testing with a trial version of your product. This appears to be a Silverlight XAP issue. I did go ahead and increment the build number on the Silverlight app and that seems to fix the problem *If* the use refreshes the browser.
I guess i'm looking for more granual way to check for updates. e.g. if a UXPage within a XAP changes is there a way to determine if the page itself is old and refresh it...versus re-loading the entire XAP via browser refresh. Any help here would be much appreciated.
Thank you! I'll give that a try.
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