![]() Right now, if you take a tour to your "Internet Temporary Files" folder, you can find, that SilverlightApplication.xap is no longer downloaded, it's replaced by the SilverlightHandler.ashx file which takes care about XAP file handling.Īnother approach is when you don't want to change the code ![]() Using this technique will force the client's browser automatically download the latest XAP file. Save changes and rebuild your application. On the first tab, named " Silverlight", make sure that the " Reduce XAP size by using application library caching" option is unchecked. To do this, in the Solution Explorer right click on your Silverlight application project and select Properties. If you're using a WCF Service with your Silverlight application it can be essential to disable " Reduce XAP size by using application library caching" Silverlight build option. Rebuild your Silverlight application - and that's all. Then change your Silverlight asp.net control's or object's tag Source value to point to "SilverlightHandler.ashx" For example your control could look like this: Note: please change the name of your Silverlight application XAP file, in this case replace SilverlightApp.xap Public ReadOnly Property IsReusable() As Boolean Implements _ WriteFile((" ClientBin\SilverlightApp.xap")) ContentType = " application/x-silverlight-app" ![]() Public Sub ProcessRequest( ByVal context As HttpContext) Implements _ Public Class SilverlightHandler : Implements IHttpHandler Modify the created handler to look like this one: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |