Skip to main content

Microsoft Silverlight

Answered Question aspx file not displaying the last .xap buildRSS Feed

(0)

nmpgaspar
nmpgaspar

Member

Member

174 points

109 Posts

aspx file not displaying the last .xap build

I have a Silverlight project, which is hosted in .aspx web page.

Making some update on the Silverlight project and recompiling it, doesn't seem to affect the content displayed on the .aspx file when i run the project.

By testing on my 'SilverlightProject/ClientBin/TestPage.html' i can see that the changes are in fact done...

Every time i rebuild the solution, the .xap files, the one in "SilverlightProject\ClientBin\MyXapFile.xap" and "WebProject\ClientBin\MyXapFile.xap", seem to be update, since i can see that the modification data gets updated.

Anyone knows why my .aspx page doesn't display my last build?

weird thing is, if i deploy it, and access it via http, it gets the last build...

James Osborne
James Os...

Member

Member

90 points

23 Posts

Microsoft

Re: aspx file not displaying the last .xap build

I'm not sure how you are running the project.  Are the aspx pages hosted through IIS?  You might try doing a Clean Solution before building and see if that updates it.

James

nmpgaspar
nmpgaspar

Member

Member

174 points

109 Posts

Re: aspx file not displaying the last .xap build

Nope, i have them on Visual Studio too.

If i add manually the .xap file, to the project and refer to him on some random .aspx file then it works, but only for the first build. I have to manually had the .xap file to the project everytime i make an update on the Silverlight project...

mchlsync
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP
Answered Question

Re: aspx file not displaying the last .xap build

nmpgaspar:

Every time i rebuild the solution, the .xap files, the one in "SilverlightProject\ClientBin\MyXapFile.xap" and "WebProject\ClientBin\MyXapFile.xap", seem to be update, since i can see that the modification data gets updated.

Anyone knows why my .aspx page doesn't display my last build?

weird thing is, if i deploy it, and access it via http, it gets the last build...

 

Are you using "Cache"  in your aspx? Since "WebProject\ClientBin\MyXapFile.xap" get updated, you should able to get the updated version from aspx page too. btw, Are you pointing to the correct xap path from aspx?

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


FLUID
FLUID

Member

Member

80 points

10 Posts

Answered Question

Re: aspx file not displaying the last .xap build

It seems that browser caches .xap. You can try the following:
 - install Internet Explorer Developer Toolbar;
 - Check: "Cache -> Always Refresh from Server" in IE Dev Toolbar
 - Refresh your page;

or simply clear browser cache...

I've had same problem recently, and mentioned solution works for me..


 

---------------------------------------------------
We don't possess what we don't understand

nmpgaspar
nmpgaspar

Member

Member

174 points

109 Posts

Re: aspx file not displaying the last .xap build

mchlsync:
btw, Are you pointing to the correct xap path from aspx?

 

:)

Yup, but then again, if that was the mistake, i wouldn't probably say it :D

 

Fluid, that solved the problem! :)

Thank you both.

larsjo
larsjo

Member

Member

4 points

2 Posts

Re: aspx file not displaying the last .xap build

Remove the MyXapFile.xap from your browser cache Smile

Lars

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities