Skip to main content

Microsoft Silverlight

Answered Question Xap Re-downloaded when run through Windows Forms' WebBrowser?RSS Feed

(0)

Illuminaty
Illuminaty

Member

Member

52 points

52 Posts

Xap Re-downloaded when run through Windows Forms' WebBrowser?

We have a silverlight application that is loaded as an homepage of a Windows Forms Application's WebBrowser control.

It seems that the silverlight application is re-downloaded many times per day and not cached on the computer.

This has some major impacts on our traffic due to the hundreds of users we have (though in Silverlight 3 the Xap will be much smaller).

The problem doesn't occur when I load the xap through normal web browser.

Can anyone confirm this problem? What can be done to cache the xap for the WebBrowser?

Thanks.

---------------------
http://www.fxg.co.il - Technical Analysis - ניתוח טכני
תיק השקעות וירטואלי

DarekD
DarekD

Member

Member

390 points

97 Posts

Answered Question

Re: Xap Re-downloaded when run through Windows Forms' WebBrowser?

I don't believe the Browser control has any type of caching mechanism at this point, which kind of makes sense (why make it as complex IE?). SO what you could do is look for it in isolated storage first, or the app directory. If it doesn't exist, get it from the server and store locally. You should also think about additional capability to compare versions, local vs. server.

Darek

Illuminaty
Illuminaty

Member

Member

52 points

52 Posts

Re: Re: Xap Re-downloaded when run through Windows Forms' WebBrowser?

I'm not sure you can say it has any machanism of caching becase after I shut down the Application with the browser and re-open it , it won't re-download.

 Yeah I thought of storing locally, it's not a bad idea but perheps too time consuming for us.

---------------------
http://www.fxg.co.il - Technical Analysis - ניתוח טכני
תיק השקעות וירטואלי

DarekD
DarekD

Member

Member

390 points

97 Posts

Re: Re: Re: Xap Re-downloaded when run through Windows Forms' WebBrowser?

Shouldn't be too difficult. Quick check with a local absolute Uri() and an extra web service to compare versions.

Darek
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities