Skip to main content
Home Forums General Silverlight Getting Started aspx file not displaying the last .xap build
6 replies. Latest Post by larsjo on May 30, 2008.
(0)
nmpgaspar
Member
174 points
109 Posts
05-12-2008 11:58 AM |
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 Os...
90 points
23 Posts
05-12-2008 6:19 PM |
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.
05-12-2008 7:50 PM |
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
Star
14606 points
2,730 Posts
05-12-2008 8:58 PM |
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?
FLUID
80 points
10 Posts
05-13-2008 3:53 AM |
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..
05-13-2008 5:42 AM |
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
4 points
2 Posts
05-30-2008 10:19 AM |
Remove the MyXapFile.xap from your browser cache
Lars